blockly > FieldDropdown > doValueUpdate_
Metoda FieldDropdown.doValueUpdate_()
Zaktualizuj wartość w tym polu menu.
Podpis:
protected doValueUpdate_(newValue: string): void;
Parametry
Parametr |
Typ |
Opis |
newValue |
ciąg znaków |
Wartość do zapisania. Domyślny walidator gwarantuje, że jest to jedna z prawidłowych opcji menu. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-10 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-10 UTC."],[[["`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."]]],[]]