Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Zdarzenia > VarCreate
Klasa Events.VarCreate
Informuje słuchaczy, że został utworzony model zmienny.
Podpis:
export declare class VarCreate extends VarBase
Rozszerzenia: VarBase
Zespoły
Właściwości
| Właściwość |
Modyfikatory |
Typ |
Opis |
| type |
|
EventType |
|
| varName? |
|
ciąg znaków |
(Opcjonalnie) nazwa utworzonej zmiennej. |
| varType? |
|
ciąg znaków |
(Opcjonalnie) Typ utworzonej zmiennej. |
Metody
| Metoda |
Modyfikatory |
Opis |
| run(forward) |
|
Uruchom zdarzenie tworzenia zmiennej. |
| toJson() |
|
Koduj zdarzenie w formacie JSON. |
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: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The `VarCreate` class, extending `VarBase`, signals the creation of a variable. It is initiated with an optional variable model. Key properties include the variable's name (`varName`) and type (`varType`), both optional, and a mandatory `type`. Core actions include creating an instance of `VarCreate`, and the methods `run`, which executes the variable creation event, and `toJson`, which encodes the event into JSON format.\n"]]