ltk

Function list_item

Source
pub fn list_item<Msg: Clone>(label: impl Into<String>) -> ListItem<Msg>
Expand description

Create a ListItem with the given primary label.

Add detail and behaviour through the chained builders:

list_item( "Display" )
    .subtitle( "Resolution, brightness, night mode" )
    .trailing( "›" )
    .on_press( Msg::OpenDisplay )