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.

26 lines (21 loc) 678 B
import CanvasView from 'demoPage/views/CanvasView'; export default function () { const model = new Backbone.Model({ // radioValue: 'value2' }); return new CanvasView({ view: new Core.form.editors.RadioGroupEditor({ model, key: 'radioValue', changeMode: 'keydown', autocommit: true, radioOptions: [ { id: 'value1', displayText: 'Some Text 1' }, { id: 'value2', displayText: 'Some Text 2' }, { id: 'value3', displayText: 'Some Text 3' } ] }), presentation: '\'{{radioValue}}\'', isEditor: true }); }