From 0e49695e27cf49062a5aa7b9cf758fb4d78e4c9c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 10 Jul 2015 19:43:05 +0100 Subject: [PATCH] Updated Design: Editor Events (markdown) --- Design:-Editor-Events.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Design:-Editor-Events.md b/Design:-Editor-Events.md index 18dc8e2..5a68c79 100644 --- a/Design:-Editor-Events.md +++ b/Design:-Editor-Events.md @@ -1,14 +1,5 @@ -The follow components emit events for the internal workings of the editor. Need to decide if it makes sense to expose these directly as part of the API, or hide them behind a single `RED.events` component. -| Component | Event | Args | Description | -|-----------|-------|------|-------------| -|`RED.nodes` | `change` | `{ dirty: true/false }` | The 'dirty' state of the flow has changed.| -|`RED.sidebar` | `resize` | | The sidebar has changed size.| -|`RED.view` | `selection-changed` | `{ nodes: [], link: link }` | The node selection has changed. | -|`RED.workspaces` | `change` | `{ old: 'tab-id', workspace: 'tab-id' }` | The visible workspace tab has changed | - - ------ +All events are emitted by `RED.events`. | Event | Args | Description | |-------|------|-------------| @@ -16,4 +7,5 @@ The follow components emit events for the internal workings of the editor. Need | `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 | -| `deploy` | | A flows have been deployed successfully | \ No newline at end of file +| `deploy` | | A flows have been deployed successfully | +