Our blazing fast Grid component built with pure JavaScript


Post by henrique »

Does it is possible to use a variable of a store instead only a config?

Something like this:


let MyStore = new Store({...});

class Task extends Model {
    static fields = [
        'name',
        // Store field
        { name : 'subTasks', type : 'store', store: MyStore }
    ];
}

Post by tasnim »

Hi,

StoreDataField's store only support store config which you can check here in the docs https://bryntum.com/products/grid/docs/api/Core/data/field/StoreDataField#config-store

If you want to set a store class you could use this https://bryntum.com/products/grid/docs/api/Core/data/field/StoreDataField#config-storeClass

Hope it helps.

Best regards,
Tasnim


Post Reply