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 (15 loc) 510 B
import template from './templates/headerItem.hbs'; import StepperView from './StepperItemView'; export default Marionette.CollectionView.extend({ className: 'layout__tab-layout__stepper_container', template: Handlebars.compile(template), childView: StepperView, childViewEvents: { 'step:selected': '__handleStepSelect' }, __handleStepSelect(view) { if (view.model.get('enabled')) { this.trigger('stepper:item:selected', view.model); } } });