Created
October 22, 2013 13:43
-
-
Save my8bit/7101019 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
/* | |
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