Skip to content

prevent range selection with not selectable dates in between #2

@mawo87

Description

@mawo87

I'm using the onDate callback to assign a custom class and the selectable attribute to a given date, depending on some. i.e., I have availabilities (0, 1) for every date and I'm using a range select to allow users to select a 'from' and a 'to' date.

Now I'd like to prevent users from selecting a date range which has 'non selectable' dates (i.e. having a certain class and the selectable=false attribute set).

The behavior should be similar to when a user has a start date selected, all the dates in the past will be disabled for selection.

Would this be a functionality that can be easily added to the plugin? I couldn't find a way of doing this by using the provided callbacks.

Best Regards,
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions