Basic #
This is the most basic usage of RegateSwitch
.
Regate.RegateSwitch.init({
id: 'basic-example',
name: 'Agree',
})
@Html.Raw(RegateSwitch.Build("Agree"))
Checked #
Regate.RegateSwitch.init({
id: 'ischecked-example',
name: 'Agree',
isChecked: true,
})
@Html.Raw(RegateSwitch.Build("Agree", true))