five-on-it / apps/client/src/gui/layout / ButtonsSpec
Interface: ButtonsSpec
Defined in: apps/client/src/gui/layout.ts:71
Buttons: flowing in rows (wrapping), one per row, in a grid of equal columns, or equal tiles.
Properties
align?
optionalalign?:"start"|"center"
Defined in: apps/client/src/gui/layout.ts:85
Where the rows of a flow sit across the width.
buttons
buttons:
ButtonSpec[]
Defined in: apps/client/src/gui/layout.ts:74
columns?
optionalcolumns?:number
Defined in: apps/client/src/gui/layout.ts:78
The grid's columns (2 by default).
id?
optionalid?:string
Defined in: apps/client/src/gui/layout.ts:73
kind
kind:
"buttons"
Defined in: apps/client/src/gui/layout.ts:72
layout?
optionallayout?:"grid"|"flow"|"column"|"tiles"
Defined in: apps/client/src/gui/layout.ts:76
flow by default; tiles are equal cells as wide as the widest button.
rows?
optionalrows?:number
Defined in: apps/client/src/gui/layout.ts:83
Tiles: at most this many rows. Where the widest would need more, the cells narrow to fit (sixteen slots: eight and eight) and read in the small type, two lines at most.