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.

44 lines (41 loc) 1.31 kB
/** * Developer: Stepan Burguchev * Date: 2/27/2017 * Copyright: 2009-2017 Stepan Burguchev® * All Rights Reserved * Published under the MIT license */ define( [ 'comindware/core' ], function(core) { 'use strict'; return function() { return new core.layout.VerticalLayout({ rows: [ new core.form.editors.TextEditor({ value: 'foo' }), new core.layout.HorizontalLayout({ columns: [ new core.form.editors.NumberEditor({ value: 123 }), new core.form.editors.DateTimeEditor({ value: '2015-07-20T10:46:37Z' }) ] }), new core.form.editors.TextAreaEditor({ value: 'bar\nbaz' }), new core.form.editors.BooleanEditor({ value: true, displayText: 'Make me some tea!' }) ] }); }; } );