update image for block builder
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2024-05-13 15:54:28 +02:00
parent 0eedf5371a
commit d1fa02d30a
Signed by: deblan
GPG key ID: 579388D585F70417
3 changed files with 3 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

@ -4,6 +4,8 @@ Its gives you total control to build with blocks.
![](/_static/img/editors/builder.png)
![](/_static/img/editors/builder2.png)
## Add the builder in forms
### Classic form
@ -96,6 +98,7 @@ class CustomBlock extends BuilderBlock
->setName('custom')
->setCategory('Category')
->setLabel('My custom block')
->setOrder(1)
->setIsContainer(false) // set `true` if the block can contain blocks
->setIcon('<i class="fas fa-pencil-alt"></i>')
->setTemplate('builder_block/custom.html.twig')
@ -121,7 +124,6 @@ Create a template:
That's all folks!
![](/_static/img/editors/builder2.png)
![](/_static/img/editors/builder3.png)
## Rendering