Skip to content

Commit

Permalink
fix: filter support
Browse files Browse the repository at this point in the history
  • Loading branch information
m2a2x committed Jul 19, 2024
1 parent 68ad412 commit 638df71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions projects/angular-datagrid/src/public-api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/*
* Public API Surface of angular-datagrid
*/
import { defineCustomElement as defineFilterPanel } from '@revolist/revogrid/standalone/revogr-filter-panel.js';
// Filter is defined as a standalone component plugin and should be imported here
defineFilterPanel?.();

export type * from '@revolist/revogrid';
export * from './lib/components';
export * from './lib/editor.adapter';
Expand Down
2 changes: 1 addition & 1 deletion projects/demo-standalone/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EditorComponent } from './editor.component';
selector: 'app-root',
standalone: true,
imports: [RevoGrid, EditorComponent, CellComponent],
template: `<revo-grid style="height: 200px; width: 200px" [columns]="columns" [source]="source" [editors]="editors"></revo-grid>`
template: `<revo-grid style="height: 200px; width: 200px" [filter]="true" [columns]="columns" [source]="source" [editors]="editors"></revo-grid>`
})
export class AppComponent {
source: any[] = [ {
Expand Down

0 comments on commit 638df71

Please sign in to comment.