Skip to content

Week calendar

Widget that has a weekly calendar lay on top of the child widget. It will passed data.selectedDate to the child when user selected a date

image

Name Description
component weekly-calendar
initialDate optional initial date to be selected, if not provided, selected today date
options.selectedColor optional color to use to fill the background of selected date
options.todayColor optional color to use to fill the background of selected date that is today
child a child widget where this widget will be laid on top of

Example

{
    "component": "week-calendar",
    "options": {
        "todayColor": "#8c8c8c",
        "selectedColor": "#cecece"
    }
    "child": {
        "component": "text",
        "text": "{data.selectedDate|date:MMM d, yyyy}"
    }
}