Options
All
  • Public
  • Public/Protected
  • All
Menu

External module core/src/defs

Index

Type aliases

CacheAction

CacheAction: "init" | "enter" | "click" | "prefetch"

CacheRequest

CacheRequest: Promise<IResponse | void>

CacheStatus

CacheStatus: "pending" | "fulfilled" | "rejected"

CacheTarget

CacheTarget: string

HeaderList

HeaderList: Map<string, string>

HistoryAction

HistoryAction: "push" | "replace"

HookFunction

HookFunction: function

Type declaration

HooksAfter

HooksAfter: "afterOnce" | "afterLeave" | "afterEnter"

HooksAll

HooksBarba

HooksBarba: "ready" | "page" | "reset" | "currentAdded" | "currentRemoved" | "nextAdded" | "nextRemoved"

HooksBefore

HooksBefore: "beforeOnce" | "beforeLeave" | "beforeEnter"

HooksOnce

HooksOnce: "beforeOnce" | "once" | "afterOnce"

HooksPage

HooksPage: "before" | "beforeLeave" | "leave" | "afterLeave" | "beforeEnter" | "enter" | "afterEnter" | "after"

HooksTransition

HooksTransition: HooksOnce | HooksPage

HooksTransitionMap

HooksTransitionMap: object

Type declaration

HooksView

HooksView: HooksBefore | HooksAfter

IgnoreOption

IgnoreOption: boolean | string | string[]

Link

Link: HTMLAnchorElement | SVGAElement

LinkEvent

LinkEvent: MouseEvent | TouchEvent

PreventCheck

PreventCheck: function

Prevent check.

  • Receives check data.
  • If it returns true, Barba will prevent the action.

Type declaration

RequestCustomError

RequestCustomError: function

Type declaration

RequestError

RequestError: function

Type declaration

RequestErrorOrResponse

RequestErrorOrResponse: Error | IXhrResponse

RuleName

RuleName: IRules["strings"] | IRules["object"] | IRules["function"]

RuleType

RuleType: "strings" | "object" | "function"

SchemaAttributeValues

SchemaAttributeValues: "prefix" | "wrapper" | "container" | "prevent" | "history" | "namespace"

Scope

Scope: HTMLElement | HTMLDocument

Trigger

Trigger: Link | "barba" | "popstate" | "back" | "forward"

Wrapper

Wrapper: HTMLElement | null

Generated using TypeDoc