Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > blockRendering > PathObject > updateShapeForInputHighlight
Sürükleme bloğunun düşürülmesi durumunda bu bloğun girişe bağlanacağını gösteren stil ekleyin veya kaldırın.
İmza:
updateShapeForInputHighlight(_conn: Connection, _enable: boolean): void;
Parametreler
Parametre |
Tür |
Açıklama |
_conn |
Bağlantı |
Girişte vurgulanacak bağlantı. |
_enable |
boolean |
Stil eklenmesi gerekiyorsa doğru değerini döndürür. |
Ş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 `updateShapeForInputHighlight` method visually indicates whether a dragged block, if dropped, will connect to a specific input."],["This method modifies the appearance of a block to highlight the connection point if a connection is possible, and removes the highlight if not."],["It takes the connection point and a boolean value indicating whether to add or remove the styling as parameters."],["This method belongs to the `PathObject` class within the `blockRendering` namespace of the Blockly library."]]],["The `updateShapeForInputHighlight` method within `blockRendering.PathObject` modifies the styling of a block to indicate a potential connection. It accepts two parameters: `_conn`, a `Connection` object representing the input connection, and `_enable`, a boolean determining whether to add or remove the highlighting style. If `_enable` is true, it adds styling; otherwise, it removes it. The method's return type is void, signifying it does not return any value.\n"]]