Code:
public void onModuleLoad() { VLayout vlayout = new VLayout(); final Timeline calendar = new Timeline(); calendar.setHeight(451); calendar.setStartDate(new Date(112, 5, 2)); calendar.setEndDate(new Date(112, 5, 22)); calendar.setCanEditLane(true); calendar.setShowEventDescriptions(false); HeaderLevel[] headerLevels = new HeaderLevel[] { new HeaderLevel(TimeUnit.WEEK), new HeaderLevel(TimeUnit.DAY) }; calendar.setHeaderLevels(headerLevels); calendar.setLaneFields(new ListGridField[] { new ListGridField("title", "Developer", 120) }); calendar.setLanes(TimelineLaneData.getRecords()); calendar.setData(TimelineData.getRecords()); calendar.setCanEditLane(false); vlayout.addMember(calendar); IButton removeBtn = new IButton("Remove first lane"); removeBtn.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { calendar.removeLane(calendar.getLanes()[0]); } }); vlayout.setWidth100(); vlayout.setHeight100(); vlayout.addMember(removeBtn); vlayout.draw(); }
But clicking on an event I see the lanes in a dropbox, and changing the lane there is possible.
However, on the docs I read:
Code:
Can events be moved between lanes? If so, the event can be dragged to a different lane and, when it's editor is shown, an additional drop-down widget is provided allowing the user to select a different lane.
Comment