Lines Matching +defs:table +defs:column
22 var elems = document.getElementsByTagName( "table" );
45 var childTables = div.getElementsByTagName( "table" );
106 defaultSort: function ( table, colid, revs ) {
107 var havetHead = table.tHead;
112 var theadrow = table.rows[0].cells;
155 makeSortable: function ( table, overrides, bottoms, ph2 ) {
163 var frombottom = table.rows.length - bottoms;
164 for( var i = table.rows.length - 1; i >= frombottom; i-- ) {
165 sortbottomrows[sortbottomrows.length] = table.rows[i];
169 if ( table.tFoot === null ) {
170 // table doesn't have a tfoot. Create one.
172 table.appendChild( tfo );
180 // work through each column and calculate its type
181 var havetHead = table.tHead;
186 var headrow = table.rows[0].cells;
206 headrow[i].sorttable_sortfunction = sorttable.guessType( table, i );
211 headrow[i].sorttable_tbody = table.tBodies[0];
218 // if we're already sorted by this column, just reverse the table
238 // if we're already sorted by this column in reverse, just re-reverse the table
284 guessType: function ( table, column ) {
285 // guess the type of a column based on its first non-blank row
291 for( var i = 0; i < table.tBodies[0].rows.length; i++ ) {
292 var text = sorttable.getInnerText( table.tBodies[0].rows[i].cells[column] );