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.

31 lines (25 loc) 771 B
import CanvasView from 'demoPage/views/CanvasView'; export default function() { const model = new Backbone.Model({ DatalistValue: { id: 'task.1', text: 'Test Reference 1' } }); const view = new Core.form.editors.DatalistEditor({ model, key: 'DatalistValue', autocommit: true, showEditButton: true, showAddNewButton: true, showCheckboxes: true, maxQuantitySelected: 1, collection: new Core.form.editors.reference.collections.DemoReferenceCollection(), fetchFiltered: true }); return new CanvasView({ view, presentation: "{ id: '{{DatalistValue.id}}', text: '{{DatalistValue.text}}' }", isEditor: true }); }