UNPKG

comindware.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.

23 lines (21 loc) 851 B
define([ 'comindware/core', 'demoPage/views/EditorCanvasView' ], function (core, EditorCanvasView) { 'use strict'; return function () { var model = new Backbone.Model({ referenceValue: { id: 'test.1', text: 'Test Reference 1' } }); return new EditorCanvasView({ editor: new core.form.editors.ReferenceEditor({ model: model, key: 'referenceValue', autocommit: true, showEditButton: true, controller: new core.form.editors.reference.controllers.DemoReferenceEditorController() }), presentation: "{{#if referenceValue}}{ id: '{{referenceValue.id}}', text: '{{referenceValue.text}}' }{{else}}null{{/if}}" }); }; });