Главная > ExtJS > Проверка grid перед закрытием

Проверка grid перед закрытием

var tabPanel = new Ext.TabPanel({
items: [...],
listeners: {
beforeremove: function (container, component) {
if (!component.allowRemove) {
Ext.MessageBox.confirm('Confirm Action', 'Message', function (btn) {
if (btn == 'yes') {
component.allowRemove = true;
container.remove(component);
}
},
this);
return false;
}
}
}
});

через Conditionally Close Tab, How ?? — Ext JS Forums.

Categories: ExtJS Tags: ,