aria-tooltip-generator

1.0.0 • Public • Published

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

  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.

Readme

Keywords

none

Package Sidebar

Install

npm i aria-tooltip-generator

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • davidetriso