Replies: 4 comments 2 replies
-
Apologies @dan-leech - I overlooked this discussion and forgot to reply. I tested and it really seems like a bug - will be fixed. I've created an issue for it: #43 |
Beta Was this translation helpful? Give feedback.
-
Actually, I figured out the problem is that you don't only need the 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',
fields: {
type: { type: TypeField },
name: { type: NameField },
label: { type: LabelField },
tooltip: { type: InfoField },
description: { type: DescriptionField },
customType: { type: InputTypeField },
},
},
data: {
name: 'data',
label: 'Data',
fields: {
nested: { type: NestedField },
},
},
decorators: {
name: 'decorators',
label: 'Decorators',
fields: {
before: { type: BeforeField },
between: { type: BetweenField },
after: { type: AfterField },
},
},
layout: {
name: 'layout',
label: 'Layout',
fields: {
size: { type: SizeField },
columns: { type: ColumnsField },
},
},
conditions: {
name: 'conditions',
label: 'Conditions',
fields: {
conditions: { type: ConditionsField },
},
},
},
separators: {
properties: [
['type', 'name'],
['label', 'tooltip'],
['description'],
],
layout: [
['size'],
['columns'],
],
}
},
}
}
} |
Beta Was this translation helpful? Give feedback.
-
@adamberecz Thanks. |
Beta Was this translation helpful? Give feedback.
-
It should be possible. The keys for static elements are:
What's the issue you're encountering? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
When I try to customise
container
in builder.config.js:Container disappears from the elements. It works for
checkboxgroup
but it doesn't for thecontainer
element.I took elemets code from here: https://builder.vueform.com/docs/custom-elements
Might I do something wrong? Could you advise me?
P.S.: also I tried to add custom properties field to
static
element type to add it to all static elements but the field isn't appear in properties.Beta Was this translation helpful? Give feedback.
All reactions