Skip to content

How can i create custom element with multiple fields #45

Closed Answered by adamberecz
L150n asked this question in Questions
Discussion options

You must be logged in to vote

The schema you pass to a builder element is the same schema you set for an element when using Vueform with schema rendering.

So you can define an object or group as element type and pass its children via schema (as you would do for eg. an ObjectElement).

The only thing you need to pay attention is to extend each element's schema with a builder object. This object needs to contain the type of the element in the builder. So for example for number we use type: 'text' on the element schema, but we need builder.type: 'number' because that's the associated field in the builder (that's how the builder know what eg. icon to display for this element eg. in the tree). You can see the available buil…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@L150n
Comment options

@catamaican
Comment options

Answer selected by L150n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants