The element's MVC model type.
The key type of the MVC's model.
The element's MVC model type.
The key type of the MVC's model.
Optionalmodel: ModelType
The model whose key changes this emitter relays.
Function
addKey
The callback to register.
Ordered path from outermost to innermost key.
Function
removeKey
Optionalcallback: (value: any, ...keys: DataKeyType[]) => void
The callback to remove. If omitted, all callbacks for this path are removed.
Ordered path from outermost to innermost key.
Function
fireKey
The new value at the key path.
Ordered path from outermost to innermost key.
ProtectedresolveProtected Function
resolveFlatKey
The key path to flatten.
The flat key, suitable for use as a map key.
GradumEmitter
Description
The base MVC emitter class. Its role is basically an event bus. It allows the different parts of the MVC structure to fire events or listen to some, with various methods.