8 Replies
use a Card instead of a Section
can I use
statePath
with Card?
I use statePath
to store all the data in an array.yes, a card is just another layout component like section
@awcodes Thank you.
I have one other question regarding
statePath
. Can you please advice.
If I have 2 Card
components with statePath('foo')
, will one overwrite the other or will they merge?Not sure what happens. I guess it could work. But why don't you just try it?
Layout components don't actually have state themselves. Maybe do a dd() in the beforeSave or beforeCreate lifecycle to see what data you are getting back from the form. Then you can go from there.
ok, I was using these components as a standalone form builder, but going to give it a try. will let you know what happens
ok, tested it, and they merge. I am glad this works as expected. Thank you very much for the help..