blockly > Blok > setFieldValue
Block.setFieldValue() yöntemi
Bu blok için belirli bir alanın değerini ayarlar.
İmza:
setFieldValue(newValue: any, name: string): void;
Parametreler
Parametre |
Tür |
Açıklama |
newValue |
herhangi |
Ayarlanacak değer. |
ad |
dize |
Değeri ayarlanacak alanın adı. |
İadeler:
geçersiz
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-11-08 UTC.
[null,null,["Son güncelleme tarihi: 2024-11-08 UTC."],[[["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"]]