Discuss anything related to web development but no technical support questions


Post by sarah »

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

Post by nickolay »

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:
    initComponent : function() {
        ...
        
        DemoEditor.superclass.initComponent.apply(this, arguments);

        this.saveButton.on('click', this.myHandler, this)
    },

Post by sarah »

hi nickolay,

thank you...
its working ... :)

Post Reply