هنگامی که دکمه کلیک می شود، یک تماس پاسخ داده می شود. پاسخ به تماس ویجت دکمه ارسال می شود.
disabled
بولی، اختیاری
اینکه آیا دکمه غیرفعال است. پیش فرض به نادرست.
style
شیء، اختیاری
یک شی از سبک های CSS مجاز با مقادیر آنها برای تنظیم این ویجت. پیشفرض یک شی خالی است.
imageUrl
رشته، اختیاری
نشانی اینترنتی تصویر اختیاری. در صورت ارائه، دکمه به صورت تصویر نمایش داده میشود و متن مقدار روی شناور ماوس نشان داده میشود. فقط داده ها: آدرس ها و نمادهای بارگیری شده از gstatic.com مجاز هستند.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["Creates a clickable button widget with customizable text label, click functionality, and appearance."],["Allows setting an optional image for the button, displaying the label text on hover."],["Can be disabled to prevent user interaction."],["Provides flexibility in styling through CSS properties."],["Utilizes a straightforward constructor function for instantiation with various parameters."]]],["The `ui.Button` function creates a clickable button. It accepts optional arguments: `label` (text), `onClick` (callback function on click), `disabled` (boolean to disable), `style` (CSS styling), and `imageUrl` (image for the button). When clicked, the `onClick` callback is triggered, receiving the button widget. The button can be customized with a text label or an image, and its appearance can be altered via CSS. Only specific URLs are allowed for the image.\n"]]