Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Hooks

Hierarchy

Indexable

[key: string]: any

Allow the use of hooks[name](cb, ctx).

Index

Constructors

constructor

Properties

after

after: function

Type declaration

afterEnter

afterEnter: function

Type declaration

afterLeave

afterLeave: function

Type declaration

all

all: HooksAll[] = ['ready','page','reset','currentAdded','currentRemoved','nextAdded','nextRemoved','beforeOnce','once','afterOnce','before','beforeLeave','leave','afterLeave','beforeEnter','enter','afterEnter','after',]

All available hooks.

See HooksAll

before

before: function

Type declaration

beforeEnter

beforeEnter: function

Type declaration

beforeLeave

beforeLeave: function

Type declaration

enter

enter: function

Type declaration

leave

leave: function

Type declaration

logger

logger: Logger = new Logger('@barba/core')

registered

registered: Map<HooksAll, Set<IHookInfos>> = new Map()

Registered hooks.

  • Unique hook name
  • Associated data set(s) (callback + context)

Methods

clear

  • clear(): void

do

  • do(name: HooksAll, ...args: any): Promise<any>

help

  • help(): void

init

  • init(): void

Generated using TypeDoc