Skip to content

Datepicker: Emit date range currently displayed #6758

@jdwill916

Description

@jdwill916

Is your feature request related to a problem? Please describe.

I would like to add some date specific classes or disable dates based on the results of an API call. However, this API call is too expensive to run for much more than a month or two at a time. I would like to know what date range is currently displayed on the datepicker so I can load the data for that date range.

Describe the solution you'd like

An output property on the datepicker directive that indicates either the currently displayed date, or the range of dates currently shown.

Describe alternatives you've considered

Currently we are using a solution similar to the one posted in this Stack Overflow answer. However, this requires accessing private members of the datepicker, so it is not a great solution.

https://stackoverflow.com/a/64635151/7927727

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions