Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Etkinlikler > VarBase
Events.VarBase sınıfı
Bir değişken etkinliği için soyut sınıf.
İmza:
export declare class VarBase extends AbstractEvent
Kapsamı: AbstractEvent
Markalar
Özellikler
Özellik |
Değiştiriciler |
Tür |
Açıklama |
isBlank |
|
boolean |
|
varId? |
|
dize |
(İsteğe bağlı) Bu etkinliğin referans verdiği değişkenin kimliği. |
Yöntemler
Yöntem |
Değiştiriciler |
Açıklama |
toJson() |
|
Etkinliği JSON olarak kodlayın. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-10-11 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-10-11 UTC."],[[["The `Events.VarBase` class in Blockly is an abstract class serving as the foundation for all variable-related events."],["It inherits from the `AbstractEvent` class and includes properties like `isBlank` and `varId` to manage variable event data."],["A key method of `Events.VarBase` is `toJson()`, used for encoding the event data into JSON format."]]],["The `VarBase` class, extending `AbstractEvent`, serves as a foundation for variable-related events. It can be instantiated with an optional variable. Key properties include `isBlank` (boolean) and `varId` (optional string, representing the variable's ID). The class also has a `toJson()` method to encode the event data in JSON format. This class is used as a basis for variable-related actions, holding essential information about a referenced variable.\n"]]