блочно > Блокировать > setEditable
Метод Block.setEditable()
Установите, доступен ли этот блок для редактирования или нет.
Подпись:
setEditable(editable: boolean): void;
Параметры
Параметр | Тип | Описание |
---|
редактируемый | логическое значение | Верно, если доступно для редактирования. |
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-18 UTC.
[null,null,["Последнее обновление: 2024-11-18 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"]]