Options
All
  • Public
  • Public/Protected
  • All
Menu

External module core/src/modules

Index

Type aliases

Hook

Hook: function

Type declaration

Functions

Const blank

  • blank(__namedParameters: object): boolean

Const corsDomain

  • corsDomain(__namedParameters: object): boolean
  • If the domain is the same (in order to avoid pushState cross origin security problem). Note: SVGAElement do not have protocol neither hostname properties.

    Parameters

    • __namedParameters: object
      • el: HTMLAnchorElement | SVGAElement

    Returns boolean

Const corsPort

  • corsPort(__namedParameters: object): boolean
  • If the port is the same. Note: SVGAElement do not have port property.

    Parameters

    • __namedParameters: object
      • el: HTMLAnchorElement | SVGAElement

    Returns boolean

Const download

  • download(__namedParameters: object): boolean

Const exists

  • exists(__namedParameters: object): boolean

Const newTab

  • newTab(__namedParameters: object): boolean

Const preventAll

  • preventAll(__namedParameters: object): boolean
  • If some link ancestor contains [data-barba-prevent="all"].

    Parameters

    • __namedParameters: object
      • el: HTMLAnchorElement | SVGAElement

    Returns boolean

Const preventSelf

  • preventSelf(__namedParameters: object): boolean
  • If the links contains [data-barba-prevent] or [data-barba-prevent="self"].

    Parameters

    • __namedParameters: object
      • el: HTMLAnchorElement | SVGAElement

    Returns boolean

Const pushState

  • pushState(): boolean

Const sameUrl

  • sameUrl(__namedParameters: object): boolean

Generated using TypeDoc