Builder: block open by default?
Hello,
I'm using a simple Builder in my filament admin app.
My builder contains 2 blocks : Paragraph or Image, each having multiple inputs.
I would like, on creation, to have a block image already opened.
Is is possible? I don't find how in the doc
Thx 🙂
3 Replies
Solution
Try
Content might be ‘data’ though. Trying to go from memory. And this will only work in the create context.
Might need to specify the content keys too. Not sure.
it's perfect thx a lot. It works with both but the right one is data (or else it works but is not right in database):
->default([
[ 'type' => 'image', 'data' => []],
]),