Announcement

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

    Canvas.showPrintPreview(timeline)

    Hello,
    Canvas.showPrintPreview(timeline) does not show a preview window in Version 13(v13.0p_2022-08-29/Pro Development Only)
    In Version 12.0 it does
    When putting the timeline in a Layout Containter it works, but the events are not aligned correnctly
    Demo:

    Code:
    var developers = [
        { name: "charlesMadigen", title: "Charles Madigen" },
        { name: "tamaraKane", title: "Tamara Kane" },
        { name: "darcyFeeney", title: "Darcy Feeney" },
        { name: "kaiKong", title: "Kai Kong" },
        { name: "shellyFewel", title: "Shelly Fewel" },
        { name: "garretMonroe", title: "Garret Monroe" }
    ];
    
    var _calStart = isc.DateUtil.getStartOf(new Date(2020, 6, 4), "W");
    var _calEnd = _calStart.duplicate();
    _calEnd.setDate(_calEnd.getDate() + 21);
    
    isc.Timeline.create({
        ID: "timeline",
        height: 475,
        startDate: _calStart,
        endDate: _calEnd,
        data: events,
        lanes: developers,
        headerLevels: [ { unit: "week" }, { unit: "day" } ],
        laneFields: [ { name: "title", title: "Developer", minWidth: 120, autoFitWidth: true } ],
        canEditLane: true,
        showEventDescriptions: false,
        columnsPerPage: 5
    });
    isc.Button.create({
      title: "print",
      click:"Canvas.showPrintPreview(timeline);"
    
    })
Working...
X