The element's MVC model type.
Optionalmodel: ModelTypeProtectedgetProtected FunctiongetBlock
OptionalblockKey: string | numberThe key of the block to retrieve.
ProtectedgetProtected FunctiongetOrGenerateBlock
OptionalblockKey: string | numberThe block key.
ProtectedgetProtectedgetProtected FunctiongetOrGenerateKey
The event name.
OptionalblockKey: string | numberThe block in which the event is scoped.
FunctionaddWithBlock
The event name.
The block to register the event in.
The callback function to invoke when the event is fired.
FunctionremoveWithBlock
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.