ui.Button.setDisabled
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
تنظیم می کند که آیا دکمه غیرفعال باشد.
این دکمه را برمی گرداند.
استفاده | برمی گرداند | Button. setDisabled (disabled) | UI.Button |
استدلال | تایپ کنید | جزئیات | این: ui.button | UI.Button | نمونه ui.Button. |
disabled | بولی | اینکه آیا دکمه غیرفعال است. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe \u003ccode\u003esetDisabled\u003c/code\u003e method allows you to enable or disable a button's functionality.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a boolean value (\u003ccode\u003edisabled\u003c/code\u003e) indicating the desired disabled state of the button.\u003c/p\u003e\n"],["\u003cp\u003eUsing this method returns the \u003ccode\u003eui.Button\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],["The `setDisabled` function modifies a button's state, enabling or disabling it. It accepts a boolean `disabled` argument, where `true` disables the button and `false` enables it. This function is applied to a `ui.Button` instance. The function returns the modified `ui.Button` object itself, facilitating method chaining.\n"],null,["# ui.Button.setDisabled\n\n\u003cbr /\u003e\n\nSets whether the button is disabled.\n\n\u003cbr /\u003e\n\nReturns this button.\n\n| Usage | Returns |\n|--------------------------------|-----------|\n| Button.setDisabled`(disabled)` | ui.Button |\n\n| Argument | Type | Details |\n|-------------------|-----------|---------------------------------|\n| this: `ui.button` | ui.Button | The ui.Button instance. |\n| `disabled` | Boolean | Whether the button is disabled. |"]]