Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > icons > CommentState
Format status simpan untuk ikon komentar.
Tanda Tangan:
export interface CommentState
Properti
Properti |
Pengubah |
Jenis |
Deskripsi |
height? |
|
angka |
(Opsional) Tinggi balon komentar. |
disematkan? |
|
boolean |
(Opsional) Benar jika komentar terbuka, salah jika tidak. |
text? |
|
string |
(Opsional) Teks komentar. |
width? |
|
angka |
(Opsional) Lebar balon komentar. |
x? |
|
angka |
(Opsional) Koordinat X balon komentar. |
y? |
|
angka |
(Opsional) Koordinat Y balon komentar. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[],["The `CommentState` interface defines the data structure for saving a comment icon's state. It includes optional properties for `height` and `width` (both numbers) to define the comment bubble's dimensions. `pinned` (boolean) indicates whether the comment is open, and `text` (string) stores the comment's textual content. These properties allow for the preservation of a comment's size, visibility, and content.\n"]]