Type aliases
CacheAction
CacheAction: "init" | "enter" | "click" | "prefetch"
CacheStatus
CacheStatus: "pending" | "fulfilled" | "rejected"
CacheTarget
CacheTarget: string
HeaderList
HeaderList: Map<string, string>
HistoryAction
HistoryAction: "push" | "replace"
HookFunction
HookFunction: function
Type declaration
-
-
Parameters
Returns Promise<void>
|
void
HooksAfter
HooksAfter: "afterOnce" | "afterLeave" | "afterEnter"
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"
HooksTransitionMap
HooksTransitionMap: object
IgnoreOption
IgnoreOption: boolean | string | string[]
Link
Link: HTMLAnchorElement | SVGAElement
LinkEvent
LinkEvent: MouseEvent | TouchEvent
PreventCheck
PreventCheck: function
Type declaration
-
-
Parameters
Returns boolean
RequestCustomError
RequestCustomError: function
Type declaration
-
-
Parameters
-
-
action: string
-
url: string
-
Returns boolean
RequestError
RequestError: function
Type declaration
-
-
Parameters
Returns boolean
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
Prevent check.
true
, Barba will prevent the action.