Highlighted Dates in Calendar

From 3B Knowledge
Revision as of 20:15, 25 December 2024 by Admin (talk | contribs) (Created page with "Similar to Loaders, special dates are executable javascript functions defined in Custom Metadata. Below you can find the template for a special date (4th of July) - the global "date" variable is the date the scheduler renders. If you return a string, the text will be displayed in the day cell. Global Variables * date - the current cell's date @return - The return type must be a string or a null. <code>return (</code> <code>   date.getMonth() == 6 &&</code> <code>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Similar to Loaders, special dates are executable javascript functions defined in Custom Metadata. Below you can find the template for a special date (4th of July) - the global "date" variable is the date the scheduler renders. If you return a string, the text will be displayed in the day cell.

Global Variables

  • date - the current cell's date

@return - The return type must be a string or a null.

return (

   date.getMonth() == 6 &&

   date.getDate() == 4

) ? 'July 4th' : null