column control container component export json
@Model(adaptables = Resource.class)
public class ColumnControl {
@586265
@7392697
public String desktopColumns;
@586265
@7392697
public String backgroundColor;
@586265
@7392697
public String fileReference;
@586265
@7392697
public String backgroundGradient;
private List<Columns> col;
@PostConstruct
protected void init() {
col = new ArrayList<Columns>();
if (desktopColumns != null) {
int deskTopCols = 0;
switch (desktopColumns) {
case "one-column-100" : {
deskTopCols = 1;
break;
}
case "two-column-33-66":
case "two-column-66-33":
case "two-column-50-50" : {
deskTopCols = 2;
break;
}
case "three-column-6-47-47":
case "three-column-33-33-33":
case "cmp-custom-column-control-carousel-stack--3columns": {
deskTopCols = 3;
break;
}
case "four-column-25-25-25-25":
case "cmp-custom-column-control-carousel-stack--4columns": {
deskTopCols = 4;
break;
}
}
int mdVal = 12 / deskTopCols;
for (int i = 0; i < deskTopCols; i++) {
Columns item = new Columns();
item.setCount(i);
item.setDeskVal(mdVal);
col.add(item);
}
}
setCol(col);
}
public List<Columns> getCol() {
return col;
}
public void setCol(List<Columns> col) {
this.col = col;
}
public String getColumnCountClass() {
return "column-count-" + col.size();
}
public String getInLineClass(){
String bgColor = backgroundColor !=null ? "background-color:"+ backgroundColor +";" : "";
String bgGradient = backgroundGradient !=null ? "background:"+ backgroundGradient +";" : "";
String bgImage = fileReference !=null ? "background-image:url('"+fileReference+"');" : "";
return bgColor+bgGradient+bgImage;
}
}
I have a column control component with parsys and authored teaser components inside it.
when I do page.model.json I am not seeing json data for teaser inside column control exported.
how to export column control child components inside?
Thanks,
Sri