mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Fixes the declarative table issue (#11330)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user