PrintableAgenda
One sheet per lane for the week holding `anchor`, each on its own printed page. On screen the sheets stack, so a page can show them before printing. Events that name no lane are left out: a sheet is someone's.
packages/ui/src/components/data/calendar/PrintableAgenda.tsx
Import
Subpath export:
@marktiderman/genesis-ui/dataimport { PrintableAgenda } from "@marktiderman/genesis-ui/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.PrintableAgenda
One sheet per lane for the week holding `anchor`, each on its own printed page. On screen the sheets stack, so a page can show them before printing. Events that name no lane are left out: a sheet is someone's.
| Prop | Type | Default | Description |
|---|---|---|---|
| events* | readonly CalendarEvent<T>[] | — | |
| lanes* | readonly CalendarLane[] | — | The sheets, in order: exactly these lanes, each titled by its `label`. Required: a lane's key is an id, never a title for a printed page. |
| anchor | string | — | A day in the week printed (default today). |
| className | string | — | |
| headingLevel | enum | 3 | The level of each sheet's heading (the lane's name); its days are one below. Default 3. |
| locale | string | — | BCP 47 locale for dates and times. Default the runtime's. |
| sections | readonly PrintableSection[] | [] | Under each lane's week. |
| showEmptyDays | boolean | true | The sheets show days with nothing on them too. Default true: a printed week has every day. |
| testID | string | printable-agenda | |
| timeZone | string | — | The clock days are counted on. Default the device's. |
| title | ReactNode | — | Over each sheet, before the lane's name. |
| weekStartsOn | enum | 1 | 0 Sunday or 1 Monday (default). |
PrintButton
Prints the page (the browser's print dialog). Hidden on the printed page itself.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| label | string | — | The button's words. Default the catalogue's `calendar.print`. |