The type of the data stored in each block.
The type of the keys used to access data in blocks.
The type of the block IDs.
Whether data blocks are stored as an array or a map.
The structure of each data block.
Optionaldata: DataTypeInitial data. Not initialized if provided.
OptionaldataBlocksType: BlocksTypeType of data blocks (array or map).
Protected ReadonlyisProtected ReadonlydataProtecteddefaultFunctiongetBlock
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key to retrieve.
The block or null if it doesn't exist.
ProtectedcreateFunctionsetBlock
The data to set.
Optionalid: IdTypeOptional block ID.
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The key of the block.
Optionalinitialize: boolean = trueWhether to initialize the block after setting.
FunctionhasBlock
OptionalblockKey: MvcBlockKeyType<BlocksType>Block key.
FunctionaddBlock
The block data.
Optionalid: IdTypeOptional block ID.
OptionalblockKey: MvcBlockKeyType<BlocksType>Block key (used for insertion in arrays).
Optionalinitialize: boolean = trueWhether to initialize after adding.
FunctiongetData
The key to retrieve.
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block from which to retrieve the data.
The value associated with the key, or null if not found.
FunctionsetData
The key to update.
The value to assign.
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block to update.
FunctionhasData
The key to update.
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block to update.
FunctiongetSize
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block to check.
The size.
FunctiongetBlockData
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
The block's data or if it doesn't exist.
FunctiongetBlockId
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
The block ID or null.
FunctionsetBlockId
The new ID.
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
ProtectedfireFunctionfireCallback
The key to fire for.
Additional arguments.
ProtectedfireFunctionfireBlockCallback
The key to fire for.
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
Additional arguments.
Functioninitialize
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
Functionclear
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
ProtectedisFunctionisValidBlockKey
The block key to validate.
True if valid, false otherwise.
FunctiongetAllBlocks
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
Array of blocks.
FunctiongetAllKeys
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
Array of keys.
FunctiongetAllValues
OptionalblockKey: MvcBlockKeyType<BlocksType> = ...The block key.
Array of values.
TurboModel
Description
A base class representing a model in MVC, which manages one or more data blocks and handles change propagation.