[Enhancement] Addition of new properties to the Calendar component #212
Labels
enhancement
Improves on existing functionality - NOT a new feature
needs discussion
It's unclear how this issue should be handled
Description
Currently the Calendar component can't prevent users from selecting certain days. That is, we can click on any cell and the day will be selected. Also we can't customize the month names and the week days.
Suggested Solution
My suggested solution involves the addition of some new fields to the Calendar, such as
month_names : Array of str
week_names : Array of str
valid_days : Array of ints
Alternatives
Perhaps customizing
input type="date
with Rio theme will prove easier an quicker to maintain. However, the level of control will decay.Additional Context
I've looked into calendar.ts inside rio/frontend/code/components and I noticed the properties:
monthNamesLong?: Array<string>
, anddayNamesLong?: Array<string>
. If those props are made public to Python, we can easily customize month and week days. Also there are some methods which might need some changes:Related Issues/Pull Requests
None, I've searched at Discussions, Issues and Discord.
The text was updated successfully, but these errors were encountered: