Struct tui_realm_treeview::TreeViewPropsBuilder[][src]

pub struct TreeViewPropsBuilder { /* fields omitted */ }
Expand description

TreeViewPropsBuilder

Tree View properties builder

Implementations

with_foreground

Set foreground. The foreground will be used as foreground for the selected item, when focus is false, otherwise as background

with_background

Set background. The background color will be used as background for unselected entry, but will be used as foreground for the selected entry when focus is true

with_borders

Set component borders style

with_title

Set box title

with_highlighted_str

The provided string will be displayed on the left side of the selected entry in the tree

with_tree_and_depth

Sets the tree and its max depth for Props builder

with_tree

Sets the tree for Props builder

with_node

Select initial node in the tree. NOTE: this option has priority over keep_state

keep_state

If keep is true, the selected entry will be kept after an update of the tree (obviously if the entry still exists in the tree). NOTE: this property has lower property than with_node

with_max_page_steps

Defines the maximum amount of steps to perform after a PG_DOWN / PG_UP

Trait Implementations

Returns the “default value” for a type. Read more

Performs the conversion.

build Read more

hidden Read more

visible Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.