Skip to content

How to modify the Container Element Type? #41

Answered by adamberecz
dan-leech asked this question in Questions
Discussion options

You must be logged in to vote

Actually, I figured out the problem is that you don't only need the sections and separators properties, but everything else, like label, icon, category, etc. And from the missing category is the reason why it does not belong to any category and thus not being rendered.

If you don't want to change any of these properties this is the best practice:

// builder.config.js

import { elementTypes } from '@vueform/builder'

export default {
   element: {
       types: {
           container: {
               ...elementTypes.container,
               sections: {
                   properties: {
                       name: 'properties',
                       label: 'Properties',

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dan-leech
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dan-leech
Comment options

@adamberecz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants