Our blazing fast Grid component built with pure JavaScript


Post by gregc »

I just can't find it now, but somewhere I think you had a grid utility where you could popup a message for a second or two in the bottom right corner of a grid that provided some textual feedback on an action.

e.g. I just want to say "2 rows copied" briefly without making it a dialog. Ring any bells?

Last edited by gregc on Sat Mar 27, 2021 3:42 pm, edited 1 time in total.

Post by alex.l »

Please check this: https://www.bryntum.com/docs/grid/#Core/widget/Toast

// button that shows a toast with random text when clicked
new Button({
    appendTo : targetElement,
    cls      : 'b-raised',
    text     : 'Show toast',
    onClick  : () => {
        const greetings = [ 'Hello', 'Hey', 'Hi', 'Greetings', 'Good day' ];
        Toast.show(greetings[ Math.floor(Math.random() * 5) ]);
    }
});

All the best,
Alex


Post by gregc »

that was it, thanks!


Post Reply