js/src/fields/controls/multiselect.js
var BaseView = require('../FieldControlBaseView');
module.exports = BaseView.extend({
initialize: function () {
this.defaults = {
filter:true
};
this.settings = this.model.get('settings') || {};
this.render();
},
render: function () {
this.$("[data-kftype='multiselect']").multipleSelect(_.extend(this.defaults, this.settings));
},
rerender: function () {
this.$("[data-kftype='multiselect']").multipleSelect('refresh');
}
});