traingenerator
traingenerator copied to clipboard
Custom HTML in DayConfig subTitle
Hi again!
Is it possible to add custom HTML in DayConfig.subTitle? I need this to be able to add custom characters/icons in calendar days.
Example:
days.forEach(v => {
this.calendar.options.daysConfig.push({
date: moment(v.date).toDate(),
marked: true,
subTitle: `<div class="icon-${v.icon}"></div>`
})
});
The result I'm getting now is:
Thanks!
not support, you can use pseudo-element
I also need this feature. I would like to show 3 different dots each different color.
+1
+1
you must point to the class
app.css
ion-calendar button.days-btn.
.ts
daysWeekend.push({ date: new Date(_date), cssClass: 'my-day' })
I need to use some of the ionic icons instead of the text.
Was this ever figured out? I need icons as well