Skip to content

Instantly share code, notes, and snippets.

@jacobandresen
Created October 13, 2011 12:28
Show Gist options
  • Save jacobandresen/1284119 to your computer and use it in GitHub Desktop.
Save jacobandresen/1284119 to your computer and use it in GitHub Desktop.
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