Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Utilities

Hierarchy

  • Utilities

Index

Methods

Static getCurrentPageID

  • Return the page ID of the current page.

    Returns PageID

    The ID of the current page.

Static Private getLinkedPageID

  • getLinkedPageID(link: string): PageID
  • Return the page ID of the page pointed by the given link.

    Parameters

    • link: string

      The link pointing to the page.

    Returns PageID

    The ID of the pointed page.

Static isLinkMatchingPageID

  • isLinkMatchingPageID(link: string, pageID: PageID): boolean
  • Test whether the page pointed by the given link matches the given page ID.

    Parameters

    • link: string

      The link pointing to a page.

    • pageID: PageID

      The page ID to compare.

    Returns boolean

    true if the page IDs match, false otherwise.

Static isLocalStorageAvailable

  • isLocalStorageAvailable(): boolean
  • Test whether the local storage is available.

    Returns boolean

    true if it is available, false otherwise.

Generated using TypeDoc