[FEATURE REQUEST] Add storeClass config to Grid
Posted: Sun Aug 07, 2022 7:42 pm
Hi! I want to have a Grid Store of a specific class. But I don't want to create a new instance, I want to declare the type only. Similar like it's possible to declare modelClass on the Store. So it would be nice if storeClass is supported (or any other option):
class GroupStore extends Store {
static get $name() {
return 'GroupStore'
}
//....
}
// Option A
const gridConfig = {
storeClass : GroupStore
}
// Option B
const gridConfig = {
store : {
name : 'GroupStore'
}
}
// Option C
const gridConfig = {
store : {
type : GroupStore
}
}
new Grid(gridConfig);
Best,
Pavel