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.
17 lines (13 loc) • 369 B
JavaScript
import { getClassName } from '../meta';
import ActionView from './ActionView';
export default ActionView.extend({
initialize(options = {}) {
this.model = options.model;
},
className() {
return getClassName('split-button-action-button', this.model);
},
__handleClick() {
this.trigger('action:click', this.model);
}
});