var button = new Ext.Button({
    text: 'Zapisz',
    handler: function() {
        // W tym miejscu naley wykona operacj zapisu
    }
});