mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
Add setFilter to DeclarativeTableComponent (#14143)
* Add setFilter to DeclarativeTableComponent * fix tests * Update param name
This commit is contained in:
@@ -1585,6 +1585,10 @@ class DeclarativeTableWrapper extends ComponentWrapper implements azdata.Declara
|
||||
this.setProperty('selectEffect', v);
|
||||
}
|
||||
|
||||
public setFilter(rowIndexes: number[]): void {
|
||||
this._proxy.$doAction(this._handle, this._id, ModelViewAction.Filter, rowIndexes);
|
||||
}
|
||||
|
||||
public toComponentShape(): IComponentShape {
|
||||
// Overridden to ensure we send the correct properties mapping.
|
||||
return <IComponentShape>{
|
||||
|
||||
@@ -183,7 +183,8 @@ export enum ModelComponentTypes {
|
||||
|
||||
export enum ModelViewAction {
|
||||
SelectTab = 'selectTab',
|
||||
AppendData = 'appendData'
|
||||
AppendData = 'appendData',
|
||||
Filter = 'filter'
|
||||
}
|
||||
|
||||
export enum ColumnSizingMode {
|
||||
|
||||
Reference in New Issue
Block a user