skip to Main Content

Updating mat-calendar date css on an event

I am trying to update the css of specific dates in mat calendar, when the user clicks on a button. This is the code I have: app.component.ts: import { Component, ViewEncapsulation } from '@angular/core'; import { MatCalendarCellClassFunction } from '@angular/material/datepicker';…

VIEW QUESTION

Javascript – how take father from button click

I need to get father after a click: i have this code html: <button mat-icon-button (click)="download($event)"> the code html generate is this: <button _ngcontent-wsc-c153="" mat-icon-button="" class="" aria-label=""> <mat-icon _ngcontent-wsc-c153="" role="img" alt="download" class="" aria-hidden="true" data-mat-icon-type="font" aria-describedby="cdk-describedby-message-2" cdk-describedby-host="0">download_for_offline</mat-icon><!----> </button> in my ts…

VIEW QUESTION
Back To Top
Search