panel.models.icon module#
- class panel.models.icon.ButtonIcon(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Bases:
_ClickableIcon
,AbstractButton
A ButtonIcon is a clickable icon that toggles between an active and inactive state and keeps track of the number of times it has been clicked.
- Attributes:
- clicks
The number of times the button has been clicked.
- toggle_duration
The number of milliseconds the active_icon should be shown for and how long the button should be disabled for.
- clicks#
The number of times the button has been clicked.
- toggle_duration#
The number of milliseconds the active_icon should be shown for and how long the button should be disabled for.