Group fields
Last updated
Last updated
Property
Description
name
Fields name (Unique)
type
group
label
Label of field
description
Description about the field
value
Default value
options
{
add_text: string (Custom text for add new),
max: interge (Maximum item),
oneline: true
}
params
List of fields in this group (support group level 2)
[
{
name:'group_1',
label:'Simple Group',
type:'group',
value:[
{
text:'Text 01'
}
],
options:{
add_text:'Add new item',
max:5
},
params:[
{
name:'text',
type:'text',
label:'Text'
},
{
name:'image',
type:'picker',
label:'Image',
options:{
type:'image'
}
}
]
},
{
name:'group_2',
label:'Group in group',
type:'group',
value:[
{
text:'Text 02',
group_inner:[
{
text:'Text 03'
}
]
}
],
options:{
add_text:'Add new group'
},
params:[
{
name:'text',
type:'text',
label:'Text'
},
{
name:'group_inner',
type:'group',
label:'Child group',
params:[
{
name:'text',
type:'text',
label:'Text'
},
{
name:'image',
type:'picker',
label:'Image',
options:{
type:'image'
}
}
]
}
]
},
{
name:'group_3',
label:'Group types',
type:'group',
value:[
{
type:'group_type_1',
settings:{
text:'Text 03',
group_inner:[
{
text:'Text 04'
},
{
text:'Text 05'
}
]
}
}
],
options:{
add_text:'Add new group'
},
params:[
{
type:'group_type_1',
name:'Group 01',
max: 5,
settings:[
{
name:'text',
type:'text',
label:'Text'
},
{
name:'group_inner',
type:'group',
label:'Child group',
params:[
{
name:'text',
type:'text',
label:'Text'
},
{
name:'image',
type:'picker',
label:'Image',
options:{
type:'image'
}
}
]
}
]
},
{
type:'group_type_2',
name:'Group 02',
settings:[
{
name:'text',
type:'text',
label:'Text'
}
]
}
]
}
]