Does the toggle button have attributes that allow for a change in color of the toggle box when active, i.e. going from the standard green to blue or red? Im currently using funtools to change my button functionality as below.
Setting button_type to "danger" should give you a red button.
Otherwise, it might be possible to set the css_classes property and also include some appropriate extra CSS that changes the styling of the button, but I can't provide any details offhand. I'd suggest trying "button_type" first.
FYI I note that the enum docs nor the button docs do not have any images of what the button types look like. That would be helpful, can you make a GH issue to request this docs feature?
Thanks,
Bryan
···
On Jan 25, 2017, at 8:44 AM, Vivek Dwivedi <[email protected]> wrote:
Greetings:
Does the toggle button have attributes that allow for a change in color of the toggle box when active, i.e. going from the standard green to blue or red? Im currently using funtools to change my button functionality as below.
import functools
def handler(metadata, attr, old_value, new_value):
print(metadata["IO"], attr, new_value) // "EIO0", etc, for Ar
Setting button_type to “danger” should give you a red button.
Otherwise, it might be possible to set the css_classes property and also include some appropriate extra CSS that changes the styling of the button, but I can’t provide any details offhand. I’d suggest trying “button_type” first.
FYI I note that the enum docs nor the button docs do not have any images of what the button types look like. That would be helpful, can you make a GH issue to request this docs feature?
Does the toggle button have attributes that allow for a change in color of the toggle box when active, i.e. going from the standard green to blue or red? Im currently using funtools to change my button functionality as below.