optimajet / formengine

Drag & Drop Form Builder Library for React.
https://formengine.io
32 stars 6 forks source link

dynamic number of slots as node for custom component props #42

Open amirht222 opened 1 month ago

amirht222 commented 1 month ago

I'm defining some custom components and I want to have something like a dynamic grid which acts as a parent for other inputs and buttons. how can I set dynamic number of slots and children using props method for example? can I have array of "node" props? (for example in the Main tab I want a "cols" prop that can change the number of slots and plus signs so I can drop any number of items I want in that grid container)

optimajet commented 1 month ago

Right now, node is just a description of a property of a component that is a ReactNode. If the property is not defined in designer mode - DropZone will be drawn on this place. You can drag multiple components (array) into the DropZone.

We are working on the possibility of adding components like Grid and Repeater.

matious89pl commented 1 month ago

@optimajet do you have any timeline regarding Repeater? Your formbuilder product has that, and it would amazing to gave that in formengine.io.

optimajet commented 1 month ago

@matious89pl We are working on it. As soon as the component is ready, we will publish it immediately.