Settings

The Switch widget is initialized with the shieldSwitch constructor, passing it a dictionary of settings as shown below:

<script type="text/javascript">
    $(function () {
        $('input[type="checkbox"]').shieldSwitch({
            cls: "my-switch-class",
            enabled: true,
            checked: true,
            onText: "ON",
            offText: "OFF",
            events: {
                click: function() {
                    alert("clicked");
                }
            }
        });
    });
</script>

Details about all configuration settings can be found below.