Events
The events API of Multiple Select.
To use event syntax:
$('#select').multipleSelect({
onEventName: function (arg1, arg2, ...) {
// ...
}
})
Example: The Event
onOpen
Parameter: -
Detail: Fires when the dropdown list is open.
onClose
Parameter: -
Detail: Fires when the dropdown list is close.
onCheckAll
Parameter: -
Detail: Fires when all the options are checked by either clicking the "Select all" checkbox or when the "checkall" method is programatically called.
onUncheckAll
Parameter: -
Detail: Fires when all the options are unchecked by either clicking the "Select all" checkbox or when the "uncheckall" method is programatically called.
onFocus
Parameter: -
Detail: Bind an event handler to the "focus".
onBlur
Parameter: -
Detail: Bind an event handler to the "blur".
onOptgroupClick
Parameter:
view
Detail: Fires when a an optgroup label is clicked on. The
view
parameter is an object, it containslabel, selected, children, data
, thechildren
containstext, value, selected, disabled, data
.
onBeforeClick
Parameter:
view
Detail: Fires before a checkbox is clicked. The
view
parameter is an object, it containstext, value, selected, data
. Returnfalse
to prevent the click event.
onClick
Parameter:
view
Detail: Fires when a checkbox is checked or unchecked. The
view
parameter is an object, it containstext, value, selected, data
.
onClear
Parameter: -
Detail: Fires when click the clear icon.
onFilter
Parameter:
text
Detail: Fires after the Multiple Select is on filter.
onAfterCreate
Parameter: -
Detail: Fires after the Multiple Select is created.