Skip to content

Commit

Permalink
fix: dynamic connection plugin readme (google#1919)
Browse files Browse the repository at this point in the history
* chore: update readme and remove warning

* chore: add backticks
  • Loading branch information
BeksOmega committed Sep 28, 2023
1 parent c602b6f commit 20733af
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions plugins/block-dynamic-connection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ import * as BlockDynamicConnection from '@blockly/block-dynamic-connection';
## API
- `overrideOldBlockDefinitions`: Replaces the Blockly default blocks with the
dynamic connection blocks. This enables projects to use the dynamic block
plugin without changing existing XML.
Note that if you enable this, you will **never** be able to switch back to
non-dynamic connections, because this changes the way mutations are
serialized.

## XML
```xml
<block type="dynamic_text_join"></block>
<block type="dynamic_list_create"></block>
<block type="dynamic_if"></block>
```
plugin without changing existing XML/JSON.


## Blocks

* `dynamic_text_join` replaces `text_join`
* `dynamic_list_create` replaces `lists_create_with`
* `dynamic_if` replaces `controls_if`

## License
Apache 2.0

0 comments on commit 20733af

Please sign in to comment.