Page 1 of 1

[VUE 3] How to call onchange function when the cell is changed?

Posted: Sat Oct 01, 2022 10:44 pm
by web combatant

How to call onchange function when the cell is changed?


Re: [VUE 3] How to call onchange function when the cell is changed?

Posted: Sat Oct 01, 2022 10:46 pm
by mats

You mean getting notified of data changes?

grid.store.on('change', console.log)

Re: [VUE 3] How to call onchange function when the cell is changed?

Posted: Sat Oct 01, 2022 10:47 pm
by web combatant

Do u have any solution for only one cell?


Re: [VUE 3] How to call onchange function when the cell is changed?

Posted: Sat Oct 01, 2022 10:50 pm
by web combatant
grid.store.on('change', console.log)

How to use this code on vue.js (AppConfig file)?


Re: [VUE 3] How to call onchange function when the cell is changed?

Posted: Sun Oct 02, 2022 9:40 am
by tasnim

Hi,
In the AppConfig (inside of the gridConfig) file, You want to listen like this

    store : {
        listeners : {
            change() {
                console.log('change');
            }
        }
    },

Docs :
https://bryntum.com/docs/grid/api/Core/data/Store
https://bryntum.com/docs/grid/api/Core/data/Store#event-change