blockly > FieldDropdown > doValueUpdate_
روش FieldDropdown.doValueUpdate_().
مقدار این فیلد کشویی را به روز کنید.
امضا:
protected doValueUpdate_(newValue: string): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
newValue | رشته | ارزشی که باید ذخیره شود. اعتباردهنده پیش فرض تضمین می کند که این یکی از گزینه های کشویی معتبر است. |
برمیگرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-12 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-12 بهوقت ساعت هماهنگ جهانی."],[[["`doValueUpdate_()` is a protected method of the `FieldDropdown` class used to update the field's value."],["This method takes a single argument, `newValue`, a string representing the new value for the dropdown."],["The method ensures the `newValue` is a valid option from the dropdown's predefined list before applying the update."],["Calling `doValueUpdate_()` will change the visible selection in the dropdown field and store the new value internally."]]],[]]