blockly > Block > setFieldValue
طريقة Block.setFieldValue()
لضبط قيمة الحقل المحدّد لهذا المربّع
Signature:
setFieldValue(newValue: any, name: string): void;
المعلمات
المَعلمة |
النوع |
الوصف |
newValue |
أي واحد |
القيمة المطلوب ضبطها |
الاسم |
سلسلة |
اسم الحقل الذي تريد ضبط قيمته. |
المرتجعات:
غير صالح
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-08 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-08 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `setFieldValue` method updates the value of a specific field within a Blockly block."],["It requires two parameters: `newValue` specifying the desired value, and `name` indicating the target field to modify."],["This method does not return any value (void) after execution."]]],["The `Block.setFieldValue()` method allows modification of a block's field value. It takes two parameters: `newValue`, which is the desired value (of any type), and `name`, a string representing the target field's name. Executing this method updates the specified field within the block with the provided `newValue`. The method returns no value (void).\n"]]