Skip to content

Commit 0bf70dc

Browse files
committed
Adding hint default options
1 parent 781354a commit 0bf70dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ introJs().onafterchange(function(targetElement) {
409409
- `data-step`: Optionally define the number (priority) of step
410410
- `data-tooltipClass`: Optionally define a CSS class for tooltip
411411
- `data-highlightClass`: Optionally append a CSS class to the helperLayer
412-
- `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`
412+
- `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`
413413

414414
###Options:
415415

@@ -431,6 +431,9 @@ introJs().onafterchange(function(targetElement) {
431431
- `scrollToElement`: Auto scroll to highlighted element if it's outside of viewport, `true` or `false`
432432
- `overlayOpacity`: Adjust the overlay opacity, `Number`
433433
- `disableInteraction`: Disable an interaction inside element or not, `true` or `false`
434+
- `hintPosition`: Hint position. Default: `top`
435+
- `hintButtonLabel`: Hint button label. Default: 'Got it'
436+
434437
435438
See [setOption](https://github.com/usablica/intro.js/#introjssetoptionoption-value) to see an example.
436439

0 commit comments

Comments
 (0)