Page 1 of 1

[REACT] Close Task edit popup on custom button click inside tab

Posted: Mon Jan 30, 2023 3:05 am
by vconstruct

Added button inside notes tab, It should be able to close the task edit popup on the button click


Re: [REACT] Close Task edit popup on custom button click inside tab

Posted: Mon Jan 30, 2023 3:58 am
by tasnim

Hello,

You could use this https://bryntum.com/products/gantt/docs/api/Gantt/widget/TaskEditor#function-close to close the task editor.
Here is an example of how you could achieve it

button : {
    type : 'button',
    text : 'close',
    onClick : ({ source : { parent : { parent : { parent : taskEditor } } } }) => {
        taskEditor.close();
    }
}

This should be working for you.