ftxui::Container
Component Component Vertical (Components children) Vertical ftxui::Container::Vertical Components children

A list of components, drawn one by one vertically and navigated vertically using up/down arrow key or 'j'/'k' keys.

children

the list of components.

ContainerBase

### Example

    autocontainer=Container::Vertical({
    children_1,
    children_2,
    children_3,
    children_4,
    });

Component Component Vertical (Components children, int *selector) Vertical ftxui::Container::Vertical Components children int * selector

A list of components, drawn one by one vertically and navigated vertically using up/down arrow key or 'j'/'k' keys. This is useful for implementing a Menu for instance.

children

the list of components.

selector

A reference to the index of the selected children.

ContainerBase

### Example

    autocontainer=Container::Vertical({
    children_1,
    children_2,
    children_3,
    children_4,
    },&selected_children);

Component Component Horizontal (Components children) Horizontal ftxui::Container::Horizontal Components children

A list of components, drawn one by one horizontally and navigated horizontally using left/right arrow key or 'h'/'l' keys.

children

the list of components.

ContainerBase

### Example

    intselected_children=2;
    autocontainer=Container::Horizontal({
    children_1,
    children_2,
    children_3,
    children_4,
    });

Component Component Horizontal (Components children, int *selector) Horizontal ftxui::Container::Horizontal Components children int * selector

A list of components, drawn one by one horizontally and navigated horizontally using left/right arrow key or 'h'/'l' keys.

children

the list of components.

selector

A reference to the index of the selected children.

ContainerBase

### Example

    intselected_children=2;
    autocontainer=Container::Horizontal({
    children_1,
    children_2,
    children_3,
    children_4,
    },selected_children);

Component Component Tab (Components children, int *selector) Tab ftxui::Container::Tab Components children int * selector

A list of components, where only one is drawn and interacted with at a time. The |selector| gives the index of the selected component. This is useful to implement tabs.

children

The list of components.

selector

The index of the drawn children.

ContainerBase

### Example

    inttab_drawn=0;
    autocontainer=Container::Tab({
    children_1,
    children_2,
    children_3,
    children_4,
    },&tab_drawn);

Component Component Stacked (Components children) Stacked ftxui::Container::Stacked Components children

A list of components to be stacked on top of each other. Events are propagated to the first component, then the second if not handled, etc. The components are drawn in the reverse order they are given. When a component take focus, it is put at the front, without changing the relative order of the other elements.

This should be used with the `Window` component.

children

The list of components.

Window

### Example

    autocontainer=Container::Stacked({
    children_1,
    children_2,
    children_3,
    children_4,
    });