Attach Tooltip on Languge Panel API

Attach Tooltip on Languge Panel Overview

To use a demands block to apply a special css class to tooltips in the Language Panel, the Attach Tooltip on Languge Panel component needs to be attached as a sub-component of the Language Panel. According to Contexts, when the context component of the demands block was the language panel itself, the demands block would also be applied to all panels rather than the Language Panel only. The Attach Tooltip on Languge Panel component is acted as another layer of containment to work around this issue.

On This Page
Still need help?

Join the infusion-users mailing list and ask your questions there.


Adding a Attach Tooltip on Languge Panel Component

Typically, the attach tooltip on language panel component is used as a sub-component of the Language Panel.

fluid.defaults("gpii.firstDiscovery.panel.lang", {
    components: {
        attachTooltipOnLang: {
            type: "gpii.firstDiscovery.panel.lang.attachTooltipOnLang",
            container: ...,
            options: {
                ...
            }
        }
    }
});

Grades

The base grades used by the Attach Tooltip on Languge Panel:

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>
<script type="text/javascript" src="src/js/panels.js"></script>