This is not working for DateItems. The hover only appears when the mouse is on top of the icon, but not on top of the field (like the rest of the FormItems, e.g. TextItem).
Code:
public void onModuleLoad() { DynamicForm testForm = new DynamicForm(); DateItem testItem = new DateItem(); testItem.setShowTitle(false); testItem.setHoverWidth(200); testItem.setUseTextField(true); testItem.setUseMask(true); testItem.setItemHoverFormatter(new FormItemHoverFormatter() { @Override public String getHoverHTML(FormItem item, DynamicForm form) { return "<b>THIS</b> is some custom HTML"; } }); // borrow a style from ListGrid cells... testItem.setHoverStyle("cellOver"); testForm.setItems(testItem); testForm.setBorder("1px solid black"); testForm.draw(); }
Comment