Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Associate an icon to a calendar event?

    I have a read-only monthly view calendar which lists daily builds.
    I would like to be able to associate a status icon with each build time/version. When the event is clicked, the user is taken to that build record.

    While the simple calendar example allows adding icons, it disassociates the text from the event rendering the eventclick handler inoperable. Since there can be more than one event per day, I don't think the daybody click handler will work here.

    Is there a way to get the best of both worlds here and add an icon to the event while still retaining the distinct event objects?

    #2
    In case others are looking for the same thing I was (having an icon appear in the week or day view), I figured I'd pass along my solution to this.

    Here is my code:
    Code:
    {
      eventId: 1, 
      name: "Inspection",
      description: "West Ashley<br/>Air Harbor<br/>1950/1760 sq. ft.<br/>B. Pulaski<br/>Buyer will attend<br/>$350<br/><img src='/calendar/images/house.png'>",
      startDate: new Date(_year, _month, _start + 1, 9, 30),
      endDate: new Date(_year, _month, _start + 1, 12, 30)
    },
    As you can see, you can embed HTML in the description field, and it will appear in the calendar output.

    Comment

    Working...
    X