This addon allows you to quickly and conveniently create a Bootstrap3 Popover.
The following will install this addon:
ember install ember-cli-bootstrap3-popover
The demonstration web application can be found here: http://ember-cli-bootstrap3-popover.cybertooth.io/.
As mentioned above there are dozens of examples on the demonstration site: http://ember-cli-bootstrap3-popover.cybertooth.io/
This addon supplies the following components:
twbs-popover - a container-like element for the popover’s markup, options, methods, and events.twbs-popover/content - a component you nest inside a twbs-popover that will generate
the content for the popover.twbs-popover/title - a component you nest inside a twbs-popover that will generate
the title for the popover.twbs-popover/trigger - the component you nest inside a twbs-popover that acts as the bound element for the
popover and in normal trigger events will accept clicks, hovering, and focus events to toggle the popover.The following mixin also ships with this addon:
Popover - imported as import Popover as 'ember-cli-bootstrap3-popover/mixins/popover' and includes all of the
popover options as found in the Bootstrap documentation.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.
Popover mixin.onShow - the property that accepts an action closure hooked to the bootstrap show.bs.popover event.onShown - the property that accepts an action closure hooked to the bootstrap shown.bs.popover event.onHide - the property that accepts an action closure hooked to the bootstrap hide.bs.popover event.onHidden - the property that accepts an action closure hooked to the bootstrap hidden.bs.popover event.onInserted - the property that accepts an action closure hooked to the bootstrap inserted.bs.popover event.The following popover methods are exposed as actions:
hide - triggers the hiding of a popover.show - triggers the showing of a popover.toggle - toggles a popover.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.
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.
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/
PopoverA mixin that provides access to all of the Bootstrap popover options as found here: http://getbootstrap.com/javascript/#popovers-options
animation? (aliased to animation)- Default truecontent - Default ''delay - Default 0delayHide - Default undefineddelayShow - Default undefinedhtml? (aliased to html) - Default falseplacement - Default 'right'popoverContainer - Default falsepopoverTemplate - Default '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'popoverTrigger - Default 'click'selector - Default falsetitle - Default ''getOptions() - returns a hash containing the options from this mixin
that are used to initialize the Bootstrap popover.See the Contributing guide for details.
This project is licensed under the MIT License.