блочно > ComponentManager > удалить компонент
Метод ComponentManager.removeComponent()
Удаляет компонент.
Подпись:
removeComponent(id: string): void;
Параметры
Параметр | Тип | Описание |
---|
идентификатор | нить | Идентификатор компонента, который необходимо удалить. |
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-05 UTC.
[null,null,["Последнее обновление: 2025-01-05 UTC."],[[["The `ComponentManager.removeComponent()` method is used to remove a component from the workspace."],["It accepts a single parameter, `id`, which is the string ID of the component to be removed."],["The method does not return any value (void)."]]],["The `removeComponent` method, part of `ComponentManager`, removes a specified component. It accepts a single parameter: `id`, a string representing the ID of the component targeted for removal. This method does not return any value (`void`). The primary action is the removal of a component identified by its unique ID.\n"]]