projects/components/widgets/input/checkbox/toggle.component.doc.ts
The wmToggle component defines the toggle widget.
Methods |
Inputs |
| onBlur | ||||||||||||
onBlur($event: MouseEvent, widget: any)
|
||||||||||||
|
Callback function which will be triggered when the widget loses focus.
Parameters :
Returns :
void
|
| onChange | ||||||||||||||||||||
onChange($event: MouseEvent, widget: any, newVal: any, oldVal: any)
|
||||||||||||||||||||
|
Callback function which will be triggered when the widget is clicked or when datavalue has changed.
Parameters :
Returns :
void
|
| onClick | ||||||||||||
onClick($event: MouseEvent, widget: any)
|
||||||||||||
|
Callback function which will be triggered when the widget is clicked.
Parameters :
Returns :
void
|
| onFocus | ||||||||||||
onFocus($event: MouseEvent, widget: any)
|
||||||||||||
|
Callback function which will be triggered when the widget gets focused.
Parameters :
Returns :
void
|
| onMouseenter | ||||||||||||
onMouseenter($event: MouseEvent, widget: any)
|
||||||||||||
|
Callback function which will be triggered when the mouse enters the widget.
Parameters :
Returns :
void
|
| onMouseleave | ||||||||||||
onMouseleave($event: MouseEvent, widget: any)
|
||||||||||||
|
Callback function which will be triggered when the mouse leaves the widget.
Parameters :
Returns :
void
|
| onTap | ||||||||||||
onTap($event: TouchEvent, widget: any)
|
||||||||||||
|
Callback function which will be triggered when the tap event is triggered on a widget.
Parameters :
Returns :
void
|
| class |
Type : string
|
|
Class of the widget. |
| conditionalclass |
Type : any
|
|
This property allows user to bind expression to class property Bindable: |
| datavalue |
Type : any
|
|
This property defines the initial selected value of the toggle widget. Bindable: |
| disabled |
Type : boolean
|
|
This property will be used to disable the toggle widget.
If the disabled property is true (checked), the widget becomes display-only. Bindable: |
| hint |
Type : string
|
|
Hint text is shown of the toggle widget on hover. Bindable: |
| name |
Type : string
|
|
Name of the toggle widget. |
| readonly |
Type : boolean
|
|
This property will be used to make the toggle widget non-editable. Bindable: |
| required |
Type : boolean
|
|
This property will be used to validate the state of the toggle widget when used inside a form widget. Bindable: |
| shortcutkey |
Type : string
|
|
The shortcut key property specifies a shortcut key to activate/focus an element. |
| show |
Type : boolean
|
Default value : true
|
|
This property will be used to show/hide the toggle widget. Bindable: |
| tabindex |
Type : number
|
Default value : 0
|
|
This property specifies the tab order of the toggle widget. |