Hi Isomorphic,
I am trying to show cell hovers for a lane field cell only when its value is clipped using the timelineView autochild, however, the following code doesn't work as expected.
After doing some investigation it doesn't look like hovers are working at all for either lane field cells or normal cells.
Here is my sample code:
Is this a defect or is there something else I need to enable?
Thanks
I am trying to show cell hovers for a lane field cell only when its value is clipped using the timelineView autochild, however, the following code doesn't work as expected.
Code:
CalendarView timelineViewProperties = new CalendarView(); timelineViewProperties.setCanHover(null); timelineViewProperties.setShowClippedValuesOnHover(Boolean.TRUE); timeline.setAutoChildProperties("timelineView", timelineViewProperties);
Here is my sample code:
Code:
public void onModuleLoad() { VLayout layout = new VLayout(); layout.setWidth100(); layout.setHeight100(); layout.addMember(getTimeline()); layout.draw(); } private Timeline getTimeline() { Timeline timeline = new Timeline(); timeline.setCellHoverCustomizer(new CellHoverCustomizer() { @Override public String getHoverHTML(ListGridRecord record, int rowNum, int colNum, Date date, String defaultValue, CalendarView view) { return "Custom hover message."; } }); timeline.setHeight(600); timeline.setShowViewHovers(Boolean.TRUE); timeline.setShowCellHovers(Boolean.TRUE); timeline.setShowLaneFieldHovers(Boolean.TRUE); // set up the grid ListGridField titleField = new ListGridField("title", "Title", 120); timeline.setLaneFields(titleField); timeline.setLanes(new Lane("lane1", "Lane 1")); return timeline; }
Thanks
Comment