Skip to content

Commit ff88ee2

Browse files
committed
Add "hint" feature options
1 parent 0bf70dc commit ff88ee2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ introJs().onafterchange(function(targetElement) {
410410
- `data-tooltipClass`: Optionally define a CSS class for tooltip
411411
- `data-highlightClass`: Optionally append a CSS class to the helperLayer
412412
- `data-position`: Optionally define the position of tooltip, `top`, `left`, `right`, `bottom`, `bottom-left-aligned` (same as `bottom`), `bottom-middle-aligned` and `bottom-right-aligned`. Default is `bottom`
413+
- `data-hint`: The tooltip text of hint
414+
- `data-hintPosition`: Optionally define the position of hint. Options: `top-middle`, `top-left`, `top-right`, `bottom-left`, `bottom-right`, `bottom-middle`. Default: `top-middle`
413415

414416
###Options:
415417

@@ -431,7 +433,7 @@ introJs().onafterchange(function(targetElement) {
431433
- `scrollToElement`: Auto scroll to highlighted element if it's outside of viewport, `true` or `false`
432434
- `overlayOpacity`: Adjust the overlay opacity, `Number`
433435
- `disableInteraction`: Disable an interaction inside element or not, `true` or `false`
434-
- `hintPosition`: Hint position. Default: `top`
436+
- `hintPosition`: Hint position. Default: `top-middle`
435437
- `hintButtonLabel`: Hint button label. Default: 'Got it'
436438
437439

0 commit comments

Comments
 (0)