Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow-ui / index / monthGrid

Function: monthGrid()

monthGrid(month, sundayFirst?): object[]

Defined in: flow-ui/src/components/Calendar.tsx:109

The cells of a month grid, including the neighbouring days that fill the first and last weeks.

Those trailing days are rendered rather than left blank: a month that starts mid-week reads as a grid with a hole in it otherwise, and seeing the last days of the previous month is how people orient themselves.

Parameters

month

string

sundayFirst?

boolean = false

Returns

object[]