how we can add handler to save button and assign name to the 'hours' at the top of the 'demoeditor' of the example grouping, as i find it is predefined and am not able to work on the buttons
sarah
Support Forum
The most flexible way to customize the "system" parts of the editor will be to subclass the "Sch.plugins.EventEditor" plugin. See the DemoEditor class in the "eventeditor" example.
Then you can use properties of the editor class, for example to add the additional handler for save button:
Then you can use properties of the editor class, for example to add the additional handler for save button:
initComponent : function() {
...
DemoEditor.superclass.initComponent.apply(this, arguments);
this.saveButton.on('click', this.myHandler, this)
},
Read the API documentation