Extjs, dialogs and universal evil!
Yes! I mistakenly believe that dialogues such as “do you definitely want to remove the thirty selected objects” are universal evil. But so units are considered.
It is constantly required to stick this disgrace into the code. But here, not everything is smooth.
In Extjs, this is somehow done over the head.
I want to write simply: where this is our plate. Comfortable and joyful. So no. Our “windows” are asynchronous and objectively disgraceful too. It is necessary to process the answer “inside” the window object. And this already refers not to my table, but to the window. And the dance begins with id and with access to the table. And what do you do in similar cases?
It is constantly required to stick this disgrace into the code. But here, not everything is smooth.
In Extjs, this is somehow done over the head.
I want to write simply: where this is our plate. Comfortable and joyful. So no. Our “windows” are asynchronous and objectively disgraceful too. It is necessary to process the answer “inside” the window object. And this already refers not to my table, but to the window. And the dance begins with id and with access to the table. And what do you do in similar cases?
var answ = confirmDlg('Are you sure?');
if (answ=='ok'){
this.deleteSelectedItems();
}