Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Etkinlikler > BlockChange > (kurucu)
Events.BlockChange.(constructor)
BlockChange
sınıfının yeni bir örneğini oluşturur
İmza:
constructor(opt_block?: Block, opt_element?: string, opt_name?: string | null, opt_oldValue?: unknown, opt_newValue?: unknown);
Parametreler
Parametre |
Tür |
Açıklama |
opt_block |
Engelle |
(İsteğe bağlı) Değiştirilen blok. Boş bir etkinlik için tanımlanmadı. |
opt_element |
dize |
(İsteğe bağlı) "Alan", "yorum", "devre dışı" vb. değerlerden biri. |
opt_name |
dize | boş |
(İsteğe bağlı) Etkilenen girişin veya alanın adı ya da null. |
opt_oldValue |
bilinmiyor |
(İsteğe bağlı) Öğenin önceki değeri. |
opt_newValue |
bilinmiyor |
(İsteğe bağlı) Öğenin yeni değeri. |
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: 2025-07-25 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: 2025-07-25 UTC."],[],["The `BlockChange` class constructor creates a new instance to track changes within a block. It accepts optional parameters defining the affected block, the specific element changed (e.g., 'field', 'comment'), the element's name, the old value, and the new value. The block parameter specifies which block changed, while element and name identify what part of that block was modified. `opt_oldValue` and `opt_newValue` store the previous and current values.\n"]]