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.
18 lines (16 loc) • 578 B
JavaScript
define([ 'comindware/core', 'demoPage/views/EditorCanvasView' ], function (core, EditorCanvasView) {
'use strict';
return function () {
var model = new Backbone.Model({
dateValue: '2015-07-20T00:00:00Z'
});
return new EditorCanvasView({
editor: new core.form.editors.DateEditor({
model: model,
key: 'dateValue',
autocommit: true
}),
presentation: "{{#isNull dateValue}}null{{else}}'{{dateValue}}'{{/isNull}}"
});
};
});