Skip to content

Instantly share code, notes, and snippets.

@my8bit
Created October 22, 2013 13:43
Show Gist options
  • Save my8bit/7101019 to your computer and use it in GitHub Desktop.
Save my8bit/7101019 to your computer and use it in GitHub Desktop.
/*
Ext.JS 3 simple grid resizer
@number - number. please pay attention that index starts from 0
@width - number.
TODO more specific selector
*/
function resizeColumn(number, width) {
var column = document.querySelectorAll('.x-grid3-td-' + number);
for (var i = 0; i < column.length; i++) {
column[i].style.width = width + 'px';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment