Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text: 'RW',
- dataIndex: 'readonly',
- hideable: false,
- sortable: false,
- width: 30,
- handler: function(grid, rowIndex) {
- var rec = grid.getStore().getAt(rowIndex);
- grid.fireEvent('itemdblclick', grid, rec);
- }```
- controller
- ```'grid': {
- itemdblclick: this.openItem
- },```
- var me = this,
- now = Date.now();
- // Keep the user from multiple clicks
- if (now < me.lastTapTimestamp + 300) {
- me.lastTapTimestamp = now;
- return;
- }
- me.lastTapTimestamp = now;
- // Your code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement