Page 1 of 1

[REACT]

Posted: Fri Jan 27, 2023 1:23 am
by vconstruct

How to add Save Button to only Notes Tab in task edit.


Re: [REACT]

Posted: Fri Jan 27, 2023 5:24 am
by alex.l

The button placed outside of tabs, in the main panel, so you could try to initially hide that button, let's say in https://bryntum.com/products/gantt/docs/api/SchedulerPro/feature/TaskEdit#event-beforeTaskEditShow event handler, subscribe on tabPanel tab change event https://bryntum.com/products/gantt/docs/api/Core/widget/TabPanel#event-tabChange
and track activeItem inside to update button visibility as you need.
Here you can find names of elements in tabEditor and some code snippets that help you with that https://bryntum.com/products/gantt/docs/guide/Gantt/customization/taskedit