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.
26 lines (23 loc) • 605 B
JavaScript
import CanvasView from 'demoPage/views/CanvasView';
export default function(options) {
const model = new Backbone.Model(
options
? options.attributes
: {
textValue: 'Some text'
}
);
return new CanvasView({
view: new Core.form.editors.TextEditor(
Object.assign(
{
model,
key: 'textValue'
},
options ? options.schema : {}
)
),
presentation: "'{{textValue}}'",
isEditor: true
});
}