Announcement

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

    timeline "dayHeaderClick" does not work

    I have a question about the timeline class:

    Which event/method can I use to get a mouse click on the day or week header of the timeline?

    In current timeline example in feature explorer “dayHeaderClick” does not work. Probably it's not the correct event.

    #2
    dayHeaderClick is for month views - there is functionality attached to it that is not applicable to timelines.

    There's no public API on calendar to get this notification, but the various Calendar views are AutoChild ListGrids, so, in this case, you can add a headerClick handler via properties:

    Code:
    isc.Calendar.create({
        ...
        timelineViewProperties: {
            headerClick : function (fieldNum) {
                ...
            }
        }
    })

    Comment


      #3
      Thanks. It's working.

      Is there a similar solution to catch the click on the week-buttons above the day-buttons?

      The mouse-cursor changes to a hand when moved over week-buttons. (see timeline example)

      Comment


        #4
        see the doc for ListGrid.headerSpan - something like this will do it:

        Code:
        timelineViewProperties: {
            headerSpanProperties : {
                click : function () {
                }
            }
        }

        Comment

        Working...
        X