Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "page-state"

Index

Type aliases

Functions

Type aliases

PageState

PageState: ScrollPosition & object

Aspects of page state that should be restored after POP history actions (i.e. after the user navigates back or forward in their browser).

Functions

Const getPageState

Const setPageState

  • setPageState(pageState: PageState, primaryFocusTarget: Selector): Promise<void>
  • Set the page state.

    Parameters

    • pageState: PageState

      the page state to set

    • primaryFocusTarget: Selector

      a CSS selector for your primary focus target, e.g. [main h1]

    Returns Promise<void>

Generated using TypeDoc