Struct tui::widgets::Tabs[][src]

pub struct Tabs<'a, T> where
    T: AsRef<str> + 'a, 
{ /* fields omitted */ }

A widget to display available tabs in a multiple panels context.

Examples

Tabs::default()
    .block(Block::default().title("Tabs").borders(Borders::ALL))
    .titles(&["Tab1", "Tab2", "Tab3", "Tab4"])
    .style(Style::default().fg(Color::White))
    .highlight_style(Style::default().fg(Color::Yellow));

Methods

impl<'a, T> Tabs<'a, T> where
    T: AsRef<str>, 
[src]

Trait Implementations

impl<'a, T> Default for Tabs<'a, T> where
    T: AsRef<str>, 
[src]

Returns the "default value" for a type. Read more

impl<'a, T> Widget for Tabs<'a, T> where
    T: AsRef<str>, 
[src]

Draws the current state of the widget in the given buffer. That the only method required to implement a custom widget. Read more

Helper method to quickly set the background of all cells inside the specified area.

Helper method that can be chained with a widget's builder methods to render it.

Auto Trait Implementations

impl<'a, T> Send for Tabs<'a, T> where
    T: Sync

impl<'a, T> Sync for Tabs<'a, T> where
    T: Sync