Created
October 13, 2011 12:28
-
-
Save jacobandresen/1284119 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { | |
clicksToMoveEditor: 1, | |
autoCancel: false | |
}); | |
var grid = Ext.create('Ext.grid.Panel', { | |
title: 'Listing videos', | |
store: Ext.create('Ext.data.Store', { ... } ), | |
renderTo: 'video-grid', | |
plugins: [rowEditing], | |
columns: [{ header: 'title', dataIndex: 'title', width: 200, editor: { xtype: 'textfield' } }, | |
... | |
}], | |
bbar: [{ | |
text: 'New Video', | |
handler: function () { ... } | |
}, { | |
text: 'Destroy Video', | |
handler: function () { .. } | |
}] | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment