However the type of component that is rendered is identified by the fieldConfig property. Which defaults to a text field.
Here is a sample structure to support changing the default type to a drop down selection;
{
"xtype": "multifield",
"name": "./shadow",
"fieldlabel": "stuff",
"jcr:primaryType": "cq:Widget",
"fieldConfig": {
"xtype": "selection",
"type": "select",
"jcr:primaryType": "nt:unstructured",
"options": {
"jcr:primaryType": "cq:WidgetCollection",
"o1": {
"value": "google",
"jcr:primaryType": "nt:unstructured",
"text": "google"
},
"02": {
"value": "yahoo",
"jcr:primaryType": "nt:unstructured",
"text": "yahoo"
}
}
}
}
No comments:
Post a Comment