mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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() descriptor: IComponentDescriptor;
|
||||||
@Input() modelStore: IModelStore;
|
@Input() modelStore: IModelStore;
|
||||||
|
|
||||||
public data: any[][] = [];
|
private data: any[][] = [];
|
||||||
public columns: azdata.DeclarativeTableColumn[] = [];
|
private columns: azdata.DeclarativeTableColumn[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(forwardRef(() => ChangeDetectorRef)) changeRef: ChangeDetectorRef,
|
@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 {
|
private onCellDataChanged(newValue: any, rowIdx: number, colIdx: number): void {
|
||||||
this.data[rowIdx][colIdx] = newValue;
|
this.data[rowIdx][colIdx] = newValue;
|
||||||
|
this.setPropertyFromUI<azdata.DeclarativeTableProperties, any[][]>((props, value) => props.data = value, this.data);
|
||||||
let newCellData: azdata.TableCell = {
|
let newCellData: azdata.TableCell = {
|
||||||
row: rowIdx,
|
row: rowIdx,
|
||||||
column: colIdx,
|
column: colIdx,
|
||||||
|
|||||||
Reference in New Issue
Block a user