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

getPrintHTML() of Timeline

$
0
0
Hi there,

I'm trying to call the printHtml of a Timeline.

It seems that all events are left out of the export, even if I set the printForExport to true.


I've tested this against every browser and the latest nightly SmartClient_v100p_2015-09-04_Pro.

Here is the example code:
Code:

isc.VLayout.create({
        "ID" : "rootLayout",
        "width" : "100%",
        "height" : "100%",
        "autoDraw" : true,
        "hideUsingDisplayNone" : false,
        "leaveScrollbarGap" : false,
        "members" :
        [
                isc.Button.create({
                        "width" : 200,
                        "click" : function () {
                                timelines0.getPrintHTML({printForExport :true},function(data){
                                        timelineContent.setContents(data);
                                       
                                        console.log(data);
                                });
                        },
                        "title" : "Convert to html",
                }),
                isc.Timeline.create({
                        ID : "timelines0",
                        startDate : new Date(2015, 0, 1),
                        endDate : new Date(2015, 0, 15),
                        showControlsBar: false,
                        canCreateEvents: false,
                        alternateLaneStyles: true,
                        canEditEvents: false,
                        todayBackgroundColor: '#E0E0E0',
                        lanes : [{
                                        name : "1",
                                        title : "January",
                                        height : 30
                                }
                        ],
                        "data" :
                        [{
                                        "lane" : "1",
                                        "description" : "Important event1",
                                        "startDate" : new Date(2015, 0, 2, 0, 0),
                                        "backgroundColor" : "#CF0",
                                        "showDate" : true,
                                        "endDate" : new Date(2015, 0, 5, 23, 59),
                                        "name" : "&nbsp"
                                },{
                                        "lane" : "1",
                                        "description" : "Important event2",
                                        "startDate" : new Date(2015, 0, 7, 0, 0),
                                        "backgroundColor" : "#CF0",
                                        "showDate" : true,
                                        "endDate" : new Date(2015, 0, 10, 23, 59),
                                        "name" : "&nbsp"
                                }
                        ]
                }),
                isc.HTMLPane.create({
                        ID : "timelineContent"
                        })
        ]
});

Best regards

Viewing all articles
Browse latest Browse all 4756

Trending Articles