Premium support for our pure JavaScript UI components


Post by pmiklashevich »

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

Pavlo Miklashevych
Sr. Frontend Developer


Post by alex.l »

Hi Pavel,

I've opened a feature request here https://github.com/bryntum/support/issues/5021

Thank you!

All the best,
Alex


Post Reply