Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > ToolboxItem > setVisible_
Menetapkan apakah kategori terlihat atau tidak. Agar kategori dapat terlihat, kategori induknya juga harus diperluas.
Tanda Tangan:
setVisible_(_isVisible: boolean): void;
Parameter
Parameter |
Jenis |
Deskripsi |
_isVisible |
boolean |
True jika kategori harus terlihat. |
Hasil:
void
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.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[[["The `setVisible_()` method controls the visibility of a category within the Blockly toolbox."],["A category's visibility depends on both its own setting and its parent category's expanded state."],["The method takes a single boolean parameter, `_isVisible`, to set the desired visibility."]]],["The `setVisible_()` method controls the visibility of a category within a toolbox. It accepts a boolean parameter, `_isVisible`, to determine if the category should be visible (true) or hidden (false). A category's visibility is also dependent on its parent category being expanded. The method itself does not return any value (void). The core action is setting the visibility state of a specified toolbox category.\n"]]