gitbook-plugin-glossary-tooltip
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,2 +9,3 @@ require([ | ||
trigger: 'hover', | ||
placement: 'top', | ||
}; | ||
@@ -30,3 +31,3 @@ var selectors = '.gbgt-tooltip'; | ||
trigger: /hover|click|focus/.test(opts.trigger) ? opts.trigger : 'hover', | ||
placement: 'left', | ||
placement: /top|left|bottom|right/.test(opts.placement) ? opts.placement : 'top', | ||
modifiers: { | ||
@@ -33,0 +34,0 @@ flip: { |
@@ -5,3 +5,3 @@ { | ||
"main": "index.js", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"engines": { | ||
@@ -50,2 +50,7 @@ "gitbook": ">=2.3.0" | ||
"description": "the event that triggers the tooltip. one of ['hover', 'click', 'focus']" | ||
}, | ||
"placement": { | ||
"type": "string", | ||
"default": "top", | ||
"description": "placement of the tooltip relative to the trigger element. one of ['top', 'bottom', 'left', 'right']" | ||
} | ||
@@ -52,0 +57,0 @@ } |
@@ -39,2 +39,3 @@ GitBook Glossary Tooltip Plugin | ||
| `trigger` {string} <br> **default**: `hover` | the event that triggers the tooltip. one of ['hover', 'click', 'focus'] | | ||
| `placement` {string} <br> **default**: `top` | placement of the tooltip relative to the trigger element. one of ['top', 'bottom', 'left', 'right']" | | ||
@@ -41,0 +42,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8783
183
67