Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Color of events in timeline not shown if showEventDescriptions is false

$
0
0
Hi,

we are using the backgroundColor of events to show different eventcategories in the timeline.
The timeline is just an overview and most of the information itself we handle with the overlay. Therefore we have set the "showEventDescriptions" to false. Using this results in not displaying the color of the event itself.
We are using SmartClient_v100p_2014-10-19_Pro and testet it with altest firefox and chrome.

Instead of the color of the event a defautl color is used.


After activation the "showEventsDescriptions" the color of the event is displayed, but only as a little block inside the event.


In Smartclient 9.1 the whole event was colored and the boolean could be set to false. It should set the background color whatever the value of showEventsDescriptions is.

With this code you can reproduce the behavior.
Code:

isc.Timeline.create({
        "width" : "100%",
        "height" : "100%",
        "hideUsingDisplayNone" : false,
        "startDate" : new Date(2014, 9, 13),
        "endDate" : new Date(2014, 10, 9),
        "firstDayOfWeek" : 1,
        "alternateLaneStyles" : true,
        "showEventDescriptions" : false,
        "laneFields" :
        [{
                        "name" : "title",
                        "title" : "&nbsp",
                        "type" : "text",
                        "canEdit" : false
                }
        ],       
        "lanes" :
        [{
                        "height" : 30,
                        "name" : "1",
                        "title" : "Item 1"
                }, {
                        "height" : 30,
                        "name" : "2",
                        "title" : "Item 2"
                }
        ],
        "data" :
        [{
                        "lane" : "1",
                        "description" : "this is a description",
                        "startDate" : new Date(2014, 9, 17, 12, 0),
                        "backgroundColor" : "#00BD02",
                        "showDate" : true,
                        "endDate" : new Date(2014, 9, 20, 23, 59),
                        "name" : "&nbsp"
                }
        ]
})

Best regards

Viewing all articles
Browse latest Browse all 4756

Trending Articles