/// <reference path="bootstrap-switch.d.ts" />
$(document).ready(function () {
$('.delete').bootstrapSwitch({
onText: '<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>',
offText: '<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>',
offColor: 'default',
onColor: 'danger',
onSwitchChange: function (event, state: boolean) {
console.log(state);
}
});
});bootstrap-switch
Directory actions
More options
Directory actions
More options
bootstrap-switch
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||