Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICalloutManager

Callout Manager

Hierarchy

  • ICalloutManager

Index

Methods

closeAll

  • closeAll(): any
  • Closes all callouts on the page.

    Returns any

containsOneCalloutOpen

  • containsOneCalloutOpen(el: HTMLElement): any
  • Returns true if the associated callout is open.

    Parameters

    • el: HTMLElement

    Returns any

createAction

createMenuEntries

createNew

  • Creates a new callout.

    Parameters

    Returns any

createNewIfNecessary

  • Checks if the callout id exists, before creating it.

    Parameters

    Returns ICallout

forEach

  • forEach(callback: (callout: ICallout) => void): any
  • Performs an action on each callout on the page.

    Parameters

    Returns any

getFromCalloutDescendant

  • getFromCalloutDescendant(descendant: HTMLElement): ICallout
  • Finds the closest launch point and returns the callout associated with it.

    Parameters

    • descendant: HTMLElement

    Returns ICallout

getFromLaunchPoint

  • getFromLaunchPoint(launchPoint: HTMLElement): ICallout
  • Returns the callout from the specified launch point.

    Parameters

    • launchPoint: HTMLElement

    Returns ICallout

getFromLaunchPointIfExists

  • getFromLaunchPointIfExists(launchPoint: HTMLElement): ICallout
  • Returns the callout for the specified launch point, null if it doesn't exist.

    Parameters

    • launchPoint: HTMLElement

    Returns ICallout

init

  • init(): PromiseLike<void>
  • Method to ensure the core script is loaded.

    Returns PromiseLike<void>

isAtLeastOneCalloutOn

  • isAtLeastOneCalloutOn(): boolean
  • Returns true if at least one callout is defined on the page is opened or opening.

    Returns boolean

isAtLeastOneCalloutOpen

  • isAtLeastOneCalloutOpen(): boolean
  • Returns true if at least one callout is opened on the page.

    Returns boolean

remove

  • Removes the callout and destroys it.

    Parameters

    Returns any

Generated using TypeDoc