1.0.0 • Published 7 years ago

aria-tooltip-generator v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

NameDefaultTypeDescriptionRequired or optional
tooltipClass'tooltip',stringClass added to the tooltip elementoptional
tooltipIdPrefix'aria-tt-g-'stringPrefix used to generate the tooltip's idoptional
tooltipText''stringText to be inserted in the tooltiprequired

Usage

  1. 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.
  2. 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.