You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello,
I have created a SampleToolbarDefaultsOverride function (SampleToolbarDefaultsOverride: () => DeflatedToolbarTree) and successfully rebound the ToolbarDefaultsFactory with it to add elements to the toolbar. Now, I need to add a new element based on a configuration retrieved from a command-line argument. If this configuration is enabled, I want to dynamically add the element to the toolbar.
However, I'm unsure how to update the DeflatedToolbarTree(SampleToolbarDefaultsOverride) based on the configuration or how to add elements dynamically.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
I have created a SampleToolbarDefaultsOverride function (SampleToolbarDefaultsOverride: () => DeflatedToolbarTree) and successfully rebound the ToolbarDefaultsFactory with it to add elements to the toolbar. Now, I need to add a new element based on a configuration retrieved from a command-line argument. If this configuration is enabled, I want to dynamically add the element to the toolbar.
However, I'm unsure how to update the DeflatedToolbarTree(SampleToolbarDefaultsOverride) based on the configuration or how to add elements dynamically.
Beta Was this translation helpful? Give feedback.
All reactions