Skip to content
You are viewing documentation for v6.1.5. Switch to latest (main).

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/homescreen, component/modal_dialog, component/selection

Summary ​

SymbolDescription
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;