alexbruf/elm-cally/1.0.0

NOTE: the latest version is 1.1.0

Cally.Month

The month grid, a port of calendar-month/calendar-month.tsx and calendar-month/useCalendarMonth.ts.

A month is a child of a picker, so it takes the Context the picker hands it:

Cally.Date.view config
    value
    model
    [ Cally.Month.view { offset = 0 }
    , Cally.Month.view { offset = 1 }
    ]
view : { offset : Int } -> Context msg -> Html msg

Render the month offset months after the start of the picker's page.

{ offset = 0 } is the first month on the page, { offset = 1 } the second, and so on. Rendering more months than Config.months is allowed; they simply show later months and never hold the roving tabindex.