ltk

Function grid

Source
pub fn grid<Msg: Clone>(columns: usize) -> WrapGrid<Msg>
Expand description

Create a grid layout with the given number of columns.

Use .push(), .spacing(), and .padding() to populate and style the grid.

grid( 4 ).padding( 16.0 ).spacing( 8.0 ).push( button( "A" ).on_press( Msg::A ) )