Open sanuann opened 3 years ago
mhhhh, there is a way you can do it with css, but you might have to experiment a little bit. One other way would be to make an array of objects, and use my other "vfg-field-object" project. In advance, sorry, i know these projects don't have a perfect documentation... But I think if something is lacking you may be able to understand the source code easily. It's basically one vie component for both projects.
Anyway, what you can try :
keeping array of array way of thinking : try to deal with the problem with css : first array elements are blocks, inner elements are inline-blocks. You can also use "itemContainerComponent" property to add a wrapper components to your array elements.
with an array of objects, using vfg-field-object. the JSON generated would be something like :
[{a: 1, b: 2, c: 3}, {a: 4, b: 5, c: 6}]
After that, you can also convert your object into an array before using it for something else. If you struggle with this method, I can send you a example code (that I used in another project) with a working vfg schema
by using this package, is it possible to have two fields on each row in the array? I mean when I click on "add new", it should add two text boxes on the same line(say, "name" and "value"). if this is doable, please let me know how to. Thanks. @gwenaelp any idea how to do this?