enabled

The enabled() method, called without any parameters, will return the current enabled state of a ListBox element.

The enabled(bool) method is used to update a ListBox’s enabled/disabled state. Passing true will enable and false will disable the widget.

<div id="listbox" ></div>
<script type="text/javascript">
    $(function () {
        $("#listbox").shieldListBox({
            dataSource: {
                data: countries
            },
            textTemplate: "{name}",
            valueTempate: "{id}",
            enabled: false  // disable the control initially
        });

        console.log($("#listbox").swidget().enabled()); // prints false

        $("#listbox").swidget().enabled(true); // enable the widget

        console.log($("#listbox").swidget().enabled()); // return true
    });
</script>