Request new features or modifications


Post by alex.l »

Hi Vadim,

Thanks for notifying! I will add a mark in the ticket!

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post by Animal »

The type property does not have to be a string. It can directly reference the class you want to create.

{
    type : Combo,
    …
}

Post by Animal »

vadim_g wrote: Wed Oct 22, 2025 1:16 pm

Hi Alex,

could you consider please to add everywhere, not only for Container items. Another example would be on Store:

comboConfig: {
    store: {
         type: MyStore
    }
}

We use imports a lot, and is faster and easier to configure eveything by passing the constructors/classes. This would be great addition to the Bryntum 7.0 ;)

Thanks
Vadim

I had a branch to do similar a while ago.

The solution is for Store to implement Factoryable, so all subclasses can implement

    static type = 'my-special-store'

Then promotion of a store config to a store would use Store's own static factory to create a Store of the correct type.

So you would configure your Grid with

store : {
    type : 'my-special-store'
}

I had a PR open, but, somehow never got any attention. Will try to find it again.

For widgets

{
    type : TextField
}

or whatever class you want will work. The factory method in Factoryable accepts the actual class as well as the type


Post by Animal »

Here is the ancient issue: https://github.com/bryntum/support/issues/5021

I found my branch, will try to resuscitate it.


Post by vadim_g »

Great, thanks !

I forgot about this thread, so I re-opened a new one related to Store here: viewtopic.php?p=175933#p175933


Post Reply