ember-cli-bootstrap3-popover

npm version downloads Code Climate

ember-observer-badge

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

Compatibility

Installation

The following will install this addon:

ember install ember-cli-bootstrap3-popover

Demo

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

Usage

As mentioned above there are dozens of examples on the demonstration site: http://ember-cli-bootstrap3-popover.cybertooth.io/

What Does This Addon Do?

This addon supplies the following components:

The following mixin also ships with this addon:

Components

``

A component that contains all of the markup associated with the popover. You can nest , , and `` inside this components block.

The reason this addon requires Ember-2.3.0+ is because this particular component uses the hash helper.

Be aware that when you nest either the content or title it will be automatically treated as html.

Arguments

(Check out the demo…)

Actions

The following popover methods are exposed as actions:

``

A component that nests inside of a `` and generates the content for a popover via its block. This component promotes the easy re-use of existing components inside the popover content and encourages readable html.

Arguments

``

A component that nests inside of a `` and generates the title for a popover via its block. This component promotes the easy re-use of existing components inside the popover title and encourages readable html.

Arguments

``

A component that nests inside of a `` and generates the html element that the popover is bound to. When the popover is initialized, the markup inside this component becomes the popover.

Seriously, check out the examples and all of this will make sense: http://ember-cli-bootstrap3-popover.cybertooth.io/

Arguments

Mixins

Popover

A mixin that provides access to all of the Bootstrap popover options as found here: http://getbootstrap.com/javascript/#popovers-options

Properties
Methods

Troubleshooting And Tips

  1. Ember-2.3.0+ is required because this addon uses the hash helper.
  2. Bootstrap3 CSS and the tooltip Javascript plugin must be installed.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.