static/jsvm/interfaces/hook.TaggedHook.html
TaggedHook defines a proxy hook which register handlers that are triggered only if the TaggedHook.tags are empty or includes at least one of the event data tag(s).
bindbindFunccanTriggerOnlengthtriggerunbindunbindAll
Bind registers the provided handler to the current hooks queue.
It is similar to [Hook.Bind] with the difference that the handler function is invoked only if the event data tags satisfy h.CanTriggerOn.
BindFunc registers a new handler with the specified function.
It is similar to [Hook.Bind] with the difference that the handler function is invoked only if the event data tags satisfy h.CanTriggerOn.
-
- (e): void
-
-
CanTriggerOn checks if the current TaggedHook can be triggered with the provided event data tags.
It returns always true if the hook doesn't have any tags.
Length returns to total number of registered hook handlers.
Trigger executes all registered hook handlers one by one with the specified event as an argument.
Optionally, this method allows also to register additional one off handler funcs that will be temporary appended to the handlers queue.
NB! Each hook handler must call event.Next() in order the hook chain to proceed.
Rest ...oneOffHandlerFuncs: ((_arg0) => void)[]Unbind removes one or many hook handler by their id.
Rest ...idsToRemove: string[]UnbindAll removes all registered handlers.
OSLightDark
Generated using TypeDoc