2

By digging through some example code I figured out that an event has a number of properties such as id, title, start, end :

    "evts" : [{
        "id"    : 1001,
        "cid"   : 1,
        "title" : "TRACPaket1",
        "start" : makeDate(-20, 10), //d, //h
        "end"   : makeDate(10, 15),
        "notes" : "Have fun"
    },..

I would like to see what other things I can do with an event. For instance, it would be good if I could change the background (or foreground) color of an event, or even add a custom icon to the event.

Is this documented anywhere? Is there a complete list of what constitutes an event object?

Oliver Watkins
  • 12,575
  • 33
  • 119
  • 225

1 Answers1

1

Might these docs be what you were looking for? After a quick scan of the page, I couldn't find anything pertaining to colors within the events themselves, but I imagine it's possible.

Chris Sprague
  • 740
  • 1
  • 12
  • 22
  • In hindsight, this should have been a comment, rather than a fully-fledged answer, since it apparently doesn't address the entirety of your question. – Chris Sprague Dec 05 '14 at 14:58
  • yeah i had a look at that custom-mappings but it confused me even more. My data has 'start', but that mapping has 'StartDate', 'StartDt', and 'start_dt'. I'm not sure what is what. – Oliver Watkins Dec 05 '14 at 15:01
  • @OliverWatkins did you check out the [source](http://ext.ensible.com/deploy/dev/docs/source/EventMappings.html#cls-Extensible.calendar.data.EventMappings) too? There's an entry in there which appears to associate the `name` "StartDate" to `mapping` "start" (towards the bottom). It also contains all that `start_dt` stuff. – Chris Sprague Dec 05 '14 at 15:05
  • thanks, I have absolutely no clue how to use this calendar because there is no documetnation (except a little in the API docs). We are probably going to dump this component and go with something else. – Oliver Watkins Dec 08 '14 at 11:45
  • @OliverWatkins no problemo boss. Sorry I couldn't be of more help! – Chris Sprague Dec 08 '14 at 14:16