blockly > ToolboxCategory > setSelected
دسته فعلی را به عنوان انتخاب شده تنظیم می کند.
امضا:
setSelected(isSelected: boolean): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
انتخاب شده است | بولی | اگر این دسته انتخاب شود درست است، در غیر این صورت نادرست است. |
برمیگرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["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"]]