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.

19 lines (17 loc) 564 B
define([ 'comindware/core', 'demoPage/views/EditorCanvasView' ], function (core, EditorCanvasView) { 'use strict'; return function () { var model = new Backbone.Model({ textValue: 'Some text' }); return new EditorCanvasView({ editor:new core.form.editors.TextEditor({ model: model, key: 'textValue', changeMode: 'keydown', autocommit: true }), presentation: '\'{{textValue}}\'' }); }; });