!--a11y-->
ToggleButton API 
·
checked
Specifies whether or not the ToggleButton is toggled.
·
checkedImageSource
Specifies the Web address of the icon that appears when the ToggleButton is
toggled.
·
design
The design property can be filled with the following values
and is represented by the enumeration type WDToggleButtonDesign.
standard |
Displays the ToggleButton with the default colors for the background and text. When values are assigned to the properties imageSource and checkedImageSource, the corresponding icon is displayed. |
toggle |
Displays the
ToggleButton with a triangle symbol: |
·
imageFirst
Defines the position of the icon in relation to the corresponding text.
If the value of this property is
true, the icon is
displayed to the left of the text.
·
imageSource
Specifies the Web address (URL) of the graphic to be displayed.
·
text
Specifies the text to be assigned to the AbstractToggleButton.
·
textDirection
Specifies the text direction and allows you to use the toggle element for
texts in languages which require a specific text direction. The textDirection property can be filled with the following
values and is represented by the enumeration type WDTextDirection.
The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element. |
|
The default value for this property is inherit.
·
width
Specifies the width of the ToggleButtons. You can specify the width in CSS units like em, ex,
pixel, or percentage.
Name |
Interface |
Type |
Initial Value |
Bindable |
Value Required |
checked |
IWDAbstractToggle |
boolean |
false |
bindable_mandatory |
No |
checkedImageSource |
IWDAbstractToggleButton |
String |
|
bindable |
No |
design |
IWDAbstractToggleButton |
WDToggleButtonDesign |
standard |
bindable |
No |
enabled |
IWDUIElement |
boolean |
true |
bindable |
No |
imageFirst |
IWDAbstractToggleButton |
boolean |
true |
bindable |
No |
imageSource |
IWDAbstractToggleButton |
String |
|
bindable |
No |
text |
IWDAbstractToggleButton |
String |
|
bindable |
No |
textDirection |
IWDAbstractToggle |
WDTextDirection |
inherit |
bindable |
No |
tooltip |
IWDUIElement |
String |
|
bindable |
No |
visible |
IWDUIElement |
WDVisibility |
visible |
bindable |
No |
width |
IWDAbstractToggleButton |
String |
|
bindable |
No |
The onToggle event is executed when the ToggleButton is toggled. The parameter is the new status of the element.
Name |
Class |
Parameter |
onToggle |
IWDAbstractToggle |
(boolean checked) |