You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import 'MyFilterField.js';
grid = new Grid({
columns: [
{ type : 'mycolumn', filterable : { filterField : { type : 'myfilterfield' } } }
]
});
// load state if exists
const state = JSON.parse(localStorage.getItem('foo'));
if (state) { grid.state = state; }
// save state to localStorage
localStorage.setItem('foo', JSON.stringify(grid.state));
Now inspect local storage and see column has filterable with field type.
Let's say app changed and we no longer import MyFilterField:
grid = new Grid({
columns : [
{ type : 'mycolumn' }
]
})
now when we load the app we get an exception, because column is trying to instantiate a widget which doesn't exist
To do:
filterable should not be part of state, it cannot be modified in UI
filters are saved in the store state, column has nothing to do with them
The text was updated successfully, but these errors were encountered:
Consider following usecase.
filterable
with field type.MyFilterField
:To do:
The text was updated successfully, but these errors were encountered: