Attach Tooltip
Overview
Component Name: gpii.firstDiscovery.attachTooltip
File: tooltip.js
Attach Tooltip provides a means for attaching tooltips to various elements in the DOM. The Attach Tooltip grade is not intended to be used on its own, but provided as a base grade to another component that will use its capabilities for binding tooltips.
Using the Attach Tooltip grade
To use the Attach Tooltip grade, supply it as a gradeNames
option in your component definition:
fluid.defaults("my.component", {
gradeNames: ["gpii.firstDiscovery.attachTooltip"],
...
});
Grades
This component uses the following base grades:
Model
This component supports the following model properties:
Path | Description | Values | Default |
---|---|---|---|
currentSelectedIndex |
The index of the currently selected element | Number | undefined |
Subcomponents
This component has the following subcomponents:
Name | Description | Values | Default |
---|---|---|---|
tooltip |
Specifies the tooltip component to use to create the tooltips. | "fluid.tooltip" |
|
Options
This component can be configured using the following options:
Name | Description | Values | Default |
---|---|---|---|
tooltipOptions |
Options to be passed down to the tooltip subcomponent. | (see: fluid.tooltip) |
|
Name | Description | Values | Default |
tooltipContentMap |
Defines the mapping between the names in the selectors block and message bundle for dom elements to have tooltips.
Two methods to define mappings:
|
|
Dependencies
<script type="text/javascript" src="src/lib/infusion/infusion-custom.js"></script>
<script type="text/javascript" src="src/js/msgLookup.js"></script>
<script type="text/javascript" src="src/js/tooltip.js"></script>