Closed Wirone closed 2 years ago
As far as I see this is only used in switchChange.bootstrapSwitch
event handler to return to previous state if custom handler returns false
. I can use it for my needs too, but as a side note it would be good to introduce beforeSwitchChange.bootstrapSwitch
event and if handler returns false
do not change the state (so switchChange.bootstrapSwitch
wouldn't be triggered).
When I want to hook into SwithInput and use
onSwitchChange
plugin option:I got
TypeError
:_this.options.onSwitchChange.apply is not a function
.Function configured in widget's
pluginOptions
is not passed to JS as function, but as string:I need it to display confirmation box just before changing input's state.