intro.js
    Preparing search index...

    Class Hint

    Generic package interface.

    Implements

    Index

    Constructors

    constructor

    • new Hint(
      elementOrSelector?: string | HTMLElement,
      options?: Partial<HintOptions >,
      ): Hint

      Create a new Hint instance

      Parameters

      • OptionalelementOrSelector: string | HTMLElement

        Optional target element or CSS query to start the Hint on

      • Optionaloptions: Partial<HintOptions >

        Optional Hint options

      Returns Hint

    Methods

    addHint

    addHints

    callback

    • callback<K extends "hintsAdded" | "hintClick" | "hintClose">(
      callbackName: K ,
      ):
      | undefined
      | {
      hintClick?: hintClickCallback;
      hintClose?: hintCloseCallback;
      hintsAdded?: hintsAddedCallback;
      }[K ]

      Get the callback function for the provided callback name

      Type Parameters

      • K extends "hintsAdded" | "hintClick" | "hintClose"

      Parameters

      • callbackName: K

        The name of the callback

      Returns
      | undefined
      | {
      hintClick?: hintClickCallback;
      hintClose?: hintCloseCallback;
      hintsAdded?: hintsAddedCallback;
      }[K ]

    clone

    destroy

    • destroy(): Hint

      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)

      Returns Hint

    disableCloseDialogOnWindowClick

    • disableCloseDialogOnWindowClick(): void

      Disable closing the dialog when the user clicks outside the hint

      Returns void

    disableHintAutoRefresh

    • disableHintAutoRefresh(): this

      Disable hint auto refresh on page scroll and resize for hints

      Returns this

    enableCloseDialogOnWindowClick

    • enableCloseDialogOnWindowClick(): void

      Enable closing the dialog when the user clicks outside the hint

      Returns void

    enableHintAutoRefresh

    getActiveHintSignal

    • getActiveHintSignal(): State <undefined | number>

      Get the active hint signal This is meant to be used internally by the Hint package

      Returns State <undefined | number>

    getHint

    getHints

    getOption

    getRefreshesSignal

    • getRefreshesSignal(): State <number>

      Returns the underlying state of the refreshes This is an internal method and should not be used outside of the package.

      Returns State <number>

    getTargetElement

    hideHint

    hideHintDialog

    hideHints

    isActive

    isRendered

    onhintclick

    • onhintclick(providedCallback: hintClickCallback): void

      Parameters

      • providedCallback: hintClickCallback

      Returns void

      Deprecated

      onhintclick is deprecated, please use onHintClick instead

    onHintClick

    • onHintClick(providedCallback: hintClickCallback): Hint

      Callback for when hint items are clicked

      Parameters

      • providedCallback: hintClickCallback

        callback function

      Returns Hint

    onhintclose

    • onhintclose(providedCallback: hintCloseCallback): void

      Parameters

      • providedCallback: hintCloseCallback

      Returns void

      Deprecated

      onhintclose is deprecated, please use onHintClose instead

    onHintClose

    • onHintClose(providedCallback: hintCloseCallback): Hint

      Callback for when hint items are closed

      Parameters

      • providedCallback: hintCloseCallback

        callback function

      Returns Hint

    onhintsadded

    • onhintsadded(providedCallback: hintsAddedCallback): void

      Parameters

      • providedCallback: hintsAddedCallback

        callback function

      Returns void

      Deprecated

      onhintsadded is deprecated, please use onHintsAdded instead

    onHintsAdded

    refresh

    removeHint

    • removeHint(stepId: number): Hint

      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.

      Parameters

      • stepId: number

        The hint step ID

      Returns Hint

    removeHints

    render

    setHints

    setOption

    setOptions

    showHint

    showHintDialog

    • showHintDialog(stepId: number): Promise<undefined | Hint >

      Show hint dialog for a specific hint

      Parameters

      • stepId: number

        The hint step ID

      Returns Promise<undefined | Hint >

    showHints

    Settings

    Member Visibility

    On This Page

    AltStyle によって変換されたページ (->オリジナル) /