in src/visualComponent/table/body/collapsedBodyRowComponent.ts [70:118]
public render(options: IBodyRowRenderOptions): void {
const {
series,
settings,
seriesDeep,
rowStateSet,
originRowStateSet,
} = options;
this.tableType = settings.table.type;
this.level = series.level + 1;
const rowState: IRowState =
(rowStateSet
&& rowStateSet[series.name]
&& rowStateSet[series.name].rowSet
&& rowStateSet[series.name].rowSet[this.name]
)
||
(originRowStateSet
&& originRowStateSet[series.name]
&& originRowStateSet[series.name].rowSet
&& originRowStateSet[series.name].rowSet[this.name]
);
const amountOfPreCells: number = seriesDeep - this.level - 1;
if (this.amountOfPreCells !== amountOfPreCells || !this.components.length) {
this.destroyComponents();
this.initCells(
this.getCellConstructors(amountOfPreCells),
this.bodyOptions,
this.cellOptions);
this.initHorizontalDraggableComponent(this.options);
}
this.amountOfPreCells = amountOfPreCells;
this.renderCells(options);
this.updateClassNamesBasedOnViewMode(BodyRowComponentViewMode.common);
this.updateGrid(settings.horizontalGrid, settings.verticalGrid);
this.applyState(rowState);
}