Trait taffy::style::grid::GridItemStyle
source · pub trait GridItemStyle: CoreStyle {
// Provided methods
fn grid_row(&self) -> Line<GridPlacement> { ... }
fn grid_column(&self) -> Line<GridPlacement> { ... }
fn align_self(&self) -> Option<AlignSelf> { ... }
fn justify_self(&self) -> Option<AlignSelf> { ... }
fn grid_placement(&self, axis: AbsoluteAxis) -> Line<GridPlacement> { ... }
}
Expand description
The set of styles required for a CSS Grid item (child of a CSS Grid container)
Provided Methods§
sourcefn grid_row(&self) -> Line<GridPlacement>
fn grid_row(&self) -> Line<GridPlacement>
Defines which row in the grid the item should start and end at
sourcefn grid_column(&self) -> Line<GridPlacement>
fn grid_column(&self) -> Line<GridPlacement>
Defines which column in the grid the item should start and end at
sourcefn align_self(&self) -> Option<AlignSelf>
fn align_self(&self) -> Option<AlignSelf>
How this node should be aligned in the cross/block axis
Falls back to the parents AlignItems
if not set
sourcefn justify_self(&self) -> Option<AlignSelf>
fn justify_self(&self) -> Option<AlignSelf>
How this node should be aligned in the inline axis
Falls back to the parents super::JustifyItems
if not set
sourcefn grid_placement(&self, axis: AbsoluteAxis) -> Line<GridPlacement>
fn grid_placement(&self, axis: AbsoluteAxis) -> Line<GridPlacement>
Get a grid item’s row or column placement depending on the axis passed