Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight dates in solara.lab.InputDate #818

Open
mikelzabala opened this issue Oct 15, 2024 · 2 comments
Open

Highlight dates in solara.lab.InputDate #818

mikelzabala opened this issue Oct 15, 2024 · 2 comments

Comments

@mikelzabala
Copy link

I would like to highlight certain dates in the InputDate widget or limit the selection to specific dates, similar to the functionality provided in the Panel DatePicker (https://panel.holoviz.org/reference/widgets/DatePicker.html).

@iisakkirotko
Copy link
Collaborator

iisakkirotko commented Oct 15, 2024

Hi @mikelzabala!

Although Solara's InputDate doesn't support these options directly, I think everything you mentioned should be possible through ipyvuetify's date picker, which you can use through solara.v.DatePicker. However, taking that route is a bit more work for the user, and I think it would be good to at least have the option to limit selection to specific dates natively in Solara. Implementing these options should amount to exposing the ipyvuetify date picker's allowed_dates in solara/lab/components/input_date.py. Would you like to open a PR for that?

@mikelzabala
Copy link
Author

hi,
yes that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants