-
▼.open()
-
The ".open()" method manually opens an AccDC Object.
-
Syntax
$A.reg.myObj.open();
-
▼.close()
-
The ".close()" method manually closes an AccDC Object.
-
Syntax
$A([
{
runAfter: function(dc){
dc.close();
},
...
}
]);
// Or
$A.reg.myObj.close();
-
▼.allowMultiple
-
The ".allowMultiple" property determines if an AccDC Object will automatically be closed when another AccDC Object is opened.
-
Values: True or False (default)
Syntax
$A([
{
allowMultiple: true,
...
}
]);
// Or
$A.reg.myObj.allowMultiple = false;
Important
-
The "allowMultiple" property only affects AccDC Objects declared in the same array when passed to "$A()" for registration.
-
▼.allowReopen
-
The ".allowReopen" property determines whether an AccDC Object can be repeatedly opened.
-
Values: True or False (default)
Syntax
$A([
{
allowReopen: true,
...
}
]);
// Or
$A.reg.myObj.allowReopen = false;
Important
-
The "allowReopen" property cannot be used in conjunction with the "isToggle" property.
-
▼.isToggle
-
The ".isToggle" property specifies that an AccDC Object will toggle between open or closed when activated.
-
Values: True or False (default)
Optional screen reader accessible hidden text that conveys dynamically updating Role and State information is automatically added to each triggering element when "isToggle" is set to True.
(View the Automatic Accessibility Framework section for details regarding related AccDC Toggle Control properties.)
Syntax
$A([
{
isToggle: true;
...
}
]);
Important
-
View the "toggleRole" and "toggleState" properties in the Automatic Accessibility Framework section to see how screen reader accessible hidden text is used to aid navigation for screen reader users.
Required:
-
The triggering element must be an object that supports innerHTML, such as an A tag or BUTTON tag to ensure proper functionality;
-
The "isToggle" property cannot be used in conjunction with the "allowReopen" property;
-
▼.isStatic
-
The "isStatic" property specifies a container element where an AccDC Object will be inserted.
-
Values: CSS Selector or DOM node
Syntax
$A([
{
isStatic: 'div.container',
...
}
]);
// Or
$A.reg.myObj.isStatic = DOMNode;
Important
-
When "isStatic" is changed at runtime, the change will take affect the next time the AccDC Object opens.
-
The "append" or "prepend" properties can be optionally set to append or prepend AccDC Objects to container elements instead of overwriting content.
append: true,
// or
prepend: true,
-
▼.isTab
-
The "isTab" property specifies whether an AccDC Object is a tab control.
-
Values: True or False (default)
Optional screen reader accessible hidden text that conveys dynamically updating Role and State information is automatically added to each triggering element when "isTab" is set to True.
(View the Automatic Accessibility Framework section for details regarding related AccDC Tab Control properties.)
Syntax
$A([
{
isTab: true,
...
}
]);
// Or
$A([
{
...
},
{
...
},
{
...
}
], {
isTab: true,
...
});
Important
-
View the "tabRole" and "tabState" properties in the Automatic Accessibility Framework section to see how screen reader accessible hidden text is used to aid navigation for screen reader users.
Required:
-
The triggering element must be an object that supports innerHTML, such as an A tag or BUTTON tag to ensure proper functionality;
-
▼.autoStart
-
The "autoStart" property specifies that an AccDC Object will automatically open when registered.
-
Values: True or False (default)
Syntax
$A([
{
autoStart: true,
...
}
]);
Important
-
When an AccDC Object opens, all other AccDC Objects declared in the same "$A()" array will be closed;
-
Set the "allowMultiple" property to prevent associated AccDC Objects from closing automatically when others are opened.
-
▼$A.genId()
-
The "$A.genId()" method generates a unique ID timestamp.
-
Syntax
var myId = 'myId' + $A.genId();
-
▼$A.setFocus()
-
The ".$A.setFocus()" method manually sets keyboard focus on any non-focusable DOM node.
-
Syntax
$A.setFocus(document.getElementById('myDiv'));