ember-cli-bootstrap3-tooltip

npm version downloads Code Climate

ember-observer-badge

This addon allows you to quickly and conveniently create a Bootstrap3 Tooltip.

Compatibility

Installation

The following will install this addon:

ember install ember-cli-bootstrap3-tooltip

Dependencies

Demo

The demonstration web application can be found here: http://ember-cli-bootstrap3-tooltip.cybertooth.io/.

Usage

What Does This Addon Do?

This addon supplied the following components:

…and the following mixin:

Components

``

Create an <abbr> element whose title property will be used to generate a tooltip.

Arguments
Examples

See the demonstration app for examples

``

Create a <button> element whose title property will be used to generate a tooltip.

Arguments
Examples

See the demonstration app for examples

``

Create a <cite> element whose title property will be used to generate a tooltip.

Arguments
Examples

See the demonstration app for examples

``

Create an <i> element whose title property will be used to generate a tooltip.

Arguments
Examples

See the demonstration app for examples

``

Create an <span> element whose title property will be used to generate a tooltip.

Arguments
Examples

See the demonstration app for examples

``

Create an <time> element whose title property will be used to generate a tooltip.

Arguments
Examples

See the demonstration app for examples

title Component

When you have a tooltip title that is another rendered component or some sort of dynamic content, use the nested title component on any one of the above twbs-* tags.

Here’s an example from the demo site of a clock icon with the current time changing in the tooltip:


  ::

Mixins

TwbsTooltip

Check out the Bootstrap Tooltip Options documentation as all have been exposed in this mixin, with the following cavaets:

Properties

Troubleshooting And Tips

  1. If you have a title that is dynamic use the nested title component.
  2. Make sure the Bootstrap3 CSS and the tooltip Javascript plugin is installed.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.