dmc.Datepicker - Exclude dates

Hello, I want to create a datepicker where only tuesdays are selectable.

Like in this example of the Documentation

How can I do something like that? For now I have a callback where I verify if selected date is tuesday, but its not the best choice.

Thanks

Hi @Lucca and welcome to the Dash community :slightly_smiling_face:

Dash doesnโ€™t typically accept functions as props, but that is a feature request for dash-mantine-components.

In the meantime, you can use the disabledDates prop to pass in a list of disabled dates. Here is an example:

1 Like