How do I get the coordinates of the FormItemIcon. We display a form item help icon next to the field and on click need to display customized canvas content as hover help on top and centered on the form item icon. What's the recommended way to do this?
I need to get the coordinates of the form item icon and then position the canvas on top accordingly, but I don't see any API in the FormItemClickHandler for this.
I need to get the coordinates of the form item icon and then position the canvas on top accordingly, but I don't see any API in the FormItemClickHandler for this.
Code:
final FormItemIcon helpIcon = getHelpIcon(); helpIcon.addFormItemClickHandler(new FormItemClickHandler() { public void onFormItemClick(final FormItemIconClickEvent event) { // custom code to display the help canvas on top of the help icon } });
Comment