blockly > الأحداث > VarBase
فئة Events.VarBase
فئة تجريدية لحدث متغير.
Signature:
export declare class VarBase extends AbstractEvent
يمدد: AbstractEvent
الشركات المصنِّعة
أماكن إقامة
الموقع |
مفاتيح التعديل |
النوع |
الوصف |
isBlank |
|
منطقي |
|
varId? |
|
سلسلة |
(اختياري) رقم تعريف المتغيّر الذي يشير إليه هذا الحدث. |
الطُرق
الطريقة |
مفاتيح التعديل |
الوصف |
toJson() |
|
ترميز الحدث بتنسيق JSON |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-10-11 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-10-11 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]