UNPKG

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.

21 lines (17 loc) 533 B
import template from '../templates/leaf.hbs'; import NodeViewConfig from '../services/NodeViewConfig'; import NodeBehavior from '../behaviors/NodeBehavior'; export default Marionette.View.extend({ templateContext() { return { text: this.__getNodeName(), isVisible: !this.model.get('isHidden') }; }, behaviors: { NodeBehavior: { behaviorClass: NodeBehavior } }, ...NodeViewConfig(template, 'js-leaf-item js-tree-item leaf-item tree-item') });