Tooltips are not out-of-box functionality in Expert. This is a suggested method that uses out-of-box functionality to create a tooltip effect.
Part 1: Set up global variables
Create a global variable for each term or phrase you want to appear with a tooltip. Make the variable name match the term you will use on the page and the variable value match the variable definition. For example, you have the following glossary terms:
These global variable terms have the following definitions, respectively:
The code that you add to the global variables template is:
noun:"a name of a person, place, or thing", verb:"an action word"
$(function() { $('.tool-tip-link').tooltip(); } );
.tool-tip-link { background-color: rgb(238, 238, 238); cursor: help; padding: 2px; } .ui-tooltip { background: #fff; } .ui-tooltip.ui-widget-shadow { opacity: 1; }
The sample CSS code gives glossary terms a pale gray background and the tooltip box a white background. Modify as desired.
<span class="tool-tip-link" title="{{noun}}">noun</span>
After you have completed these steps, test the tooltip definition by hovering your mouse over the glossary term you added.
Hover your mouse pointer over the following glossary terms to see the tooltip definition:
This solution works with contextual help, but will not be styled the same way. You can leverage the append and prepend text to contextual help to add custom CSS to style the experience.