Our pure JavaScript Scheduler component


Post by liuxiang »

Image


Post by mats »

Can you please specify what your question is?


Post by liuxiang »

I want to customize the save method or delete method here;
For example:
I want to click the Save button to call the backend interface that saves data, what should I do?


Post by tasnim »

Hi,
You can listen for a click listener for the save button

new SchedulerPro({
    features : {
        taskEdit : {
            editorConfig : {
                bbar : {
                    items : {
                        saveButton : {
                            listeners : {
                                click () {
                                    console.log('save button clicked');
                                }
                            }
                        }
                    }
                }
            }
        }
    }
});

Docs :
https://bryntum.com/docs/scheduler-pro/api/SchedulerPro/feature/TaskEdit#removing-a-built-in-item-or-toolbar-button
https://bryntum.com/docs/scheduler-pro/api/Core/widget/Button#event-click


Post Reply