блочно > RenderedConnection > DisconnectInternal
Метод RenderedConnection.disconnectInternal()
Отсоедините два блока, которые соединены этим соединением.
Подпись:
disconnectInternal(setParent?: boolean): void;
Параметры
Параметр | Тип | Описание |
---|
setParent | логическое значение | (Необязательно) Устанавливать ли родительский элемент отключенного блока или нет, по умолчанию установлено значение true. Если вы не установили родительский элемент, убедитесь, что это будет сделано при последующем действии, иначе представление и модель не будут синхронизированы. |
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-10 UTC.
[null,null,["Последнее обновление: 2025-01-10 UTC."],[[["The `disconnectInternal()` method disconnects two blocks connected by a `RenderedConnection`."],["It optionally accepts a boolean `setParent` parameter to determine if the disconnected block's parent should be set, defaulting to true for view-model synchronization."],["If `setParent` is false, further actions must ensure the disconnected block's parent is set to maintain consistency between the view and model."]]],["The `disconnectInternal()` method of the `RenderedConnection` class disconnects two connected blocks. It accepts an optional boolean parameter, `setParent`, which defaults to `true`. This parameter determines if the parent of the disconnected block should be set. If `setParent` is set to false, an alternative action must be performed to synchronize the block's view and model. The method does not return a value.\n"]]