Interface for a class Switch
EmitType<BeforeChangeEventArgs>
This event is triggered before the state of the switch is changed in the Switch component.
Triggers when Switch state has been changed by user interaction.
EmitType<Event>
Triggers once the component rendering is completed.
boolean
Specifies a value that indicates whether the Switch is checked
or not.
When set to true
, the Switch will be in checked
state.
string
You can add custom styles to the Switch by using this property.
boolean
Specifies a value that indicates whether the Switch is disabled
or not.
When set to true
, the Switch will be in disabled
state.
boolean
Enable or disable persisting component’s state between page reloads.
boolean
Enable or disable rendering component in right to left direction.
{ : }
You can add the additional html attributes such as disabled, value etc., to the element. If you configured both property and equivalent html attribute then the component considers the property value.
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
string
Defines name
attribute for the Switch.
It is used to reference form data (Switch value) after a form is submitted.
string
Specifies a text that indicates the Switch is in unchecked state.
string
Specifies a text that indicates the Switch is in checked state.
string
Defines value
attribute for the Switch.
It is a form data passed to the server when submitting the form.