UNPKG

bootstrap-vue

Version:

BootstrapVue, with over 40 plugins and more than 80 custom components, custom directives, and over 300 icons, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated WAI-AR

258 lines (257 loc) 8.63 kB
{ "name": "@bootstrap-vue/tooltip", "version": "1.0.0", "meta": { "title": "Tooltip", "description": "Easily add tooltips to elements or components via the <b-tooltip> component or v-b-tooltip directive.", "plugins": [ "VBTooltipPlugin" ], "components": [ { "component": "BTooltip", "props": [ { "prop": "target", "description": "Element string ID, or a reference to an element or component, that you want to trigger the tooltip." }, { "prop": "title", "description": "Text to place in the tooltip" }, { "prop": "triggers", "description": "Specify which triggers will show the tooltip. Supported values are 'click', 'hover', 'focus'. Refer to the docs for special triggers 'blur' and 'manual'" }, { "prop": "placement", "description": "Placement of the tooltip: One of 'top', 'bottom', 'right', 'left', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom', 'right-top', 'right-bottom'" }, { "prop": "fallbackPlacement", "description": "placement to use when the tooltip would be out of boundaries. Refer to the docs for more details" }, { "prop": "customClass", "description": "CSS class (or classes) to apply to the tooltip's root element" }, { "prop": "delay", "description": "Value for the show and hide delay. Applies to both show and hide when specified as a number or string. Use object form to set show and hide delays individually" }, { "prop": "boundary", "description": "The boundary constraint of the tooltip: 'scrollParent', 'window', 'viewport', or a reference to an HTMLElement or component" }, { "prop": "boundaryPadding", "description": "The tooltip will try and stay away from the edge of the boundary element by the number of pixels specificed" }, { "prop": "offset", "description": "Offset (in pixels) for the arrow center compared to the trigger target element" }, { "prop": "container", "description": "The container element to append the rendered tooltip when visible. Default's to the body element" }, { "prop": "show", "description": "When set will show the tooltip" }, { "prop": "noninteractive", "version": "2.2.0", "description": "Wether the tooltip should not be user-interactive" } ], "events": [ { "event": "show", "description": "Emitted when tooltip is about to be shown. Cancelable. Call bvEvent.preventDefault() to cancel show.", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object. Cancelable." } ] }, { "event": "shown", "description": "Emitted when tooltip is shown", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object." } ] }, { "event": "hide", "description": "Emitted when tooltip is about to be hidden. Cancelable. Call bvEvent.preventDefault() to cancel hide.", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object. Cancelable." } ] }, { "event": "hidden", "description": "Emitted when tooltip is hidden", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object." } ] }, { "event": "enabled", "description": "Emitted when tooltip becomes enabled", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object" } ] }, { "event": "disabled", "description": "Emitted when tooltip becomes disabled", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object" } ] }, { "event": "bv::tooltip::show", "description": "Emitted on $root when tooltip is about to be shown. Cancelable. Call bvEvent.preventDefault() to cancel show.", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object. Cancelable." } ] }, { "event": "bv::tooltip::shown", "description": "Emitted on $root when tooltip is shown", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object." } ] }, { "event": "bv::tooltip::hide", "description": "Emitted on $root when tooltip is about to be hidden. Cancelable. Call bvEvent.preventDefault() to cancel hide.", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object. Cancelable." } ] }, { "event": "bv::tooltip::hidden", "description": "Emitted on $root when tooltip is hidden", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object." } ] }, { "event": "bv::tooltip::enabled", "description": "Emitted on $root when tooltip becomes enabled", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object." } ] }, { "event": "bv::tooltip::disabled", "description": "Emitted on $root when tooltip becomes disabled", "args": [ { "arg": "bvEvent", "type": "BvEvent", "description": "bvEvent object." } ] } ], "rootEventListeners": [ { "event": "bv::hide::tooltip", "description": "Close (hide) all or a specific open tooltip when this event is emitted on $root", "args": [ { "arg": "id", "type": "String", "description": "(optional), tooltip id to hide" } ] }, { "event": "bv::show::tooltip", "description": "Open (show) all or a specific tooltip when this event is emitted on $root", "args": [ { "arg": "id", "type": "String", "description": "(optional), tooltip id to show" } ] }, { "event": "bv::disable::tooltip", "description": "Disable all or a specific tooltip when this event is emitted on $root", "args": [ { "arg": "id", "type": "String", "description": "(optional), tooltip id to disable" } ] }, { "event": "bv::enable::tooltip", "description": "Enable all or a specific tooltip when this event is emitted on $root", "args": [ { "arg": "id", "type": "String", "description": "(optional), tooltip id to enable" } ] } ], "slots": [ { "name": "default", "description": "Slot for tooltip content (HTML/components supported)" } ] } ] } }