ftxui::ButtonOption
cpp
#include <ftxui/component/component_options.hpp>Option for the AnimatedButton component.
Examples: component/button_animated, component/button_in_frame, component/button_style, component/modal_dialog
Summary
| Symbol | Description |
|---|---|
label | |
on_click | |
transform | |
animated_colors |
Public Attributes
label
cpp
ConstStringRef label = "Button";on_click
cpp
std::function< void()> on_click = [] {};transform
cpp
std::function< Element(const EntryState &)> transform;animated_colors
cpp
AnimatedColorsOption animated_colors;