package mosaic
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/mosaic.mlx/Mosaic_mlx/Grid/index.html
Module Mosaic_mlx.GridSource
Grid layout constructors for defining tracks and placing items.
box ~display:Display.Grid
~grid_template_columns:[ Grid.length 20.; Grid.fr 1.; Grid.fr 1. ]
~grid_template_rows:[ Grid.length 3.; Grid.fr 1.; Grid.length 3. ]
~grid_row:(Grid.line_range 1 2) ~grid_column:(Grid.line_range 1 4)
[...]Grid template components
Values for ~grid_template_columns and ~grid_template_rows.
A grid template component (single track or repeat clause).
fr n is a flexible track taking n fractional units of remaining space.
fit_content limit is a track clamped between min-content and limit.
val minmax :
min:Toffee.Style.Compact_length.t ->
max:Toffee.Style.Compact_length.t ->
templateminmax ~min ~max is a track that sizes between min and max.
Grid placement
Values for ~grid_row and ~grid_column.
A grid placement specification for a single axis endpoint.
line_range s e is a placement from line s to line e. Shorthand for { start = line s; end_ = line e }.
span_range s n places starting at line s and spanning n tracks. Shorthand for { start = line s; end_ = span n }.
Track sizing functions
Values for ~grid_auto_rows and ~grid_auto_columns.
A track sizing function for auto rows/columns.
track_percent n is a percentage-width track (0.0 to 1.0 range).
Grid template areas
A named grid template area.