3.4 Adding Tooltips to Elements
To add a tooltip to a report element, use the function addStatus(eid, item, message). The 'message' string is shown as a tooltip when the user moves the mouse over the report element with ID specified by 'eid'. If the user's browser permits status bar scripting, the 'message' string is also displayed in the status bar. (Status bar scripting is disabled by default in modern browsers.)
Note: Tooltips are not displayed in Style Studio preview. In the Style Studio preview, tooltip text is displayed in the status bar.
As an example, consider the following script, which you could place either in element-level or report-level script:
replet.addStatus("Title",null,"Example report");
The element with the ID “Title” will now display the tooltip text “Example report” when viewed in the User Portal.
See Also
addStatus(eid, item, message), in Appendix SI:Style Intelligence Object Reference.
toolTip, for a simple way to construct custom Chart tooltips.
Adding Tooltips to a Table or Chart, for information about the 'item' parameter.
Report Elements, in Report Design, for information on element IDs.
Element Script, for information on element-level scripting.
Report Handlers, for information on report-level scripting.
| << 3.3 Common Constants | © 1996-2013 InetSoft Technology Corporation (v11.4) | 3.4.1 Adding Tooltips to a Table or Chart >> |