ftxui::InputOption
component_options.hpp
StringRef StringRef content content ftxui::InputOption::content = ""

The content of the input.

StringRef StringRef placeholder placeholder ftxui::InputOption::placeholder = ""

The content of the input when it's empty.

std::function< Element(InputState)> std::function<Element(InputState)> transform transform ftxui::InputOption::transform
Ref< bool > Ref<bool> password password ftxui::InputOption::password = false

Obscure the input content using '*'.

Ref< bool > Ref<bool> multiline multiline ftxui::InputOption::multiline = true

Whether the input can be multiline.

Ref< bool > Ref<bool> insert insert ftxui::InputOption::insert = true

Insert or overtype character mode.

std::function< void()> std::function<void()> on_change on_change ftxui::InputOption::on_change = [] {}

Called when the content changes.

std::function< void()> std::function<void()> on_enter on_enter ftxui::InputOption::on_enter = [] {}

Called when the user presses enter.

Ref< int > Ref<int> cursor_position cursor_position ftxui::InputOption::cursor_position = 0
InputOption InputOption Default () Default ftxui::InputOption::Default

Create the default input style:

Standard options for the input component.

InputOption InputOption Spacious () Spacious ftxui::InputOption::Spacious

A white on black style with high margins:

Standard options for a more beautiful input component.

Option for the Input component.

InputOption
content
placeholder
insert
multiline
password
cursor_position
Ref< bool >
Ref< int >
Ref< std::string >
StringRef
- ftxui::InputOption
  content
- ftxui::InputOption
  cursor_position
- ftxui::InputOption
  Default
- ftxui::InputOption
  insert
- ftxui::InputOption
  multiline
- ftxui::InputOption
  on_change
- ftxui::InputOption
  on_enter
- ftxui::InputOption
  password
- ftxui::InputOption
  placeholder
- ftxui::InputOption
  Spacious
- ftxui::InputOption
  transform