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.

22 lines (17 loc) 507 B
import CanvasView from 'demoPage/views/CanvasView'; export default function() { const model = new Backbone.Model({ booleanValue: true }); return new CanvasView({ view: new Core.form.editors.BooleanEditor({ model, key: 'booleanValue', changeMode: 'keydown', autocommit: true, displayText: 'Some Text' }), presentation: '{{#if booleanValue}}true{{else}}false{{/if}}', isEditor: true }); }