comindware.core.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.
21 lines (18 loc) • 514 B
JavaScript
import CanvasView from 'demoPage/views/CanvasView';
export default function() {
const model = new Backbone.Model({
durationValue: 'P3DT3H4M'
});
return new CanvasView({
view: new Core.form.editors.DurationEditor({
model,
key: 'durationValue',
autocommit: true,
showEmptyParts: true,
max: 'P15DT18H4M',
min: 3600000 //1 hour
}),
presentation: '{{durationValue}}',
isEditor: true
});
}