blockly > BlocklyOptions > maxInstances
Propriedade BlocklyOptions.maxInstances
Signature:
maxInstances?: {
[blockType: string]: number;
};
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-10-16 UTC.
[null,null,["Última atualização 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"]]