Create a new Hint instance
OptionalelementOrSelector: string | HTMLElement
Optional target element or CSS query to start the Hint on
Optionaloptions: Partial<HintOptions>
Optional Hint options
Get the callback function for the provided callback name
The name of the callback
Clone the Hint instance
Destroys and removes all hint elements on the page Useful when you want to destroy the elements and add them again (e.g. a modal or popup)
Disable closing the dialog when the user clicks outside the hint
Disable hint auto refresh on page scroll and resize for hints
Enable closing the dialog when the user clicks outside the hint
Enable hint auto refresh on page scroll and resize for hints
Get the active hint signal This is meant to be used internally by the Hint package
Get the Hint item for the provided step ID
The step ID
Get the Hint items
Get specific Hint option
The option key
Returns the underlying state of the refreshes This is an internal method and should not be used outside of the package.
Get the target element for the Hint
Hide hint dialog from the page
Calls the hintDialogClose callback (if any) with the hint item whose
dialog was open, regardless of why it's closing - clicking outside it,
toggling the same hint again, opening a different hint's dialog, or
calling this directly. hideHint() also goes through here, so it fires
this too, in addition to its own hintClose callback.
Hide all hints on the page
Returns true if the Hint is active
Returns true if the hints are rendered
Callback for when hint items are clicked
callback function
Callback for when hint items are closed
callback function
Callback for when a hint's dialog is closed, whether by clicking
outside it, toggling the same hint again, opening a different hint's
dialog, calling hideHintDialog() directly, or via hideHint()/the
dialog's own close button (which also fires hintClose)
callback function
Refresh the hints on the page
Remove one single hint element from the page Useful when you want to destroy the element and add them again (e.g. a modal or popup) Use removeHints if you want to remove all elements.
The hint step ID
Render hints on the page
Set specific Hint option
Option key
Option value
Show hint dialog for a specific hint
The hint step ID
Show all hints on the page
Generic package interface.