projects/components/widgets/input/switch/src/switch.component.doc.ts
The wmSwitch component defines the switch widget.
Methods |
Inputs |
| onChange | ||||||||||||||||||||
onChange($event: MouseEvent, widget: any, newVal: any, oldVal: any)
|
||||||||||||||||||||
|
Callback function which will be triggered when the widget is clicked or 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
|
| 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
|
| checkediconclass |
Type : string
|
|
CSS class of the checked item. |
| class |
Type : string
|
|
Class of the widget. |
| datafield |
Type : string
|
|
This property sets the dataValue to be returned by the switch widget when the list is populated using the dataSet property. |
| datavalue |
Type : any
|
Default value : 'yes'
|
|
This property defines the initial selected value of the switch widget. Bindable: |
| disabled |
Type : boolean
|
|
This property will be used to disable the switch widget.
If the disabled property is true (checked), the widget becomes display-only. Bindable: |
| displayexpression |
Type : string
|
|
This is an advanced property that gives more control over what is displayed in the switch options.
A Display Expression uses a JavaScript expression to format exactly what is shown Bindable: |
| displayfield |
Type : string
|
|
This property sets the displayValue to show in the switch widget when the list is populated using the dataSet property. |
| hint |
Type : string
|
|
Hint text is shown for the switch widget on hover. Bindable: |
| iconclass |
Type : string
|
|
CSS class of the icon. |
| name |
Type : string
|
|
Name of the switch widget. |
| orderby |
Type : string
|
|
Allows to display the data in asc or desc order based on this property |
| required |
Type : boolean
|
|
This property will be used to validate the state of the switch widget when used inside a form widget. Bindable: |
| show |
Type : boolean
|
Default value : true
|
|
This property will be used to show/hide the switch widget. Bindable: |
| tabindex |
Type : number
|
Default value : 0
|
|
This property specifies the tab order of the switch widget. |