comindware.core.ui
Version:
Comindware Core UI provides the basic components like editors, lists, dropdowns, popups that we so desperately need while creating Marionette-based single-page applications.
18 lines (14 loc) • 424 B
JavaScript
import ToolbarCheckboxItemView from './ToolbarCheckboxItemView';
export default ToolbarCheckboxItemView.extend({
modelEvents: {
'selected deselected': '__updateState'
},
onRender() {
this.__toggleIcon(!!this.model.selected);
},
__handleClick() {
this.model.select();
this.__toggleIcon(!!this.model.selected);
this.trigger('action:click', this.model);
}
});