aria-tooltip-generator
v1.0.0
Published
Extremly small jQuery plugin extension for **[aria-tooltip.js](https://github.com/DavideTriso/aria-tooltip)** to dinamically inject tooltips in the markup.
Downloads
1
Readme
ARIA TOOLTIP GENERATOR
Extremly small jQuery plugin extension for aria-tooltip.js to dinamically inject tooltips in the markup.
Get aria-tooltip.js at https://github.com/DavideTriso/aria-tooltip.
Dependencies
jQuery aria-tooltip.js
Settings / Options
Name | Default | Type | Description | Required or optional -----|---------|------|-------------|---------- tooltipClass | 'tooltip', | string | Class added to the tooltip element | optional tooltipIdPrefix | 'aria-tt-g-' | string | Prefix used to generate the tooltip's id | optional tooltipText | '' | string | Text to be inserted in the tooltip | required
Usage
- Include the JS script aria-tooltip-generator.js - or the minified production script aria-tooltip-generator.min.js- in the head or the body of your HTML file.
- Initialise the widget within an inline script tag, or in an external JS file.
Example
$('#selector').ariaTooltipGenerator({
tooltipText: 'This is the text of the tooltip'
});
LICENSE
This project is licensed under the terms of the MIT license.
See LICENSE.md for detailed informations.