hook
This hook method applies a Hook's encapsulated behaviour to the calling context and passes a given payload.
Parameters
The hook implementation
some additional data
See also
This hook method applies a Hook's encapsulated behaviour to the calling context.
Parameters
The hook implementation
See also
This hook method applies multiple Hook's encapsulated behaviour to the calling context with the payload of type Unit
.
This is a shortcut for situation where lots of hooks needs to be applied at the same location:
// instead of this...
hook(a)
hook(b)
hook(c)
// ... the application of this variant shortens the code:
hook(a, b, c)
Parameters
some hook implementations
See also
This hook method applies a Hook's encapsulated behaviour to the calling context with a specific payload TagPayload, which is tailored to Tag creation, as it offers parameters for the id and a styling parameter classes on top to the generic payload P.
As implementor of the Hook the creation of the value property simply requires to unpack the TagPayload.
Parameters
The hook implementation
some optional styling information
an optional id for applying to the hook's content
some additional data