Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Prosedürler > IProcedureModel > setEnabled
Procedures.IProcedureModel.setEnabled() yöntemi
Bu prosedürün etkin/devre dışı olup olmadığını belirler. Bir prosedür devre dışı bırakılırsa tüm prosedür arayan engellemeleri de devre dışı bırakılmalıdır.
İmza:
setEnabled(enabled: boolean): this;
Parametreler
Parametre |
Tür |
Açıklama |
etkin |
boolean |
|
Şunu döndürür:
bu
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-09-12 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-09-12 UTC."],[[["The `setEnabled` method controls the enabled/disabled state of a procedure within Blockly."],["When a procedure is disabled using this method, all associated procedure caller blocks are also disabled."],["This method accepts a boolean value to determine the enabled/disabled state and returns the IProcedureModel instance allowing for method chaining."]]],["The `setEnabled()` method within the Procedures.IProcedureModel interface controls the enabled/disabled state of a procedure. It accepts a boolean parameter, `enabled`, to determine the state. When a procedure is disabled, all associated procedure caller blocks should also be disabled. The method returns the `this` object, allowing for method chaining.\n"]]