Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > blockRendering > IPathObject > updateSelected
blockRendering.IPathObject.updateSelected() yöntemi
Bir bloğun seçildiğini gösteren stil ekleyin veya kaldırın.
İmza:
updateSelected(enabled: boolean): void;
Parametreler
Parametre |
Tür |
Açıklama |
etkin |
boolean |
|
Şunu döndürür:
geçersiz
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-21 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-08-21 UTC."],[[["The `updateSelected` method is used to visually indicate whether a block is selected or not by applying or removing styling."],["It takes a single boolean parameter, `enabled`, which determines if the selected styling should be applied (`true`) or removed (`false`)."],["This method is part of the `IPathObject` interface within the `blockRendering` namespace in Blockly."]]],["The `updateSelected` method, part of the `IPathObject` interface, modifies a block's styling to indicate whether it is selected or not. It takes a single boolean parameter, `enabled`. If `enabled` is true, styling to show selection is added; if false, selection styling is removed. The method returns nothing. This is used to update the visual state of blocks within a block rendering system.\n"]]