I am looking to dynamically create classes with specific background colors fetched from a bank. Is there a way to achieve this in Angular? I have heard that @ViewChildren might be helpful in achieving this.
These classes will be generated based on data retrieved from the database, where each class will correspond to a person's name and their designated background color. It is crucial that the CSS styling reflects this when rendering my component.
.schedule-group-custom-work-days.e-schedule .e-month-view .e-work-days.eduard,
.schedule-group-custom-work-days.e-schedule .e-vertical-view .e-work-hours.eduard {
background-color: rgba(0, 139, 139, 0.26);
}
.schedule-group-custom-work-days.e-schedule .e-month-view .e-work-days.alice,
.schedule-group-custom-work-days.e-schedule .e-vertical-view .e-work-hours.alice {
background-color: #deecfc;
}
.schedule-group-custom-work-days.e-schedule .e-month-view .e-work-days.roger,
.schedule-group-custom-work-days.e-schedule .e-vertical-view .e-work-hours.roger {
background-color: rgba(210, 105, 30, 0.39);
}