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.

28 lines (20 loc) 720 B
import CrumbTextView from './views/CrumbTextView'; import GroupsCollection from './collections/GroupsCollection'; import template from './templates/navigationDrawer.html'; export default Marionette.CollectionView.extend({ initialize(options) { this.collection = new GroupsCollection(options.collection); this.collapsed = options.collapsed; this.absolute = options.isAbsolute; }, template: Handlebars.compile(template), ui: { collapseButton: '.js-drawer-collapse' }, events: { 'pointerdown @ui.collapseButton': '__toggleCollapse' }, className: 'breadCrumbs', childViewContainer: '.js-children-container', childView: CrumbTextView });