Skip to content

Commit 642a05a

Browse files
committed
Global options: more comments
1 parent 053fe7b commit 642a05a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/v-tooltip.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const defaultOptions = {
2929
defaultTargetClass: 'has-tooltip',
3030
// Default HTML template of the tooltip element
3131
// It must include `tooltip-arrow` & `tooltip-inner` CSS classes (can be configured, see below)
32+
// Change if the classes conflict with other libraries (for example bootstrap)
3233
defaultTemplate: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
3334
// Selector used to get the arrow element in the tooltip template
3435
defaultArrowSelector: '.tooltip-arrow, .tooltip__arrow',
@@ -51,10 +52,15 @@ export const defaultOptions = {
5152
// Options for popover
5253
popover: {
5354
defaultPlacement: 'bottom',
55+
// Use the `popoverClass` prop for theming
5456
defaultClass: 'vue-popover-theme',
57+
// Base class (change if conflicts with other libraries)
5558
defaultBaseClass: 'tooltip popover',
59+
// Wrapper class (contains arrow and inner)
5660
defaultWrapperClass: 'wrapper',
61+
// Inner content class
5762
defaultInnerClass: 'tooltip-inner popover-inner',
63+
// Arrow class
5864
defaultArrowClass: 'tooltip-arrow popover-arrow',
5965
defaultDelay: 0,
6066
defaultTrigger: 'click',

0 commit comments

Comments
 (0)