update image for block builder
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
0eedf5371a
commit
d1fa02d30a
BIN
docs/_static/img/editors/builder2.png
vendored
BIN
docs/_static/img/editors/builder2.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 14 KiB |
BIN
docs/_static/img/editors/builder3.png
vendored
BIN
docs/_static/img/editors/builder3.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 19 KiB |
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue