Switch API

API Reference e-switch

Properties

Name Description Type Required Default value
label Adds label to the switch string
label-secondary In two way mode the second label string
data-id The id of the input element inside string
name The name of the element that will be used in posted forms string
value The value of the input element string
checked Whether the input is checked boolean
disabled If the input is interactive or not boolean
helper Helper tooltip to show next to the label boolean

Events

Event Description Returns
change Fires on clicking or keyboard select whenever the checked state changes
click Fires on clicking the input or the label