แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > แถบเลื่อน > setVisible
ตั้งค่าว่าจะแสดงแถบเลื่อนหรือไม่ มีผลกับแถบเลื่อนที่ไม่ได้จับคู่เท่านั้น
ลายเซ็น:
setVisible(visible: boolean): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
มองเห็นได้ |
boolean |
จริงหากมองเห็นได้ |
การคืนสินค้า:
โมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-12 UTC
[null,null,["อัปเดตล่าสุด 2024-09-12 UTC"],[[["The `Scrollbar.setVisible()` method controls the visibility of a scrollbar in Blockly workspaces."],["This method is exclusively for non-paired scrollbars and takes a boolean value to determine whether the scrollbar should be displayed or hidden."],["Calling `setVisible()` with `true` makes the scrollbar visible, while calling it with `false` hides it."]]],["The `setVisible()` method controls the visibility of a scrollbar, specifically for non-paired scrollbars. It accepts a single boolean parameter, `visible`. When `visible` is set to `true`, the scrollbar becomes visible; otherwise, it is hidden. The method does not return any value. The method signature is `setVisible(visible: boolean): void;`.\n"]]