diff --git a/README.md b/README.md index 85f1322..f58b606 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,13 @@ To scroll the container horizontally, use the mouse wheel + Shift key
``` -```javascript -const renderer = new FlowRenderer() -const container1 = document.getElementById('nr-flow-1'); -const flow = [{"id": "1001", "type": "inject", "x": 100, "y": 40, "wires": [["1002"]]}, {"id": "1002", "type": "debug", "x":300, "y": 40}] -renderer.renderFlows(flow, { container: container1 }) +```html + ``` ### Inline Options example @@ -72,11 +74,13 @@ NOTE: To SET and option, the data attribute can simply be present on the contain > ``` -```javascript -const renderer = new FlowRenderer() -const container2 = document.getElementById('nr-flow-2'); -const flow = [{"id": "1001", "type": "inject", "x": 100, "y": 40, "wires": [["1002"]]}, {"id": "1002", "type": "debug", "x":300, "y": 40}] -renderer.renderFlows(flow, { container: container2 }) +```html + ```