Raxol.Style.Layout (Raxol v0.5.0)
View SourceHandles layout styling for Raxol components.
Summary
Functions
Gets the alignment from a layout style.
Gets the border from a layout style.
Gets the display property from a layout style.
Gets the flex properties from a layout style.
Gets the grid properties from a layout style.
Gets the margin from a layout style.
Gets the overflow behavior from a layout style.
Gets the padding from a layout style.
Gets the position from a layout style.
Gets the z-index from a layout style.
Creates a new layout style with default values.
Creates a new layout style with the specified margin.
Sets the alignment for a layout style.
Sets the border for a layout style.
Sets the display property for a layout style.
Sets the flex properties for a layout style.
Sets the grid properties for a layout style.
Sets the margin for a layout style.
Sets the overflow behavior for a layout style.
Sets the padding for a layout style.
Sets the position for a layout style.
Sets the z-index for a layout style.
Types
@type t() :: %Raxol.Style.Layout{ alignment: :start | :center | :end | :space_between | :space_around, border: {atom(), atom(), atom(), atom()}, display: :block | :inline | :flex | :grid | :none, flex: map(), grid: map(), margin: {non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer()}, overflow: :visible | :hidden | :scroll | :auto, padding: {non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer()}, position: :static | :relative | :absolute | :fixed, z_index: integer() }
Functions
Gets the alignment from a layout style.
Gets the border from a layout style.
Gets the display property from a layout style.
Gets the flex properties from a layout style.
Gets the grid properties from a layout style.
Gets the margin from a layout style.
Gets the overflow behavior from a layout style.
Gets the padding from a layout style.
Gets the position from a layout style.
Gets the z-index from a layout style.
Creates a new layout style with default values.
Creates a new layout style with the specified margin.
Sets the alignment for a layout style.
Sets the border for a layout style.
Sets the display property for a layout style.
Sets the flex properties for a layout style.
Sets the grid properties for a layout style.
Sets the margin for a layout style.
Sets the overflow behavior for a layout style.
Sets the padding for a layout style.
Sets the position for a layout style.
Sets the z-index for a layout style.