The built-in status grid (spec/05 §6.2), "macaw.status_grid": one tile per thing,
each showing its state, of kind :content, :pure.
- parameters:
label(text,""), the grid's heading, none when empty; - declarations: one slot,
rows, with rolesname(the identity field, any of the types an identity takes),status(a:category) anddetail(optional, any type); reading load:glance; - markup: a list of tiles in the order of the
namefield's values (by its type, as a source orders), each with the name, the state's words and the detail. A tile's class ismw-status-<role>: the role thestatusfield's schema gives its state (:good,:warning,:bad,:info,:neutralor a theme's own word),neutralfor a state with none. Color is never the only cue: the state's words are always shown. A capped or stale grid draws its notice above its tiles. Handed a selection in its context (spec/03 §1.7.7), the tile holding it ismw-selectedwitharia-current, every othermw-muted; - stylesheet:
stylesheet/0, served atstylesheet_path/0, its content address.
Summary
Functions
The status roles the stylesheet colors; any other role is drawn as neutral's.
The grid's one static stylesheet: the list, its tiles, and a rule per built-in status role, every color a theme custom property with the default theme's value as its fallback. It loads and imports nothing.
The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).
Functions
@spec roles() :: [String.t()]
The status roles the stylesheet colors; any other role is drawn as neutral's.
@spec stylesheet() :: String.t()
The grid's one static stylesheet: the list, its tiles, and a rule per built-in status role, every color a theme custom property with the default theme's value as its fallback. It loads and imports nothing.
@spec stylesheet_path() :: String.t()
The stylesheet's path, its content address (Macaw.Component.Stylesheet.path/1).