We'd like to color the entire background of a cell in the monthly calendar. We've overwritten the cellHtml() call or whatever it is but due to the way the sizing is, there doesn't appear to be any way to change entire background color of the cell.
Announcement
Collapse
No announcement yet.
X
-
We've just added an advanced API to calendar which will allow you to achieve this.
calendar.setMonthViewProperties(ListGrid properties); will allow you to customize the automatically generated monthView listGrid.
You should therefore be able to modify the cssText via an override to getCellCSSText()
This will be present in the next nightly build
Comment
-
We'd like to set different cell has different background colour in monthly calendar view.
We try to use function like getDayBodyHTML, getCellCSSText, but no longer there.
It seen that all function in Calendar class is to set CSS style for all cell, not individual cell.
Any other function can do it ?
Comment
-
Originally posted by Isomorphic View PostAgain, setDateCSSTextCustomizer() is what you need.
The customizer gets passed a date and a CalendarView, so you can return entirely custom CSS for any given date, in any particular view.
Comment
Comment