The element's MVC model type.
Optionalmodel: ModelTypeProtectedgetProtectedgetBlock
OptionalblockKey: string | numberThe key of the block to retrieve.
ProtectedgetProtectedgetOrGenerateBlock
OptionalblockKey: string | numberThe block key.
ProtectedgetProtectedgetProtectedgetOrGenerateKey
The event name.
OptionalblockKey: string | numberThe block in which the event is scoped.
addWithBlock
The event name.
The block to register the event in.
The callback function to invoke when the event is fired.
removeWithBlock
The event name.
The block from which to remove the event.
Optionalcallback: (...args: any[]) => voidThe specific callback to remove. If undefined, all callbacks for the key are removed.
TurboEmitter
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.