blockly > yorumlar > CommentView > setCollapsed
Yorumun şu anda daraltılmış olup olmadığını ayarlar.
İmza:
setCollapsed(collapsed: boolean): void;
Parametreler
Parametre |
Tür |
Açıklama |
daraltıldı |
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-09-12 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-12 UTC."],[[["The `setCollapsed()` method controls the visual state of a comment, determining whether it appears expanded or collapsed."],["It takes a single boolean parameter, `collapsed`, where `true` indicates the comment should be collapsed and `false` indicates it should be expanded."],["Calling this method will visually update the comment's display, providing a way to hide or reveal its content within the Blockly workspace."]]],[]]