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.
34 lines (28 loc) • 952 B
JavaScript
/**
* Developer: Stepan Burguchev
* Date: 11/27/2014
* Copyright: 2009-2014 Comindware®
* All Rights Reserved
*
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Comindware
* The copyright notice above does not evidence any
* actual or intended publication of such source code.
*/
/* global define, require, Handlebars, Backbone, Marionette, $, _ */
define([
'text!../templates/demoProfilePanel.html',
'comindware/core'
],
function (template, core) {
'use strict';
return Marionette.LayoutView.extend({
className: 'nav-profile_test',
regions: {
dateEditorRegion: '.js-date-editor-region'
},
template: Handlebars.compile(template),
onShow: function () {
this.dateEditorRegion.show(new core.form.editors.DateTimeEditor());
}
});
});