Options
All
  • Public
  • Public/Protected
  • All
Menu

Module background/methods/redirect

Index

Functions

  • redirect(history: { push: any }, path: string, event?: { preventDefault: any }): void
  • scrollToElement(history: { push: any }, id: string, event?: { preventDefault: any }): void
  • It scrolls to the element with the given id, and if the event is not null, it prevents the default action of the event

    Parameters

    • history: { push: any }

      This is the history object from React Router.

    • id: string

      The id of the element to scroll to

    • Optional event: { preventDefault: any }

    Returns void

Generated using TypeDoc version 0.22.15, the 4/20/2022