Fixes the declarative table issue (#11330)

This commit is contained in:
Amir Omidi
2020-07-13 14:35:35 -07:00
committed by GitHub
parent 351ab2f40f
commit 3c0d819911

View File

@@ -34,8 +34,8 @@ export default class DeclarativeTableComponent extends ContainerBase<any> implem
@Input() descriptor: IComponentDescriptor;
@Input() modelStore: IModelStore;
public data: any[][] = [];
public columns: azdata.DeclarativeTableColumn[] = [];
private data: any[][] = [];
private columns: azdata.DeclarativeTableColumn[] = [];
constructor(
@Inject(forwardRef(() => ChangeDetectorRef)) changeRef: ChangeDetectorRef,
@@ -132,6 +132,7 @@ export default class DeclarativeTableComponent extends ContainerBase<any> implem
private onCellDataChanged(newValue: any, rowIdx: number, colIdx: number): void {
this.data[rowIdx][colIdx] = newValue;
this.setPropertyFromUI<azdata.DeclarativeTableProperties, any[][]>((props, value) => props.data = value, this.data);
let newCellData: azdata.TableCell = {
row: rowIdx,
column: colIdx,