UseWaffleOptions
Defined in: packages/waffle/src/react/useWaffle.ts:8
What useWaffle takes.
Properties
Section titled “Properties”columns?
Section titled “columns?”
optionalcolumns?:number
Defined in: packages/waffle/src/react/useWaffle.ts:21
Cells per row. Defaults to a square grid.
dimensions
Section titled “dimensions”dimensions: readonly
Dimension[]
Defined in: packages/waffle/src/react/useWaffle.ts:12
Every dimension the items carry values for.
optionalgap?:number
Defined in: packages/waffle/src/react/useWaffle.ts:23
The space between cells, as a share of the cell pitch. Defaults to 0.15.
initialViewId?
Section titled “initialViewId?”
optionalinitialViewId?:string
Defined in: packages/waffle/src/react/useWaffle.ts:19
The view shown first. Defaults to the first.
items: readonly
Item[]
Defined in: packages/waffle/src/react/useWaffle.ts:10
One per cell (below the cap), unique ids. Treated as immutable: pass a new array to change it.
maxMarks?
Section titled “maxMarks?”
optionalmaxMarks?:number
Defined in: packages/waffle/src/react/useWaffle.ts:25
Above this many items, cells stand for several. Defaults to 1,000.
optionalunit?:string
Defined in: packages/waffle/src/react/useWaffle.ts:27
What one item is, for the description and announcements. Defaults to “items”.
views?
Section titled “views?”
optionalviews?: readonlyView[]
Defined in: packages/waffle/src/react/useWaffle.ts:17
The ways of looking, in switcher order. Defaults to one view per dimension, each driving colour, shape and arrangement from that dimension alone.