Oracle CRM On Demand JavaScript API Developer's Guide > JavaScript API Reference > Methods for the oraclecrmod Object >

Considerations for Specifying Tooltips with HTML Formatting


When calling the createButton(), registerButtonToolTip(), or setToolTipText() methods, you can specify tooltip text with HTML formatting. When specifying tooltip text with HTML formatting, performance is better if you avoid complex HTML and reduce the number of images displayed in the tooltip. Interactive controls, such as hyperlinks, are not supported. It is also recommended that you specify the padding properties of elements to make the tooltip text easier to read.

Quote characters in HTML code must be escaped, otherwise the entire script does not render on the page at all, and the tooltip does not appear. The following is an example of HTML code with padding specified and with the quotes escaped:

<div style=\"background-color:red;padding:3px 8px;border-radius:5px;\">This is a div</div>

NOTE:  When you use the HTML tag <DIV>, it is recommended to use a border to ensure that the content in the <DIV> tag stays in the tooltip box.

Oracle CRM On Demand JavaScript API Developer's Guide, Release 38 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices.