調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >イベント >BlockChange >実行
Events.BlockChange.run() メソッド
変更イベントを実行します。
署名:
run(forward: boolean): void;
パラメータ
パラメータ |
型 |
説明 |
進む |
ブール値 |
前に走る場合は true、後方に移動する(元に戻す)場合は false。 |
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-14 UTC。
[null,null,["最終更新日 2024-10-14 UTC。"],[[["The `run()` method executes a BlockChange event, modifying a block's state."],["It takes a boolean argument, `forward`, indicating whether to apply the change or undo it."],["When `forward` is true, the event's changes are applied; when false, the changes are reversed."],["This method is essential for managing block modifications and enabling undo/redo functionality within Blockly."]]],["The `Events.BlockChange.run()` method executes a block change event. It accepts a boolean parameter, `forward`, which determines the direction of the operation. When `forward` is true, the change is applied; when false, the change is undone. The method does not return any value.\n"]]