ltk

Function tabs

Source
pub fn tabs<Msg, I, S>(labels: I) -> TabBar<Msg>
where Msg: Clone + 'static, I: IntoIterator<Item = S>, S: Into<String>,
Expand description

Create a TabBar from any iterable of label-likes.

tabs( [ "Inbox", "Sent", "Drafts" ] )
    .selected( self.tab )
    .on_select( Msg::SelectTab )