Hi there,
I'm testing our feature sponsorhsip, and it looks quite nice. Sadly it seems to have a small bug.
If I'm using the getDateHTML function, it does indeed display the correct values that I want.
This is the code for this image:
If I use the implemented methods getDateLabelText, getDayBodyHTML,getDateCellAlign I'm not able to archive the same visual effects. Maybe I'm missing some attribute I have to add to get the same result?
This is the code used for the second image.
I'm testing with the latest nightly SmartClient_v101p_2015-12-13_Pro
Best Regards
I'm testing our feature sponsorhsip, and it looks quite nice. Sadly it seems to have a small bug.
If I'm using the getDateHTML function, it does indeed display the correct values that I want.
This is the code for this image:
Code:
isc.Timeline.create({ ID : "timelines0", timelineViewProperties : { border : "0px solid", height : 53 }, showCellHovers : true, getCellHoverHTML : function (view, record, rowNum, colNum, date, defaultValue) { return "<div>" + date.getDate().toString() + "." + (date.getMonth() + 1).toString() + ".2015</div>"; }, height : 1, overflow : "visible", border : "0px solid", eventEditorLayoutProperties : { defaultHeight : 0 }, showDayHeaders : false, startDate : new Date(2015, 0, 1), endDate : new Date(2015, 0, 31), lanes : [{ name : "1", title : "January", height : 30 } ], getDateHTML: function (date, rowNum, colNum, view){ return "<div style='text-align:center'>"+(date.getDate())+"</div>"; }, headerLevels : [{ "unit" : "day", "headerWidth" : 30, "titleFormatter" : function (headerLevel, startDate, endDate, defaultValue, viewer) { return "" + startDate.getDate(); } } ], laneFields : [{ name : "title", title : " ", width : 100 } ], "data" : [{ "lane" : "1", "description" : "Important event", "startDate" : new Date(2015, 0, 2, 0, 0), "timelineGeneratedIndex" : "1", "backgroundColor" : "#CF0", "showDate" : true, "endDate" : new Date(2015, 0, 2, 23, 59), "name" : " " } ], canEditLane : false, showEventDescriptions : false, labelColumnWidth : 200, showControlsBar : false, "canEditEvents" : false, "canCreateEvents" : false, "showControlsBar" : false, "firstDayOfWeek" : 1, "showEventDescriptions" : false, "showEventHeaders" : false })
This is the code used for the second image.
Code:
isc.Timeline.create({ ID : "timelines0", timelineViewProperties : { border : "0px solid", height : 53 }, showCellHovers : true, getCellHoverHTML : function (view, record, rowNum, colNum, date, defaultValue) { return "<div>" + date.getDate().toString() + "." + (date.getMonth() + 1).toString() + ".2015</div>"; }, height : 1, overflow : "visible", border : "0px solid", eventEditorLayoutProperties : { defaultHeight : 0 }, showDayHeaders : false, startDate : new Date(2015, 0, 1), endDate : new Date(2015, 0, 31), lanes : [{ name : "1", title : "January", height : 30 } ], getDateLabelText : function (viewName, startDate, endDate) { return startDate.getDate(); }, getDayBodyHTML : function (date, events, calendar, rowNum, colNum) { return date.getDate(); }, getDateCellAlign : function (date, rowNum, colNum, view) { return "center"; }, headerLevels : [{ "unit" : "day", "headerWidth" : 30, "titleFormatter" : function (headerLevel, startDate, endDate, defaultValue, viewer) { return "" + startDate.getDate(); } } ], laneFields : [{ name : "title", title : " ", width : 100 } ], "data" : [{ "lane" : "1", "description" : "Important event", "startDate" : new Date(2015, 0, 2, 0, 0), "timelineGeneratedIndex" : "1", "backgroundColor" : "#CF0", "showDate" : true, "endDate" : new Date(2015, 0, 2, 23, 59), "name" : " " } ], canEditLane : false, showEventDescriptions : false, labelColumnWidth : 200, showControlsBar : false, "canEditEvents" : false, "canCreateEvents" : false, "showControlsBar" : false, "firstDayOfWeek" : 1, "showEventDescriptions" : false, "showEventHeaders" : false })
Best Regards
Comment