| Issue 2097: | CSS class name instead of hard coding a color in the JSON | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Currently, it seems I can control the color of a calendar entry by specifying a css color name (e.g. Red/#F00). But this is hard coding "UI design" into the data.
A better approach would be to specify a CSS class name in the data. This way the "Look" would be controlled in the CSS and not in the data.
e.g.
{
"title": "Friday Carroll",
"start": "2014-02-15",
"end": "2014-02-20",
"color": "Green",
"allDay": true,
"editable": false
},
becomes mode like:
{
"title": "Friday Carroll",
"start": "2014-02-15",
"end": "2014-02-20",
"color": ".approved",
"allDay": true,
"editable": false
},
Otherwise, Fantastic! Thanks for releasing it.
Feb 19, 2014
#1
precisio...@gmail.com
Jun 7, 2014
use the `className` setting but just write CSS with higher precedence to override the default color.
Status:
Done
|
|
| ► Sign in to add a comment |