Components Forms
Calendarlive
A month to pick a day from. A live component: Python turns the months and remembers the day.
A live component: its state is kept on the server, and each click or keystroke is answered by its Python class. Put @pbscripts in your layout.
$ pyblade ui:add calendar
Pick a day
Props
Written as attributes of <pb-ui.calendar>; put a colon before one to pass it a Python value, as in :items="items". A slot is written <pb-slot:name>.
| Name | Type | Default | Description |
|---|---|---|---|
| name | str | "" | The name the day is posted under, as YYYY-MM-DD |
| value | str | "" | The day picked, as YYYY-MM-DD |
| first_weekday | int | 0 | The first day of the week: 0 is Monday, 6 is Sunday |