แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ToolboxCategory > setSelected
ตั้งค่าหมวดหมู่ปัจจุบันเป็นหมวดหมู่ที่เลือก
ลายเซ็น:
setSelected(isSelected: boolean): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
isSelected |
boolean |
หากเลือกหมวดหมู่นี้ จะเป็น "จริง" หากเลือกหมวดหมู่นี้ จะเป็นเท็จ |
การคืนสินค้า:
โมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-10-16 UTC
[null,null,["อัปเดตล่าสุด 2024-10-16 UTC"],[[["The `setSelected()` method is used to mark a ToolboxCategory as selected or unselected within a Blockly workspace."],["It accepts a boolean argument, `isSelected`, indicating the desired selection state (true for selected, false for unselected)."],["Calling this method visually highlights the category in the toolbox to indicate its active status to the user."]]],["The `setSelected` method within the `ToolboxCategory` class designates a category as selected or deselected. It accepts a boolean parameter, `isSelected`. When `isSelected` is set to `true`, the category becomes selected. Setting it to `false` deselects the category. This method's return type is void, meaning it doesn't return any value. The method modifies the selection status of the designated toolbox category.\n"]]