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.
18 lines (13 loc) • 375 B
JavaScript
export default Marionette.View.extend({
modelEvents: {
change: 'onChange'
},
className: 'form-label__tooltip-panel',
template: _.noop,
onRender() {
this.el.innerHTML = this.model.get(this.options.textAttribute);
},
onChange() {
this.el.innerHTML = this.model.get(this.options.textAttribute);
}
});