mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Updated Design: Editor Events (markdown)
parent
4e37428ef3
commit
0e49695e27
@ -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 |
|
All events are emitted by `RED.events`.
|
||||||
|-----------|-------|------|-------------|
|
|
||||||
|`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 |
|
|
||||||
|
|
||||||
|
|
||||||
-----
|
|
||||||
|
|
||||||
| Event | Args | Description |
|
| Event | Args | Description |
|
||||||
|-------|------|-------------|
|
|-------|------|-------------|
|
||||||
@ -17,3 +8,4 @@ The follow components emit events for the internal workings of the editor. Need
|
|||||||
| `view:selection-changed` | `{ nodes: [], link: link }` | The node selection has changed |
|
| `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 |
|
| `workspace:change` | `{ old: 'tab-id', workspace: 'tab-id' }` | The visible workspace tab has changed |
|
||||||
| `deploy` | | A flows have been deployed successfully |
|
| `deploy` | | A flows have been deployed successfully |
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user