0.3.1 • Published 8 years ago

ember-cli-tooled v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

ember-cli-tooled

Download count all time NPM package Build Status Ember Observer Score

A lightweight CSS tooltip component for your Ember CLI app.

Check out the demo.

Installation

ember install ember-cli-tooled

Usage

From within your template.

{{#tooltip-message message="Hello world!"}}
  <button {{action "save"}}>Save</button>
{{/tooltip-message
{{tooltip-message message="Hello world!" position="right"}}

Options

Message

The string that is displayed within the tooltip. This is the only required option.

Example

{{tooltip-message message="A test tooltip"}}

Position

Set the position of the tooltip.

Default value is top

Values

  • top
  • right
  • bottom
  • left

Example

{{tooltip-message message="This tooltip will appear on right" position="right"}}

Size

Set the size of the tooltip.

Default value is medium

Values

  • small
  • medium
  • large

Example

{{tooltip-message message="This is a small tooltip" size="small"}}

Theme

Default value is dark

Values

  • dark
  • light

Example

{{tooltip-message message="A light tooltip" theme="light"}}

Always visible

Set the tooltip to be permanently visible, as opposed to being triggered on an element hover.

Default value is false

Example

{{tooltip-message message="Tooltip is permanently visible" always=true}}

Animate

Have the tooltip animate in on hover.

Default value is true

Example

{{tooltip-message message="Tooltip will animate on hover" animate=true}}
0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago