• Material
  • Fabric
  • Bootstrap
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Essential JS 2
HOME
All Controls

Button

Click the submit button to post the current state of the Switch. When submitting the Switch in `off` state, validation error message will be shown.

DEMO
SOURCE

This sample demonstrates Tag Helper support in Switch. You can bind model property to the Switch by adding an attribute `ejs-for` and assign model property to it. While submitting form, the model property will be based on `checked` state of the Switch.

More information on Switch can be found in this documentation section .