blockly > BlocklyOptions > maxInstances
Właściwość BlocklyOptions.maxInstances
Podpis:
maxInstances?: {
[blockType: string]: number;
};
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-10-16 UTC.
[null,null,["Ostatnia aktualizacja: 2024-10-16 UTC."],[[["`maxInstances` in BlocklyOptions is an optional property that lets you limit the number of instances for specific block types within a workspace."],["It's represented as a dictionary where keys are block type names and values are the maximum allowed instances for that type."],["If a block type isn't specified in `maxInstances`, there's no limit to how many instances of that block can be created."]]],["The `maxInstances` property within `BlocklyOptions` allows setting a limit on the number of instances for specific block types. It's structured as an object where each key is a `blockType` (string) and the corresponding value is a number representing the maximum allowed instances of that block type. This controls the quantity of each specific type of block that can be present.\n"]]