Hi is there an option to colored a custom button of a table blue?
If I press the button, the button flashes blue for a short time. But I want to use it as a toggle button. Acitve: show more colums , inactive: show less colums. Could anybody help?
That sounds like reasonable ask, I can make a feature request for that. From my testing it looks like the only toolbar icon that changes styling is the Filter button since it opens up a table specific modal.
Since the behavior for custom toolbar buttons is for a specific action such as a query or script to run, I am not sure if we could "bake in the logic" for the button's state to know if the number of columns as changed as you mentioned in your example
What I am think is that the component might be able to have some custom styling applied based on the state of a boolean that can be flipped on clip, but I will leave that to our UI engineers.
In the short term, a workaround would be to use custom CSS to style that button based on some conditional boolean logic. You would likely need to go into your browsers inspector panel to find the right specifier for the custom toolbar icon.
The other option for a work around might be to use an 'Icon' component and have it match the wizard and that can have its style changed by a script that is run on toolbar icon click
Hey @bauergeorg - to Jack's point, your best bet here is probably custom CSS. I put together a simple example that you can see below. Note that blue is a globally-scoped variable that is initially set to false.
Glad to hear it, @bauergeorg! I see what you mean but can't for the life of me figure out what is causing the colors to appear washed out like that. There has to be some sort of masking or filtering happening.