How to change toolbar after beforetoolbarcreated is being called?

Answered
Ravid asked on September 25, 2024

Hi,

I have some functionality listening to beforetoolbarcreated event, Also I change toolbar.getTabs function.

I want to be able to trigger beforetoolbarcreated or make toolbar.getTabs to change the tabs by demand when some parts of the data are being changed.

1 answer

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 27, 2024

Hello, Ravid!

Thank you for reaching out to us.

Please note that the default Flexmonster toolbar wasn't designed to be modified dynamically. Instead, the customization is available through the beforetoolbarcreated event handler that allows you to adjust the Toolbar to your needs before it is rendered.

In case you need to be able to modify the tabs at runtime, we suggest implementing your own toolbar/another UI control that would provide access to the necessary functionality while also being modifiable on the run.

Everything that the default toolbar does is available through the Flexmonster API calls, meaning you will have no issues linking the required functionality to your own toolbar implementation. You are welcome to check the available API calls in our documentation: https://www.flexmonster.com/api/methods/.

You are welcome to contact us if other questions arise.

Kind regards,
Solomiia

Please login or Register to Submit Answer