query results filtering and sorting (#14833)

* query results filtering and sorting (#14589)

* enable filter

* attach button style

* add hybrid data provider

* make filter and sort work

* fix editor switch issue

* configuration

* fix sort and filter

* add more specific selector

* fix hidden items issue

* update text

* revert text change

* fix copy results issue

* put feature behind preview flag

* comments

* fix tslint error
This commit is contained in:
Alan Ren
2021-03-23 11:30:41 -07:00
committed by GitHub
parent 5c67f3dbed
commit 6c54059f89
22 changed files with 554 additions and 132 deletions

View File

@@ -110,15 +110,10 @@ export class CopyResultAction extends Action {
super(id, label);
}
public run(context: IGridActionContext): Promise<boolean> {
if (this.accountForNumberColumn) {
context.gridDataProvider.copyResults(
mapForNumberColumn(context.selection),
this.copyHeader);
} else {
context.gridDataProvider.copyResults(context.selection, this.copyHeader);
}
return Promise.resolve(true);
public async run(context: IGridActionContext): Promise<boolean> {
const selection = this.accountForNumberColumn ? mapForNumberColumn(context.selection) : context.selection;
context.gridDataProvider.copyResults(selection, this.copyHeader, context.table.getData());
return true;
}
}