From 4b6fcd0a2f7096742641aef6d4b27ce63f20b2f4 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 10 Jul 2015 19:41:12 +0100 Subject: [PATCH] Updated Design: Editor Events (markdown) --- Design:-Editor-Events.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Design:-Editor-Events.md b/Design:-Editor-Events.md index f755561..06d94f4 100644 --- a/Design:-Editor-Events.md +++ b/Design:-Editor-Events.md @@ -8,3 +8,11 @@ The follow components emit events for the internal workings of the editor. Need |`RED.workspaces` | `change` | `{ old: 'tab-id', workspace: 'tab-id' }` | The visible workspace tab has changed | +----- + +| Event | Args | Description | +|-------|------|-------------| +| `nodes:change` | `{ dirty: true/false }` | The 'dirty' state of the flow has changed.| +| `sidebar:resize` | | The sidebar has changed size.| +| `view:selection-changed` | `{ nodes: [], link: link }` | The node selection has changed. | +| `workspace:change` | `{ old: 'tab-id', workspace: 'tab-id' }` | The visible workspace tab has changed | \ No newline at end of file