Callback for selecting date range in angular material datepicker

Discussão em 'Angular' iniciado por HeroesVII, Janeiro 10, 2025.

  1. HeroesVII

    HeroesVII Guest

    I'm trying to inject callback after selecting date into angular material datepicker - trick is, i need action-button, so selecting date in calendar interface is not firing dateChange event in mat-date-range-input - this event happens only after click in "Apply" button. I was searching in "mat-date-range-picker" interface and into state of that component, but i cannot find where this temporary date value is stored before accepting it by "Apply":

    [​IMG]

    Like here: "Jan 13" is selected, but second date not - how to get this Jan 13 value before selecting second date and "Apply"? There are yearSelected() and monthSelected() in , but there is not daySelected anywhere

    Continue reading...

Compartilhe esta Página