blockly > Bloquer > setEditable
Méthode Block.setEditable()
Indiquez si ce bloc est modifiable ou non.
Signature :
setEditable(editable: boolean): void;
Paramètres
Paramètre |
Type |
Description |
modifiable |
booléen |
"True" s'il est modifiable. |
Renvoie :
vide
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/08 (UTC).
[null,null,["Dernière mise à jour le 2024/11/08 (UTC)."],[[["The `setEditable` method determines if a block can be modified by the user."],["It accepts a boolean value, where `true` enables editing and `false` disables it."],["Calling this method with the appropriate boolean value will set the editability of the target block."]]],["The `setEditable()` method, part of the `Block` class, determines if a block is editable. It accepts a single boolean parameter, `editable`. When `editable` is set to `true`, the block becomes editable; otherwise, it is not. This method does not return any value, and its effect is to change the editable status of the block.\n"]]