0

I have a container component that extends the core container component..but I am not getting the container id in JSON of that component..So, I have created a custom model and injected the layout Container model used in the core container component and returned the properties..Now I am getting the id but the json that I am getting is simple container json but not responsive grid JSON.Can anyone help me with this and let me know how I can get the id along with original json?

JSON before adding the model:

{
"columnCount": 12,
"columnClassNames": {
"video": "aem-GridColumn aem-GridColumn--default--12",
"carousel_slick": "aem-GridColumn aem-GridColumn--default--12",
"carousel_1384642015": "aem-GridColumn aem-GridColumn--default--12"
},
"gridClassNames": "aem-Grid aem-Grid--12 aem-Grid--default--12",
"allowedComponents": {},
":itemsOrder": [],
":items": {},
":type": "custom/components/container"
}

JSON after adding the model:

"id": "container-id-123",
"layout": "SIMPLE",
":itemsOrder": [],
":items": {},
"dataLayer": {},
":type": "custom-us/components/container"
}
} ```

0 Answers0