Yes, in the https://bryntum.com/examples/grid/basic/, using the sample in the issues tracker, the toast isn't showed.
Support Forum
Hello Henrique,
With the latest version, and the following configuration (replacing the Toast for a console.log, just for testing purposes), all worked as expected.
{
type : 'check',
field : 'done',
flex : 1,
align : 'center',
text : 'CheckColumn',
showCheckAll : true,
callOnFunctions : true,
onToggle : () => console.log('onToggle clicked'),
onBeforeToggle : () => console.log('onBeforeToggle clicked'),
onToggleAll : () => console.log('onToggleAll clicked')
}
- Attachments
-
- Screen Shot 2022-08-29 at 10.18.53.png (137.94 KiB) Viewed 401 times
Best regards,
Márcio
When I use only the "onToggle", give me an error:
grid.module.js?461600:10
Uncaught TypeError: Cannot read properties of undefined (reading 'substring')
at CheckColumn.resolveCallback (grid.module.js?461600:10:33682)
at CheckColumn.callback (grid.module.js?461600:10:33294)
at CheckColumn.trigger (grid.module.js?461600:10:68268)
at CheckColumn.onBeforeCheckboxChange (grid.module.js?461600:12:252387)
at Checkbox.trigger (grid.module.js?461600:10:69674)
at Checkbox.triggerChange (grid.module.js?461600:12:54411)
at Checkbox.internalOnChange (grid.module.js?461600:12:54057)
at HTMLInputElement.o (grid.module.js?461600:10:162798)
Using the example of the "Basic Demo".
{
type : 'check',
field : 'done',
flex : 1,
align : 'center',
text : 'CheckColumn',
showCheckAll : true,
callOnFunctions : true,
onToggle : () => console.log('onToggle clicked'),
// onBeforeToggle : () => console.log('onBeforeToggle clicked'),
// onToggleAll : () => console.log('onToggleAll clicked')
}
Hey henrique,
That's a bug! I created a ticket to fix it - https://github.com/bryntum/support/issues/5136
As a workaround for now you can set some empty functions for the onBeforeToggle, onToggle and onToggleAll
Best regards,
Márcio