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
pub fn with_borders(
&mut self,
borders: Borders,
variant: BorderType,
color: Color
) -> &mut Self
[src]
pub fn with_borders(
&mut self,
borders: Borders,
variant: BorderType,
color: Color
) -> &mut Self
[src]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_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
Auto Trait Implementations
impl RefUnwindSafe for TreeViewPropsBuilder
impl Send for TreeViewPropsBuilder
impl Sync for TreeViewPropsBuilder
impl Unpin for TreeViewPropsBuilder
impl UnwindSafe for TreeViewPropsBuilder