How to add a filter panel for a local data grid


I have an array of records that is created and loaded into a grid, but I want to add a filter panel to it. How would you configure a filter panel to use with a local data source?


We can still use local data in shared DataSource.
Same configuration to shared DataSource, e.g:

ui module RevenueProtection {
dataSource Opportunities {
“localData”: true,
“items”: [
“data”: {
“id”: “test1”,
“score”: 1,
“address”: “testAddress”