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.
60 lines (57 loc) • 1.95 kB
JavaScript
/**
* 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.Field({
schema: {
title: 'Title',
type: 'Text'
},
value: 'foo'
}),
new core.layout.HorizontalLayout({
columns: [
new core.form.Field({
schema: {
title: 'Ideal Days',
type: 'Number'
},
value: 12
}),
new core.form.Field({
schema: {
title: 'Due Date',
type: 'DateTime'
},
value: '2015-07-20T10:46:37Z'
})
]
}),
new core.form.Field({
schema: {
title: 'Description',
type: 'TextArea'
},
value: 'bar\nbaz'
}),
new core.form.editors.BooleanEditor({
value: true,
displayText: 'Blocked by another task'
})
]
});
};
}
);