Skip to content
You are viewing documentation for v7.0.1. Switch to latest (main).

ftxui::DropdownOption ​

cpp
#include <ftxui/component/component_options.hpp>

Option for the Dropdown component.

A dropdown menu is a checkbox opening/closing a radiobox.

Summary ​

SymbolDescription
openWhether the dropdown is open or closed:
checkbox
radiobox
transform

Public Attributes ​

open ​

cpp
Ref< bool > open = false;

Whether the dropdown is open or closed:

checkbox ​

cpp
CheckboxOption checkbox;

radiobox ​

cpp
RadioboxOption radiobox;

transform ​

cpp
std::function< Element(bool open, Element checkbox, Element radiobox)> transform;