Home > blockly > FieldVariable > doValueUpdate_
FieldVariable.doValueUpdate_() method
Update the value of this variable field, as well as its variable and text.
The variable ID should be valid at this point, but if a variable field validator returns a bad ID, this could break.
Signature:
protected doValueUpdate_(newId: string): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| newId | string | The value to be saved. |
Returns:
void