إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ui.Select
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
قائمة اختيار قابلة للطباعة مع دالة ردّ الاتصال
الاستخدام | المرتجعات |
---|
ui.Select(items, placeholder, value, onChange, disabled, style) | ui.Select |
الوسيطة | النوع | التفاصيل |
---|
items | List<Object>, optional | قائمة الخيارات التي ستتم إضافتها إلى عنصر الاختيار يتم ضبط هذه السمة تلقائيًا على مصفوفة فارغة. |
placeholder | سلسلة، اختياري | العنصر النائب الذي يظهر عند عدم اختيار أي قيمة القيمة التلقائية هي "اختيار قيمة...". |
value | سلسلة، اختياري | قيمة عنصر الاختيار القيمة التلقائية هي "بدون ضبط". |
onChange | الدالة، اختيارية | الدالة التي سيتم تنفيذها عند اختيار عنصر. يتم تمرير القيمة المحدّدة حاليًا وعنصر التحكّم في القائمة المنسدلة إلى دالة معاودة الاتصال. |
disabled | قيمة منطقية، اختيارية | تحديد ما إذا كان مربع الاختيار غير مفعّل. القيمة التلقائية هي "خطأ". |
style | الكائن، اختياري | كائن يتضمّن أنماط CSS المسموح بها مع قيمها التي سيتم ضبطها لهذه الأداة. راجِع مستندات style(). |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCreate a customizable select menu with \u003ccode\u003eui.Select()\u003c/code\u003e by providing items, placeholder, initial value, and styles.\u003c/p\u003e\n"],["\u003cp\u003eDefine an \u003ccode\u003eonChange\u003c/code\u003e callback function to execute actions when a user selects an item from the menu, receiving the selected value and the select widget.\u003c/p\u003e\n"],["\u003cp\u003eUtilize optional parameters like \u003ccode\u003edisabled\u003c/code\u003e to control interactivity and \u003ccode\u003estyle\u003c/code\u003e to modify the appearance of the select menu.\u003c/p\u003e\n"]]],[],null,["# ui.Select\n\n\u003cbr /\u003e\n\nA printable select menu with a callback.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------------|-----------|\n| `ui.Select(`*items* `, `*placeholder* `, `*value* `, `*onChange* `, `*disabled* `, `*style*`)` | ui.Select |\n\n| Argument | Type | Details |\n|---------------|--------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| `items` | List\\\u003cObject\\\u003e, optional | The list of options to add to the select. Defaults to an empty array. |\n| `placeholder` | String, optional | The placeholder shown when no value is selected. Defaults to \"Select a value...\". |\n| `value` | String, optional | The select's value. Defaults to null. |\n| `onChange` | Function, optional | The callback to fire when an item is selected. The callback is passed the currently selected value and the select widget. |\n| `disabled` | Boolean, optional | Whether the select is disabled. Defaults to false. |\n| `style` | Object, optional | An object of allowed CSS styles with their values to be set for this widget. See style() documentation. |"]]