id
int32
0
58k
repo
stringlengths
5
67
path
stringlengths
4
116
func_name
stringlengths
0
58
original_string
stringlengths
52
373k
language
stringclasses
1 value
code
stringlengths
52
373k
code_tokens
list
docstring
stringlengths
4
11.8k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
86
226
42,500
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function (oRecord) { var elTrTemplate = this._getTrTemplateEl(); // Clone the TR template. var elTr = elTrTemplate.cloneNode(true); // Populate content return this._updateTrEl(elTr,oRecord); }
javascript
function (oRecord) { var elTrTemplate = this._getTrTemplateEl(); // Clone the TR template. var elTr = elTrTemplate.cloneNode(true); // Populate content return this._updateTrEl(elTr,oRecord); }
[ "function", "(", "oRecord", ")", "{", "var", "elTrTemplate", "=", "this", ".", "_getTrTemplateEl", "(", ")", ";", "// Clone the TR template.", "var", "elTr", "=", "elTrTemplate", ".", "cloneNode", "(", "true", ")", ";", "// Populate content", "return", "this", ...
Create a new TR element for a given Record and appends it with the correct number of Column-state-classed TD elements. Striping is the responsibility of the calling function, which may decide to stripe the single row, a subset of rows, or all the rows. @method _createTrEl @param oRecord {YAHOO.widget.Record} Record ins...
[ "Create", "a", "new", "TR", "element", "for", "a", "given", "Record", "and", "appends", "it", "with", "the", "correct", "number", "of", "Column", "-", "state", "-", "classed", "TD", "elements", ".", "Striping", "is", "the", "responsibility", "of", "the", ...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5425-L5433
42,501
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(elTr, oRecord) { var ok = this.get("formatRow") ? this.get("formatRow").call(this, elTr, oRecord) : true; if(ok) { // Hide the row to prevent constant reflows elTr.style.display = 'none'; // Update TD elements with new data var allTds = elTr.childNodes, ...
javascript
function(elTr, oRecord) { var ok = this.get("formatRow") ? this.get("formatRow").call(this, elTr, oRecord) : true; if(ok) { // Hide the row to prevent constant reflows elTr.style.display = 'none'; // Update TD elements with new data var allTds = elTr.childNodes, ...
[ "function", "(", "elTr", ",", "oRecord", ")", "{", "var", "ok", "=", "this", ".", "get", "(", "\"formatRow\"", ")", "?", "this", ".", "get", "(", "\"formatRow\"", ")", ".", "call", "(", "this", ",", "elTr", ",", "oRecord", ")", ":", "true", ";", ...
Formats the contents of the given TR's TD elements with data from the given Record. Only innerHTML should change, nothing structural. @method _updateTrEl @param elTr {HTMLElement} The TR element to update. @param oRecord {YAHOO.widget.Record} The associated Record instance. @return {HTMLElement} DOM reference to the n...
[ "Formats", "the", "contents", "of", "the", "given", "TR", "s", "TD", "elements", "with", "data", "from", "the", "given", "Record", ".", "Only", "innerHTML", "should", "change", "nothing", "structural", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5445-L5467
42,502
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(row) { var rowIndex; // Get page row index for the element if(!lang.isNumber(row)) { rowIndex = Dom.get(row).sectionRowIndex; } else { rowIndex = row; } if(lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) { // Cannot use ...
javascript
function(row) { var rowIndex; // Get page row index for the element if(!lang.isNumber(row)) { rowIndex = Dom.get(row).sectionRowIndex; } else { rowIndex = row; } if(lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) { // Cannot use ...
[ "function", "(", "row", ")", "{", "var", "rowIndex", ";", "// Get page row index for the element", "if", "(", "!", "lang", ".", "isNumber", "(", "row", ")", ")", "{", "rowIndex", "=", "Dom", ".", "get", "(", "row", ")", ".", "sectionRowIndex", ";", "}", ...
Deletes TR element by DOM reference or by DataTable page row index. @method _deleteTrEl @param row {HTMLElement | Number} TR element reference or Datatable page row index. @return {Boolean} Returns true if successful, else returns false. @private
[ "Deletes", "TR", "element", "by", "DOM", "reference", "or", "by", "DataTable", "page", "row", "index", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5478-L5496
42,503
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { this._unsetFirstRow(); var elTr = this.getFirstTrEl(); if(elTr) { // Set FIRST Dom.addClass(elTr, DT.CLASS_FIRST); this._sFirstTrId = elTr.id; } }
javascript
function() { this._unsetFirstRow(); var elTr = this.getFirstTrEl(); if(elTr) { // Set FIRST Dom.addClass(elTr, DT.CLASS_FIRST); this._sFirstTrId = elTr.id; } }
[ "function", "(", ")", "{", "this", ".", "_unsetFirstRow", "(", ")", ";", "var", "elTr", "=", "this", ".", "getFirstTrEl", "(", ")", ";", "if", "(", "elTr", ")", "{", "// Set FIRST", "Dom", ".", "addClass", "(", "elTr", ",", "DT", ".", "CLASS_FIRST", ...
Assigns the class YAHOO.widget.DataTable.CLASS_FIRST to the first TR element of the DataTable page and updates internal tracker. @method _setFirstRow @private
[ "Assigns", "the", "class", "YAHOO", ".", "widget", ".", "DataTable", ".", "CLASS_FIRST", "to", "the", "first", "TR", "element", "of", "the", "DataTable", "page", "and", "updates", "internal", "tracker", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5551-L5559
42,504
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { this._unsetLastRow(); var elTr = this.getLastTrEl(); if(elTr) { // Assign class Dom.addClass(elTr, DT.CLASS_LAST); this._sLastTrId = elTr.id; } }
javascript
function() { this._unsetLastRow(); var elTr = this.getLastTrEl(); if(elTr) { // Assign class Dom.addClass(elTr, DT.CLASS_LAST); this._sLastTrId = elTr.id; } }
[ "function", "(", ")", "{", "this", ".", "_unsetLastRow", "(", ")", ";", "var", "elTr", "=", "this", ".", "getLastTrEl", "(", ")", ";", "if", "(", "elTr", ")", "{", "// Assign class", "Dom", ".", "addClass", "(", "elTr", ",", "DT", ".", "CLASS_LAST", ...
Assigns the class YAHOO.widget.DataTable.CLASS_LAST to the last TR element of the DataTable page and updates internal tracker. @method _setLastRow @private
[ "Assigns", "the", "class", "YAHOO", ".", "widget", ".", "DataTable", ".", "CLASS_LAST", "to", "the", "last", "TR", "element", "of", "the", "DataTable", "page", "and", "updates", "internal", "tracker", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5583-L5591
42,505
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(row, range) { // Default values stripe all rows var allRows = this._elTbody.rows, nStartIndex = 0, nEndIndex = allRows.length, aOdds = [], nOddIdx = 0, aEvens = [], nEvenIdx = 0; // Stripe a subset if((row !== null) && (row !== undefined)) { // Validate ...
javascript
function(row, range) { // Default values stripe all rows var allRows = this._elTbody.rows, nStartIndex = 0, nEndIndex = allRows.length, aOdds = [], nOddIdx = 0, aEvens = [], nEvenIdx = 0; // Stripe a subset if((row !== null) && (row !== undefined)) { // Validate ...
[ "function", "(", "row", ",", "range", ")", "{", "// Default values stripe all rows", "var", "allRows", "=", "this", ".", "_elTbody", ".", "rows", ",", "nStartIndex", "=", "0", ",", "nEndIndex", "=", "allRows", ".", "length", ",", "aOdds", "=", "[", "]", ...
Assigns the classes DT.CLASS_EVEN and DT.CLASS_ODD to one, many, or all TR elements. @method _setRowStripes @param row {HTMLElement | String | Number} (optional) HTML TR element reference or string ID, or page row index of where to start striping. @param range {Number} (optional) If given, how many rows to stripe, oth...
[ "Assigns", "the", "classes", "DT", ".", "CLASS_EVEN", "and", "DT", ".", "CLASS_ODD", "to", "one", "many", "or", "all", "TR", "elements", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5603-L5640
42,506
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { // Keep track of selected rows var allSelectedRows = this.getSelectedRows(); // Keep track of selected cells var allSelectedCells = this.getSelectedCells(); // Anything to select? if((allSelectedRows.length>0) || (allSelectedCells.length > 0)) { var oColumnSet = this._oColum...
javascript
function() { // Keep track of selected rows var allSelectedRows = this.getSelectedRows(); // Keep track of selected cells var allSelectedCells = this.getSelectedCells(); // Anything to select? if((allSelectedRows.length>0) || (allSelectedCells.length > 0)) { var oColumnSet = this._oColum...
[ "function", "(", ")", "{", "// Keep track of selected rows", "var", "allSelectedRows", "=", "this", ".", "getSelectedRows", "(", ")", ";", "// Keep track of selected cells", "var", "allSelectedCells", "=", "this", ".", "getSelectedCells", "(", ")", ";", "// Anything t...
Assigns the class DT.CLASS_SELECTED to TR and TD elements. @method _setSelections @private
[ "Assigns", "the", "class", "DT", ".", "CLASS_SELECTED", "to", "TR", "and", "TD", "elements", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5648-L5672
42,507
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e, oSelf) { var elTarget = Ev.getTarget(e); var elTag = elTarget.nodeName.toLowerCase(); if(!Dom.isAncestor(oSelf._elContainer, elTarget)) { oSelf.fireEvent("tableBlurEvent"); // Fires editorBlurEvent when click is not within the TABLE. // For cases when click is within th...
javascript
function(e, oSelf) { var elTarget = Ev.getTarget(e); var elTag = elTarget.nodeName.toLowerCase(); if(!Dom.isAncestor(oSelf._elContainer, elTarget)) { oSelf.fireEvent("tableBlurEvent"); // Fires editorBlurEvent when click is not within the TABLE. // For cases when click is within th...
[ "function", "(", "e", ",", "oSelf", ")", "{", "var", "elTarget", "=", "Ev", ".", "getTarget", "(", "e", ")", ";", "var", "elTag", "=", "elTarget", ".", "nodeName", ".", "toLowerCase", "(", ")", ";", "if", "(", "!", "Dom", ".", "isAncestor", "(", ...
Handles click events on the DOCUMENT. @method _onDocumentClick @param e {HTMLEvent} The click event. @param oSelf {YAHOO.wiget.DataTable} DataTable instance. @private
[ "Handles", "click", "events", "on", "the", "DOCUMENT", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5775-L5805
42,508
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e, oSelf) { var elTarget = Ev.getTarget(e); var elTag = elTarget.nodeName.toLowerCase(); var bKeepBubbling = true; while(elTarget && (elTag != "table")) { switch(elTag) { case "body": return; case "a": ...
javascript
function(e, oSelf) { var elTarget = Ev.getTarget(e); var elTag = elTarget.nodeName.toLowerCase(); var bKeepBubbling = true; while(elTarget && (elTag != "table")) { switch(elTag) { case "body": return; case "a": ...
[ "function", "(", "e", ",", "oSelf", ")", "{", "var", "elTarget", "=", "Ev", ".", "getTarget", "(", "e", ")", ";", "var", "elTag", "=", "elTarget", ".", "nodeName", ".", "toLowerCase", "(", ")", ";", "var", "bKeepBubbling", "=", "true", ";", "while", ...
Handles mouseover events on the DataTable instance. @method _onTableMouseover @param e {HTMLEvent} The mouseover event. @param oSelf {YAHOO.wiget.DataTable} DataTable instance. @private
[ "Handles", "mouseover", "events", "on", "the", "DataTable", "instance", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L5853-L5902
42,509
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e, oSelf) { var sMode = oSelf.get("selectionMode"); if(sMode == "standard") { oSelf._handleStandardSelectionByKey(e); } else if(sMode == "single") { oSelf._handleSingleSelectionByKey(e); } else if(sMode == "cellblock") { oSelf._handleCellBlockSelectionByKey(e); ...
javascript
function(e, oSelf) { var sMode = oSelf.get("selectionMode"); if(sMode == "standard") { oSelf._handleStandardSelectionByKey(e); } else if(sMode == "single") { oSelf._handleSingleSelectionByKey(e); } else if(sMode == "cellblock") { oSelf._handleCellBlockSelectionByKey(e); ...
[ "function", "(", "e", ",", "oSelf", ")", "{", "var", "sMode", "=", "oSelf", ".", "get", "(", "\"selectionMode\"", ")", ";", "if", "(", "sMode", "==", "\"standard\"", ")", "{", "oSelf", ".", "_handleStandardSelectionByKey", "(", "e", ")", ";", "}", "els...
Handles keydown events on the TBODY element. Handles selection behavior, provides hooks for ENTER to edit functionality. @method _onTbodyKeydown @param e {HTMLEvent} The key event. @param oSelf {YAHOO.wiget.DataTable} DataTable instance. @private
[ "Handles", "keydown", "events", "on", "the", "TBODY", "element", ".", "Handles", "selection", "behavior", "provides", "hooks", "for", "ENTER", "to", "edit", "functionality", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L6185-L6237
42,510
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e, oSelf) { if(ua.opera || (navigator.userAgent.toLowerCase().indexOf("mac") !== -1) && (ua.webkit < 420)) { var nKey = Ev.getCharCode(e); // arrow down if(nKey == 40) { Ev.stopEvent(e); } // arrow up else if(nKey == 38) { Ev.stopEvent...
javascript
function(e, oSelf) { if(ua.opera || (navigator.userAgent.toLowerCase().indexOf("mac") !== -1) && (ua.webkit < 420)) { var nKey = Ev.getCharCode(e); // arrow down if(nKey == 40) { Ev.stopEvent(e); } // arrow up else if(nKey == 38) { Ev.stopEvent...
[ "function", "(", "e", ",", "oSelf", ")", "{", "if", "(", "ua", ".", "opera", "||", "(", "navigator", ".", "userAgent", ".", "toLowerCase", "(", ")", ".", "indexOf", "(", "\"mac\"", ")", "!==", "-", "1", ")", "&&", "(", "ua", ".", "webkit", "<", ...
Handles keypress events on the TABLE. Mainly to support stopEvent on Mac. @method _onTableKeypress @param e {HTMLEvent} The key event. @param oSelf {YAHOO.wiget.DataTable} DataTable instance. @private
[ "Handles", "keypress", "events", "on", "the", "TABLE", ".", "Mainly", "to", "support", "stopEvent", "on", "Mac", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L6247-L6259
42,511
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e, oSelf) { // This blurs the CellEditor if(oSelf._oCellEditor) { if(oSelf._oCellEditor.fireEvent) { oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor}); } // Backward compatibility else if(oSelf._oCellEditor.isActive) { oSelf....
javascript
function(e, oSelf) { // This blurs the CellEditor if(oSelf._oCellEditor) { if(oSelf._oCellEditor.fireEvent) { oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor}); } // Backward compatibility else if(oSelf._oCellEditor.isActive) { oSelf....
[ "function", "(", "e", ",", "oSelf", ")", "{", "// This blurs the CellEditor", "if", "(", "oSelf", ".", "_oCellEditor", ")", "{", "if", "(", "oSelf", ".", "_oCellEditor", ".", "fireEvent", ")", "{", "oSelf", ".", "_oCellEditor", ".", "fireEvent", "(", "\"bl...
Handles click events on the THEAD element. @method _onTheadClick @param e {HTMLEvent} The click event. @param oSelf {YAHOO.wiget.DataTable} DataTable instance. @private
[ "Handles", "click", "events", "on", "the", "THEAD", "element", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L6269-L6337
42,512
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e, oSelf) { var elTarget = Ev.getTarget(e); oSelf.fireEvent("dropdownChangeEvent", {event:e, target:elTarget}); }
javascript
function(e, oSelf) { var elTarget = Ev.getTarget(e); oSelf.fireEvent("dropdownChangeEvent", {event:e, target:elTarget}); }
[ "function", "(", "e", ",", "oSelf", ")", "{", "var", "elTarget", "=", "Ev", ".", "getTarget", "(", "e", ")", ";", "oSelf", ".", "fireEvent", "(", "\"dropdownChangeEvent\"", ",", "{", "event", ":", "e", ",", "target", ":", "elTarget", "}", ")", ";", ...
Handles change events on SELECT elements within DataTable. @method _onDropdownChange @param e {HTMLEvent} The change event. @param oSelf {YAHOO.wiget.DataTable} DataTable instance. @private
[ "Handles", "change", "events", "on", "SELECT", "elements", "within", "DataTable", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L6414-L6417
42,513
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(row) { // By Record if(row instanceof YAHOO.widget.Record) { return document.getElementById(row.getId()); } // By page row index else if(lang.isNumber(row)) { var allRows = this._elTbody.rows; return ((row > -1) && (row < allRows.length)) ? allRows[row] : null; }...
javascript
function(row) { // By Record if(row instanceof YAHOO.widget.Record) { return document.getElementById(row.getId()); } // By page row index else if(lang.isNumber(row)) { var allRows = this._elTbody.rows; return ((row > -1) && (row < allRows.length)) ? allRows[row] : null; }...
[ "function", "(", "row", ")", "{", "// By Record", "if", "(", "row", "instanceof", "YAHOO", ".", "widget", ".", "Record", ")", "{", "return", "document", ".", "getElementById", "(", "row", ".", "getId", "(", ")", ")", ";", "}", "// By page row index", "el...
Returns the corresponding TR reference for a given DOM element, ID string or directly page row index. If the given identifier is a child of a TR element, then DOM tree is traversed until a parent TR element is returned, otherwise null. @method getTrEl @param row {HTMLElement | String | Number | YAHOO.widget.Record} Wh...
[ "Returns", "the", "corresponding", "TR", "reference", "for", "a", "given", "DOM", "element", "ID", "string", "or", "directly", "page", "row", "index", ".", "If", "the", "given", "identifier", "is", "a", "child", "of", "a", "TR", "element", "then", "DOM", ...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L6678-L6705
42,514
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(cell) { var elCell; var el = Dom.get(cell); // Validate HTML element if(el && (el.ownerDocument == document)) { // Validate TD element if(el.nodeName.toLowerCase() != "td") { // Traverse up the DOM to find the corresponding TR element elCell = Dom.getAnc...
javascript
function(cell) { var elCell; var el = Dom.get(cell); // Validate HTML element if(el && (el.ownerDocument == document)) { // Validate TD element if(el.nodeName.toLowerCase() != "td") { // Traverse up the DOM to find the corresponding TR element elCell = Dom.getAnc...
[ "function", "(", "cell", ")", "{", "var", "elCell", ";", "var", "el", "=", "Dom", ".", "get", "(", "cell", ")", ";", "// Validate HTML element", "if", "(", "el", "&&", "(", "el", ".", "ownerDocument", "==", "document", ")", ")", "{", "// Validate TD el...
Returns DOM reference to a TD element. @method getTdEl @param cell {HTMLElement | String | Object} TD element or child of a TD element, or object literal of syntax {record:oRecord, column:oColumn}. @return {HTMLElement} Reference to TD element.
[ "Returns", "DOM", "reference", "to", "a", "TD", "element", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L6791-L6835
42,515
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(cell) { var elCell = this.getTdEl(cell); if(elCell) { var nThisTdIndex = elCell.cellIndex; var elRow = this.getTrEl(elCell); if(nThisTdIndex < elRow.cells.length-1) { return elRow.cells[nThisTdIndex+1]; } else { var elNextRow = this.getNex...
javascript
function(cell) { var elCell = this.getTdEl(cell); if(elCell) { var nThisTdIndex = elCell.cellIndex; var elRow = this.getTrEl(elCell); if(nThisTdIndex < elRow.cells.length-1) { return elRow.cells[nThisTdIndex+1]; } else { var elNextRow = this.getNex...
[ "function", "(", "cell", ")", "{", "var", "elCell", "=", "this", ".", "getTdEl", "(", "cell", ")", ";", "if", "(", "elCell", ")", "{", "var", "nThisTdIndex", "=", "elCell", ".", "cellIndex", ";", "var", "elRow", "=", "this", ".", "getTrEl", "(", "e...
Returns DOM reference to the next TD element from the given cell, or null. @method getNextTdEl @param cell {HTMLElement | String | Object} DOM element reference or string ID, or object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element. @return {HTMLElement} Reference to next TD eleme...
[ "Returns", "DOM", "reference", "to", "the", "next", "TD", "element", "from", "the", "given", "cell", "or", "null", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L6876-L6892
42,516
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(theadCell) { var elTh; // Validate Column instance if(theadCell instanceof YAHOO.widget.Column) { var oColumn = theadCell; elTh = oColumn.getThEl(); if(elTh) { return elTh; } } // Validate HTML element else { var el = Dom.get(theadCel...
javascript
function(theadCell) { var elTh; // Validate Column instance if(theadCell instanceof YAHOO.widget.Column) { var oColumn = theadCell; elTh = oColumn.getThEl(); if(elTh) { return elTh; } } // Validate HTML element else { var el = Dom.get(theadCel...
[ "function", "(", "theadCell", ")", "{", "var", "elTh", ";", "// Validate Column instance", "if", "(", "theadCell", "instanceof", "YAHOO", ".", "widget", ".", "Column", ")", "{", "var", "oColumn", "=", "theadCell", ";", "elTh", "=", "oColumn", ".", "getThEl",...
Returns DOM reference to a TH element. @method getThEl @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance, DOM element reference, or string ID. @return {HTMLElement} Reference to TH element.
[ "Returns", "DOM", "reference", "to", "a", "TH", "element", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L6981-L7011
42,517
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(row) { var nRecordIndex; // By Record if(row instanceof YAHOO.widget.Record) { nRecordIndex = this._oRecordSet.getRecordIndex(row); if(nRecordIndex === null) { // Not a valid Record return null; } } // Calculate page row index from Record ind...
javascript
function(row) { var nRecordIndex; // By Record if(row instanceof YAHOO.widget.Record) { nRecordIndex = this._oRecordSet.getRecordIndex(row); if(nRecordIndex === null) { // Not a valid Record return null; } } // Calculate page row index from Record ind...
[ "function", "(", "row", ")", "{", "var", "nRecordIndex", ";", "// By Record", "if", "(", "row", "instanceof", "YAHOO", ".", "widget", ".", "Record", ")", "{", "nRecordIndex", "=", "this", ".", "_oRecordSet", ".", "getRecordIndex", "(", "row", ")", ";", "...
Returns the page row index of given row. Returns null if the row is not on the current DataTable page. @method getTrIndex @param row {HTMLElement | String | YAHOO.widget.Record | Number} DOM or ID string reference to an element within the DataTable page, a Record instance, or a Record's RecordSet index. @return {Numbe...
[ "Returns", "the", "page", "row", "index", "of", "given", "row", ".", "Returns", "null", "if", "the", "row", "is", "not", "on", "the", "current", "DataTable", "page", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L7023-L7077
42,518
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { // Reset init flag this._bInit = true; // Clear the RecordSet this._oRecordSet.reset(); // Clear the Paginator's totalRecords if paginating var pag = this.get('paginator'); if (pag) { pag.set('totalRecords',0); } // Clear selections this._unselectAllTr...
javascript
function() { // Reset init flag this._bInit = true; // Clear the RecordSet this._oRecordSet.reset(); // Clear the Paginator's totalRecords if paginating var pag = this.get('paginator'); if (pag) { pag.set('totalRecords',0); } // Clear selections this._unselectAllTr...
[ "function", "(", ")", "{", "// Reset init flag", "this", ".", "_bInit", "=", "true", ";", "// Clear the RecordSet", "this", ".", "_oRecordSet", ".", "reset", "(", ")", ";", "// Clear the Paginator's totalRecords if paginating", "var", "pag", "=", "this", ".", "get...
TABLE FUNCTIONS Resets a RecordSet with the given data and populates the page view with the new data. Any previous data, and selection and sort states are cleared. New data should be added as a separate step. @method initializeTable
[ "TABLE", "FUNCTIONS", "Resets", "a", "RecordSet", "with", "the", "given", "data", "and", "populates", "the", "page", "view", "with", "the", "new", "data", ".", "Any", "previous", "data", "and", "selection", "and", "sort", "states", "are", "cleared", ".", "...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L7133-L7155
42,519
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var elTable = this._elTable; var elMask = this._elMask; elMask.style.width = elTable.offsetWidth + "px"; elMask.style.height = elTable.offsetHeight + "px"; elMask.style.display = ""; this.fireEvent("disableEvent"); }
javascript
function() { var elTable = this._elTable; var elMask = this._elMask; elMask.style.width = elTable.offsetWidth + "px"; elMask.style.height = elTable.offsetHeight + "px"; elMask.style.display = ""; this.fireEvent("disableEvent"); }
[ "function", "(", ")", "{", "var", "elTable", "=", "this", ".", "_elTable", ";", "var", "elMask", "=", "this", ".", "_elMask", ";", "elMask", ".", "style", ".", "width", "=", "elTable", ".", "offsetWidth", "+", "\"px\"", ";", "elMask", ".", "style", "...
Disables DataTable UI. @method disable
[ "Disables", "DataTable", "UI", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L7299-L7306
42,520
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(row) { var nTrIndex; if(!lang.isNumber(row)) { // By Record if(row instanceof YAHOO.widget.Record) { return this._oRecordSet.getRecordIndex(row); } // By element reference else { // Find the TR element var el = this.getTrEl(ro...
javascript
function(row) { var nTrIndex; if(!lang.isNumber(row)) { // By Record if(row instanceof YAHOO.widget.Record) { return this._oRecordSet.getRecordIndex(row); } // By element reference else { // Find the TR element var el = this.getTrEl(ro...
[ "function", "(", "row", ")", "{", "var", "nTrIndex", ";", "if", "(", "!", "lang", ".", "isNumber", "(", "row", ")", ")", "{", "// By Record", "if", "(", "row", "instanceof", "YAHOO", ".", "widget", ".", "Record", ")", "{", "return", "this", ".", "_...
RECORDSET FUNCTIONS Returns Record index for given TR element or page row index. @method getRecordIndex @param row {YAHOO.widget.Record | HTMLElement | Number} Record instance, TR element reference or page row index. @return {Number} Record's RecordSet index, or null.
[ "RECORDSET", "FUNCTIONS", "Returns", "Record", "index", "for", "given", "TR", "element", "or", "page", "row", "index", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L7536-L7569
42,521
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(row) { var oRecord = this._oRecordSet.getRecord(row); if(!oRecord) { // Validate TR element var elRow = this.getTrEl(row); if(elRow) { oRecord = this._oRecordSet.getRecord(elRow.id); } } if(oRecord instanceof YAHOO.widget.Record) { return th...
javascript
function(row) { var oRecord = this._oRecordSet.getRecord(row); if(!oRecord) { // Validate TR element var elRow = this.getTrEl(row); if(elRow) { oRecord = this._oRecordSet.getRecord(elRow.id); } } if(oRecord instanceof YAHOO.widget.Record) { return th...
[ "function", "(", "row", ")", "{", "var", "oRecord", "=", "this", ".", "_oRecordSet", ".", "getRecord", "(", "row", ")", ";", "if", "(", "!", "oRecord", ")", "{", "// Validate TR element", "var", "elRow", "=", "this", ".", "getTrEl", "(", "row", ")", ...
For the given identifier, returns the associated Record instance. @method getRecord @param row {HTMLElement | Number | String} DOM reference to a TR element (or child of a TR element), RecordSet position index, or Record ID. @return {YAHOO.widget.Record} Record instance.
[ "For", "the", "given", "identifier", "returns", "the", "associated", "Record", "instance", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L7579-L7596
42,522
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oColumn, oSortedBy) { // Backward compatibility if(oColumn.sortOptions && oColumn.sortOptions.defaultOrder) { if(oColumn.sortOptions.defaultOrder == "asc") { oColumn.sortOptions.defaultDir = DT.CLASS_ASC; } else if (oColumn.sortOptions.defaultOrder == "desc") { ...
javascript
function(oColumn, oSortedBy) { // Backward compatibility if(oColumn.sortOptions && oColumn.sortOptions.defaultOrder) { if(oColumn.sortOptions.defaultOrder == "asc") { oColumn.sortOptions.defaultDir = DT.CLASS_ASC; } else if (oColumn.sortOptions.defaultOrder == "desc") { ...
[ "function", "(", "oColumn", ",", "oSortedBy", ")", "{", "// Backward compatibility", "if", "(", "oColumn", ".", "sortOptions", "&&", "oColumn", ".", "sortOptions", ".", "defaultOrder", ")", "{", "if", "(", "oColumn", ".", "sortOptions", ".", "defaultOrder", "=...
For the given Column instance, returns next direction to sort. @method getColumnSortDir @param oColumn {YAHOO.widget.Column} Column instance. @param oSortedBy {Object} (optional) Specify the state, or use current state. @return {String} YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTableCLASS_DESC.
[ "For", "the", "given", "Column", "instance", "returns", "next", "direction", "to", "sort", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L7702-L7729
42,523
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oColumn) { if(oColumn.getKeyIndex() !== null) { this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = ''; } }
javascript
function(oColumn) { if(oColumn.getKeyIndex() !== null) { this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = ''; } }
[ "function", "(", "oColumn", ")", "{", "if", "(", "oColumn", ".", "getKeyIndex", "(", ")", "!==", "null", ")", "{", "this", ".", "_elColgroup", ".", "childNodes", "[", "oColumn", ".", "getKeyIndex", "(", ")", "]", ".", "style", ".", "width", "=", "''"...
Clears minWidth. @method _clearMinWidth @param oColumn {YAHOO.widget.Column} Which Column. @private
[ "Clears", "minWidth", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L8138-L8142
42,524
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oColumn) { var selectedColumns = []; var aKeys = this._oColumnSet.keys; for(var i=0,len=aKeys.length; i<len; i++) { if(aKeys[i].selected) { selectedColumns[selectedColumns.length] = aKeys[i]; } } return selectedColumns; }
javascript
function(oColumn) { var selectedColumns = []; var aKeys = this._oColumnSet.keys; for(var i=0,len=aKeys.length; i<len; i++) { if(aKeys[i].selected) { selectedColumns[selectedColumns.length] = aKeys[i]; } } return selectedColumns; }
[ "function", "(", "oColumn", ")", "{", "var", "selectedColumns", "=", "[", "]", ";", "var", "aKeys", "=", "this", ".", "_oColumnSet", ".", "keys", ";", "for", "(", "var", "i", "=", "0", ",", "len", "=", "aKeys", ".", "length", ";", "i", "<", "len"...
Returns an array selected Column instances. @method getSelectedColumns @return {YAHOO.widget.Column[]} Array of Column instances.
[ "Returns", "an", "array", "selected", "Column", "instances", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L8684-L8693
42,525
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oData, index) { if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) { return; } if(oData && lang.isObject(oData)) { var oRecord = this._oRecordSet.addRecord(oData, index); if(oRecord) { var recIndex; var oPaginator = this....
javascript
function(oData, index) { if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) { return; } if(oData && lang.isObject(oData)) { var oRecord = this._oRecordSet.addRecord(oData, index); if(oRecord) { var recIndex; var oPaginator = this....
[ "function", "(", "oData", ",", "index", ")", "{", "if", "(", "lang", ".", "isNumber", "(", "index", ")", "&&", "(", "index", "<", "0", "||", "index", ">", "this", ".", "_oRecordSet", ".", "getLength", "(", ")", ")", ")", "{", "return", ";", "}", ...
ROW FUNCTIONS Adds one new Record of data into the RecordSet at the index if given, otherwise at the end. If the new Record is in page view, the corresponding DOM elements are also updated. @method addRow @param oData {Object} Object literal of data for the row. @param index {Number} (optional) RecordSet position ind...
[ "ROW", "FUNCTIONS", "Adds", "one", "new", "Record", "of", "data", "into", "the", "RecordSet", "at", "the", "index", "if", "given", "otherwise", "at", "the", "end", ".", "If", "the", "new", "Record", "is", "in", "page", "view", "the", "corresponding", "DO...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L8833-L8905
42,526
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function (e) { if (e.prevValue === e.newValue) { return; } var newPag = e.newValue, oldPag = e.prevValue, containers = this._defaultPaginatorContainers(); if (oldPag) { if (oldPag.getContainerNodes()[0] == containers[0]) { oldPag.set('containers',[]); } ...
javascript
function (e) { if (e.prevValue === e.newValue) { return; } var newPag = e.newValue, oldPag = e.prevValue, containers = this._defaultPaginatorContainers(); if (oldPag) { if (oldPag.getContainerNodes()[0] == containers[0]) { oldPag.set('containers',[]); } ...
[ "function", "(", "e", ")", "{", "if", "(", "e", ".", "prevValue", "===", "e", ".", "newValue", ")", "{", "return", ";", "}", "var", "newPag", "=", "e", ".", "newValue", ",", "oldPag", "=", "e", ".", "prevValue", ",", "containers", "=", "this", "....
Update the UI infrastructure in response to a "paginator" attribute change. @method _handlePaginatorChange @param e {Object} Change event object containing keys 'type','newValue', and 'prevValue' @private
[ "Update", "the", "UI", "infrastructure", "in", "response", "to", "a", "paginator", "attribute", "change", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L9631-L9670
42,527
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function (create) { var above_id = this._sId + '-paginator0', below_id = this._sId + '-paginator1', above = Dom.get(above_id), below = Dom.get(below_id); if (create && (!above || !below)) { // One above and one below the table if (!above) { above = d...
javascript
function (create) { var above_id = this._sId + '-paginator0', below_id = this._sId + '-paginator1', above = Dom.get(above_id), below = Dom.get(below_id); if (create && (!above || !below)) { // One above and one below the table if (!above) { above = d...
[ "function", "(", "create", ")", "{", "var", "above_id", "=", "this", ".", "_sId", "+", "'-paginator0'", ",", "below_id", "=", "this", ".", "_sId", "+", "'-paginator1'", ",", "above", "=", "Dom", ".", "get", "(", "above_id", ")", ",", "below", "=", "D...
Returns the default containers used for Paginators. If create param is passed, the containers will be created and added to the DataTable container. @method _defaultPaginatorContainers @param create {boolean} Create the default containers if not found @private
[ "Returns", "the", "default", "containers", "used", "for", "Paginators", ".", "If", "create", "param", "is", "passed", "the", "containers", "will", "be", "created", "and", "added", "to", "the", "DataTable", "container", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L9680-L9706
42,528
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function () { var pag = this.get("paginator"); if (!pag) { return; } // Add the containers if the Paginator is not configured with containers if (!pag.getContainerNodes().length) { pag.set('containers',this._defaultPaginatorContainers(true)); } pag.render(); }
javascript
function () { var pag = this.get("paginator"); if (!pag) { return; } // Add the containers if the Paginator is not configured with containers if (!pag.getContainerNodes().length) { pag.set('containers',this._defaultPaginatorContainers(true)); } pag.render(); }
[ "function", "(", ")", "{", "var", "pag", "=", "this", ".", "get", "(", "\"paginator\"", ")", ";", "if", "(", "!", "pag", ")", "{", "return", ";", "}", "// Add the containers if the Paginator is not configured with containers", "if", "(", "!", "pag", ".", "ge...
Renders the Paginator to the DataTable UI @method renderPaginator
[ "Renders", "the", "Paginator", "to", "the", "DataTable", "UI" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L9726-L9736
42,529
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var selectedRows = Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody); Dom.removeClass(selectedRows, DT.CLASS_SELECTED); }
javascript
function() { var selectedRows = Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody); Dom.removeClass(selectedRows, DT.CLASS_SELECTED); }
[ "function", "(", ")", "{", "var", "selectedRows", "=", "Dom", ".", "getElementsByClassName", "(", "DT", ".", "CLASS_SELECTED", ",", "\"tr\"", ",", "this", ".", "_elTbody", ")", ";", "Dom", ".", "removeClass", "(", "selectedRows", ",", "DT", ".", "CLASS_SEL...
Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED from all TR elements on the page. @method _unselectAllTrEls @private
[ "Convenience", "method", "to", "remove", "the", "class", "YAHOO", ".", "widget", ".", "DataTable", ".", "CLASS_SELECTED", "from", "all", "TR", "elements", "on", "the", "page", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L9907-L9910
42,530
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var sMode = this.get("selectionMode"); var oTrigger = {}; var oTriggerCell, oTriggerRecord, nTriggerRecordIndex, elTriggerRow, nTriggerTrIndex; // Cell mode if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) { oTriggerCell = this.getLastSelectedCell...
javascript
function() { var sMode = this.get("selectionMode"); var oTrigger = {}; var oTriggerCell, oTriggerRecord, nTriggerRecordIndex, elTriggerRow, nTriggerTrIndex; // Cell mode if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) { oTriggerCell = this.getLastSelectedCell...
[ "function", "(", ")", "{", "var", "sMode", "=", "this", ".", "get", "(", "\"selectionMode\"", ")", ";", "var", "oTrigger", "=", "{", "}", ";", "var", "oTriggerCell", ",", "oTriggerRecord", ",", "nTriggerRecordIndex", ",", "elTriggerRow", ",", "nTriggerTrInde...
Returns object literal of values that represent the selection trigger. Used to determine selection behavior resulting from a key event. @method _getSelectionTrigger @private
[ "Returns", "object", "literal", "of", "values", "that", "represent", "the", "selection", "trigger", ".", "Used", "to", "determine", "selection", "behavior", "resulting", "from", "a", "key", "event", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L9919-L9980
42,531
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oTrigger) { var sMode = this.get("selectionMode"); var oAnchor = {}; var oAnchorRecord, nAnchorRecordIndex, nAnchorTrIndex; // Cell mode if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) { // Validate anchor cell var oAnchorCell = this._oAnchor...
javascript
function(oTrigger) { var sMode = this.get("selectionMode"); var oAnchor = {}; var oAnchorRecord, nAnchorRecordIndex, nAnchorTrIndex; // Cell mode if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) { // Validate anchor cell var oAnchorCell = this._oAnchor...
[ "function", "(", "oTrigger", ")", "{", "var", "sMode", "=", "this", ".", "get", "(", "\"selectionMode\"", ")", ";", "var", "oAnchor", "=", "{", "}", ";", "var", "oAnchorRecord", ",", "nAnchorRecordIndex", ",", "nAnchorTrIndex", ";", "// Cell mode", "if", "...
Returns object literal of values that represent the selection anchor. Used to determine selection behavior resulting from a user event. @method _getSelectionAnchor @param oTrigger {Object} (Optional) Object literal of selection trigger values (for key events). @private
[ "Returns", "object", "literal", "of", "values", "that", "represent", "the", "selection", "anchor", ".", "Used", "to", "determine", "selection", "behavior", "resulting", "from", "a", "user", "event", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L9991-L10062
42,532
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { var elTarget = oArgs.target; // Validate target row var elTargetRow = this.getTrEl(elTarget); if(elTargetRow) { var e = oArgs.event; var bSHIFT = e.shiftKey; var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey); ...
javascript
function(oArgs) { var elTarget = oArgs.target; // Validate target row var elTargetRow = this.getTrEl(elTarget); if(elTargetRow) { var e = oArgs.event; var bSHIFT = e.shiftKey; var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey); ...
[ "function", "(", "oArgs", ")", "{", "var", "elTarget", "=", "oArgs", ".", "target", ";", "// Validate target row", "var", "elTargetRow", "=", "this", ".", "getTrEl", "(", "elTarget", ")", ";", "if", "(", "elTargetRow", ")", "{", "var", "e", "=", "oArgs",...
Determines selection behavior resulting from a mouse event when selection mode is set to "standard". @method _handleStandardSelectionByMouse @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element. @private
[ "Determines", "selection", "behavior", "resulting", "from", "a", "mouse", "event", "when", "selection", "mode", "is", "set", "to", "standard", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L10073-L10196
42,533
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e) { var nKey = Ev.getCharCode(e); if((nKey == 38) || (nKey == 40)) { var bSHIFT = e.shiftKey; // Validate trigger var oTrigger = this._getSelectionTrigger(); // Arrow selection only works if last selected row is on current page if(!oTrigger) { retu...
javascript
function(e) { var nKey = Ev.getCharCode(e); if((nKey == 38) || (nKey == 40)) { var bSHIFT = e.shiftKey; // Validate trigger var oTrigger = this._getSelectionTrigger(); // Arrow selection only works if last selected row is on current page if(!oTrigger) { retu...
[ "function", "(", "e", ")", "{", "var", "nKey", "=", "Ev", ".", "getCharCode", "(", "e", ")", ";", "if", "(", "(", "nKey", "==", "38", ")", "||", "(", "nKey", "==", "40", ")", ")", "{", "var", "bSHIFT", "=", "e", ".", "shiftKey", ";", "// Vali...
Determines selection behavior resulting from a key event when selection mode is set to "standard". @method _handleStandardSelectionByKey @param e {HTMLEvent} Event object. @private
[ "Determines", "selection", "behavior", "resulting", "from", "a", "key", "event", "when", "selection", "mode", "is", "set", "to", "standard", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L10206-L10243
42,534
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { var elTarget = oArgs.target; // Validate target row var elTargetRow = this.getTrEl(elTarget); if(elTargetRow) { var oTargetRecord = this.getRecord(elTargetRow); // Set anchor this._oAnchorRecord = oTargetRecord; // Select only target this.unse...
javascript
function(oArgs) { var elTarget = oArgs.target; // Validate target row var elTargetRow = this.getTrEl(elTarget); if(elTargetRow) { var oTargetRecord = this.getRecord(elTargetRow); // Set anchor this._oAnchorRecord = oTargetRecord; // Select only target this.unse...
[ "function", "(", "oArgs", ")", "{", "var", "elTarget", "=", "oArgs", ".", "target", ";", "// Validate target row", "var", "elTargetRow", "=", "this", ".", "getTrEl", "(", "elTarget", ")", ";", "if", "(", "elTargetRow", ")", "{", "var", "oTargetRecord", "="...
Determines selection behavior resulting from a mouse event when selection mode is set to "single". @method _handleSingleSelectionByMouse @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element. @private
[ "Determines", "selection", "behavior", "resulting", "from", "a", "mouse", "event", "when", "selection", "mode", "is", "set", "to", "single", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L10254-L10269
42,535
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e) { var nKey = Ev.getCharCode(e); if((nKey == 38) || (nKey == 40)) { // Validate trigger var oTrigger = this._getSelectionTrigger(); // Arrow selection only works if last selected row is on current page if(!oTrigger) { return null; } Ev.sto...
javascript
function(e) { var nKey = Ev.getCharCode(e); if((nKey == 38) || (nKey == 40)) { // Validate trigger var oTrigger = this._getSelectionTrigger(); // Arrow selection only works if last selected row is on current page if(!oTrigger) { return null; } Ev.sto...
[ "function", "(", "e", ")", "{", "var", "nKey", "=", "Ev", ".", "getCharCode", "(", "e", ")", ";", "if", "(", "(", "nKey", "==", "38", ")", "||", "(", "nKey", "==", "40", ")", ")", "{", "// Validate trigger", "var", "oTrigger", "=", "this", ".", ...
Determines selection behavior resulting from a key event when selection mode is set to "single". @method _handleSingleSelectionByKey @param e {HTMLEvent} Event object. @private
[ "Determines", "selection", "behavior", "resulting", "from", "a", "key", "event", "when", "selection", "mode", "is", "set", "to", "single", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L10279-L10332
42,536
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { var elTarget = oArgs.target; // Validate target cell var elTargetCell = this.getTdEl(elTarget); if(elTargetCell) { var elTargetRow = this.getTrEl(elTargetCell); var oTargetRecord = this.getRecord(elTargetRow); var oTargetColumn = this.getColumn(elTargetCell); ...
javascript
function(oArgs) { var elTarget = oArgs.target; // Validate target cell var elTargetCell = this.getTdEl(elTarget); if(elTargetCell) { var elTargetRow = this.getTrEl(elTargetCell); var oTargetRecord = this.getRecord(elTargetRow); var oTargetColumn = this.getColumn(elTargetCell); ...
[ "function", "(", "oArgs", ")", "{", "var", "elTarget", "=", "oArgs", ".", "target", ";", "// Validate target cell", "var", "elTargetCell", "=", "this", ".", "getTdEl", "(", "elTarget", ")", ";", "if", "(", "elTargetCell", ")", "{", "var", "elTargetRow", "=...
Determines selection behavior resulting from a mouse event when selection mode is set to "singlecell". @method _handleSingleCellSelectionByMouse @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element. @private
[ "Determines", "selection", "behavior", "resulting", "from", "a", "mouse", "event", "when", "selection", "mode", "is", "set", "to", "singlecell", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11272-L11290
42,537
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(e) { var nKey = Ev.getCharCode(e); if((nKey == 9) || ((nKey > 36) && (nKey < 41))) { var bSHIFT = e.shiftKey; // Validate trigger var oTrigger = this._getSelectionTrigger(); // Arrow selection only works if last selected row is on current page if(!oTrigger) { ...
javascript
function(e) { var nKey = Ev.getCharCode(e); if((nKey == 9) || ((nKey > 36) && (nKey < 41))) { var bSHIFT = e.shiftKey; // Validate trigger var oTrigger = this._getSelectionTrigger(); // Arrow selection only works if last selected row is on current page if(!oTrigger) { ...
[ "function", "(", "e", ")", "{", "var", "nKey", "=", "Ev", ".", "getCharCode", "(", "e", ")", ";", "if", "(", "(", "nKey", "==", "9", ")", "||", "(", "(", "nKey", ">", "36", ")", "&&", "(", "nKey", "<", "41", ")", ")", ")", "{", "var", "bS...
Determines selection behavior resulting from a key event when selection mode is set to "singlecell". @method _handleSingleCellSelectionByKey @param e {HTMLEvent} Event object. @private
[ "Determines", "selection", "behavior", "resulting", "from", "a", "key", "event", "when", "selection", "mode", "is", "set", "to", "singlecell", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11300-L11380
42,538
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(row) { var oRecord, elRow; if(row instanceof YAHOO.widget.Record) { oRecord = this._oRecordSet.getRecord(row); elRow = this.getTrEl(oRecord); } else if(lang.isNumber(row)) { oRecord = this.getRecord(row); elRow = this.getTrEl(oRecord); } else { e...
javascript
function(row) { var oRecord, elRow; if(row instanceof YAHOO.widget.Record) { oRecord = this._oRecordSet.getRecord(row); elRow = this.getTrEl(oRecord); } else if(lang.isNumber(row)) { oRecord = this.getRecord(row); elRow = this.getTrEl(oRecord); } else { e...
[ "function", "(", "row", ")", "{", "var", "oRecord", ",", "elRow", ";", "if", "(", "row", "instanceof", "YAHOO", ".", "widget", ".", "Record", ")", "{", "oRecord", "=", "this", ".", "_oRecordSet", ".", "getRecord", "(", "row", ")", ";", "elRow", "=", ...
Sets given row to the selected state. @method selectRow @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element reference or ID string, Record instance, or RecordSet position index.
[ "Sets", "given", "row", "to", "the", "selected", "state", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11399-L11461
42,539
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { // Remove all rows from tracker var tracker = this._aSelections || [], recId, removed = []; for(var j=tracker.length-1; j>-1; j--) { if(lang.isString(tracker[j])){ recId = tracker.splice(j,1); removed[removed.length] = this.getRecord(lang.isArray(r...
javascript
function() { // Remove all rows from tracker var tracker = this._aSelections || [], recId, removed = []; for(var j=tracker.length-1; j>-1; j--) { if(lang.isString(tracker[j])){ recId = tracker.splice(j,1); removed[removed.length] = this.getRecord(lang.isArray(r...
[ "function", "(", ")", "{", "// Remove all rows from tracker", "var", "tracker", "=", "this", ".", "_aSelections", "||", "[", "]", ",", "recId", ",", "removed", "=", "[", "]", ";", "for", "(", "var", "j", "=", "tracker", ".", "length", "-", "1", ";", ...
Clears out all row selections. @method unselectAllRows
[ "Clears", "out", "all", "row", "selections", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11523-L11542
42,540
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var selectedCells = Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody); Dom.removeClass(selectedCells, DT.CLASS_SELECTED); }
javascript
function() { var selectedCells = Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody); Dom.removeClass(selectedCells, DT.CLASS_SELECTED); }
[ "function", "(", ")", "{", "var", "selectedCells", "=", "Dom", ".", "getElementsByClassName", "(", "DT", ".", "CLASS_SELECTED", ",", "\"td\"", ",", "this", ".", "_elTbody", ")", ";", "Dom", ".", "removeClass", "(", "selectedCells", ",", "DT", ".", "CLASS_S...
Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED from all TD elements in the internal tracker. @method _unselectAllTdEls @private
[ "Convenience", "method", "to", "remove", "the", "class", "YAHOO", ".", "widget", ".", "DataTable", ".", "CLASS_SELECTED", "from", "all", "TD", "elements", "in", "the", "internal", "tracker", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11551-L11554
42,541
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(cell) { var elCell = this.getTdEl(cell); if(elCell) { var oRecord = this.getRecord(elCell); var sColumnKey = this.getColumn(elCell.cellIndex).getKey(); if(oRecord && sColumnKey) { // Get Record ID var tracker = this._aSelections || []; var i...
javascript
function(cell) { var elCell = this.getTdEl(cell); if(elCell) { var oRecord = this.getRecord(elCell); var sColumnKey = this.getColumn(elCell.cellIndex).getKey(); if(oRecord && sColumnKey) { // Get Record ID var tracker = this._aSelections || []; var i...
[ "function", "(", "cell", ")", "{", "var", "elCell", "=", "this", ".", "getTdEl", "(", "cell", ")", ";", "if", "(", "elCell", ")", "{", "var", "oRecord", "=", "this", ".", "getRecord", "(", "elCell", ")", ";", "var", "sColumnKey", "=", "this", ".", ...
Sets given cell to the unselected state. @method unselectCell @param cell {HTMLElement | String} DOM element reference or ID string to DataTable page element or RecordSet index.
[ "Sets", "given", "cell", "to", "the", "unselected", "state", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11619-L11649
42,542
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(o) { if(o && (o.ownerDocument == document)) { return (Dom.hasClass(this.getTdEl(o),DT.CLASS_SELECTED) || Dom.hasClass(this.getTrEl(o),DT.CLASS_SELECTED)); } else { var oRecord, sRecordId, j; var tracker = this._aSelections; if(tracker && tracker.length > 0) { ...
javascript
function(o) { if(o && (o.ownerDocument == document)) { return (Dom.hasClass(this.getTdEl(o),DT.CLASS_SELECTED) || Dom.hasClass(this.getTrEl(o),DT.CLASS_SELECTED)); } else { var oRecord, sRecordId, j; var tracker = this._aSelections; if(tracker && tracker.length > 0) { ...
[ "function", "(", "o", ")", "{", "if", "(", "o", "&&", "(", "o", ".", "ownerDocument", "==", "document", ")", ")", "{", "return", "(", "Dom", ".", "hasClass", "(", "this", ".", "getTdEl", "(", "o", ")", ",", "DT", ".", "CLASS_SELECTED", ")", "||",...
Returns true if given item is selected, false otherwise. @method isSelected @param o {String | HTMLElement | YAHOO.widget.Record | Number {record:YAHOO.widget.Record, column:YAHOO.widget.Column} } TR or TD element by reference or ID string, a Record instance, a RecordSet position index, or an object literal representa...
[ "Returns", "true", "if", "given", "item", "is", "selected", "false", "otherwise", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11686-L11734
42,543
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var aSelectedRows = []; var tracker = this._aSelections || []; for(var j=0; j<tracker.length; j++) { if(lang.isString(tracker[j])){ aSelectedRows.push(tracker[j]); } } return aSelectedRows; }
javascript
function() { var aSelectedRows = []; var tracker = this._aSelections || []; for(var j=0; j<tracker.length; j++) { if(lang.isString(tracker[j])){ aSelectedRows.push(tracker[j]); } } return aSelectedRows; }
[ "function", "(", ")", "{", "var", "aSelectedRows", "=", "[", "]", ";", "var", "tracker", "=", "this", ".", "_aSelections", "||", "[", "]", ";", "for", "(", "var", "j", "=", "0", ";", "j", "<", "tracker", ".", "length", ";", "j", "++", ")", "{",...
Returns selected rows as an array of Record IDs. @method getSelectedRows @return {String[]} Array of selected rows by Record ID.
[ "Returns", "selected", "rows", "as", "an", "array", "of", "Record", "IDs", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11742-L11751
42,544
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var tracker = this._aSelections; if(tracker && tracker.length > 0) { for(var i=tracker.length-1; i>-1; i--) { if(lang.isString(tracker[i])){ return tracker[i]; } } } }
javascript
function() { var tracker = this._aSelections; if(tracker && tracker.length > 0) { for(var i=tracker.length-1; i>-1; i--) { if(lang.isString(tracker[i])){ return tracker[i]; } } } }
[ "function", "(", ")", "{", "var", "tracker", "=", "this", ".", "_aSelections", ";", "if", "(", "tracker", "&&", "tracker", ".", "length", ">", "0", ")", "{", "for", "(", "var", "i", "=", "tracker", ".", "length", "-", "1", ";", "i", ">", "-", "...
Returns last selected Record ID. @method getLastSelectedRecord @return {String} Record ID of last selected row.
[ "Returns", "last", "selected", "Record", "ID", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11777-L11786
42,545
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(row) { var elRow = this.getTrEl(row); if(elRow) { var oRecord = this.getRecord(elRow); Dom.removeClass(elRow,DT.CLASS_HIGHLIGHTED); this.fireEvent("rowUnhighlightEvent", {record:oRecord, el:elRow}); return; } }
javascript
function(row) { var elRow = this.getTrEl(row); if(elRow) { var oRecord = this.getRecord(elRow); Dom.removeClass(elRow,DT.CLASS_HIGHLIGHTED); this.fireEvent("rowUnhighlightEvent", {record:oRecord, el:elRow}); return; } }
[ "function", "(", "row", ")", "{", "var", "elRow", "=", "this", ".", "getTrEl", "(", "row", ")", ";", "if", "(", "elRow", ")", "{", "var", "oRecord", "=", "this", ".", "getRecord", "(", "elRow", ")", ";", "Dom", ".", "removeClass", "(", "elRow", "...
Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given row. @method unhighlightRow @param row {HTMLElement | String} DOM element reference or ID string.
[ "Removes", "the", "class", "YAHOO", ".", "widget", ".", "DataTable", ".", "CLASS_HIGHLIGHTED", "from", "the", "given", "row", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11834-L11843
42,546
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(cell) { var elCell = this.getTdEl(cell); if(elCell) { // Make sure previous cell is unhighlighted if(this._elLastHighlightedTd) { this.unhighlightCell(this._elLastHighlightedTd); } var oRecord = this.getRecord(elCell); var sColumnKey = this.getColum...
javascript
function(cell) { var elCell = this.getTdEl(cell); if(elCell) { // Make sure previous cell is unhighlighted if(this._elLastHighlightedTd) { this.unhighlightCell(this._elLastHighlightedTd); } var oRecord = this.getRecord(elCell); var sColumnKey = this.getColum...
[ "function", "(", "cell", ")", "{", "var", "elCell", "=", "this", ".", "getTdEl", "(", "cell", ")", ";", "if", "(", "elCell", ")", "{", "// Make sure previous cell is unhighlighted", "if", "(", "this", ".", "_elLastHighlightedTd", ")", "{", "this", ".", "un...
Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given cell. @method highlightCell @param cell {HTMLElement | String} DOM element reference or ID string.
[ "Assigns", "the", "class", "YAHOO", ".", "widget", ".", "DataTable", ".", "CLASS_HIGHLIGHTED", "to", "the", "given", "cell", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L11851-L11867
42,547
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { // Attach Cell Editor container element as first child of body var elCellEditor = document.createElement("div"); elCellEditor.id = this._sId + "-celleditor"; elCellEditor.style.display = "none"; elCellEditor.tabIndex = 0; Dom.addClass(elCellEditor, DT.CLASS_EDITOR); var elFirstC...
javascript
function() { // Attach Cell Editor container element as first child of body var elCellEditor = document.createElement("div"); elCellEditor.id = this._sId + "-celleditor"; elCellEditor.style.display = "none"; elCellEditor.tabIndex = 0; Dom.addClass(elCellEditor, DT.CLASS_EDITOR); var elFirstC...
[ "function", "(", ")", "{", "// Attach Cell Editor container element as first child of body", "var", "elCellEditor", "=", "document", ".", "createElement", "(", "\"div\"", ")", ";", "elCellEditor", ".", "id", "=", "this", ".", "_sId", "+", "\"-celleditor\"", ";", "el...
Backward compatibility. @method _initCellEditorEl @private @deprecated
[ "Backward", "compatibility", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12106-L12127
42,548
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { if(this._oCellEditor) { if(this._oCellEditor.save) { this._oCellEditor.save(); } // Backward compatibility else if(this._oCellEditor.isActive) { var newData = this._oCellEditor.value; // Copy the data to pass to the event /...
javascript
function() { if(this._oCellEditor) { if(this._oCellEditor.save) { this._oCellEditor.save(); } // Backward compatibility else if(this._oCellEditor.isActive) { var newData = this._oCellEditor.value; // Copy the data to pass to the event /...
[ "function", "(", ")", "{", "if", "(", "this", ".", "_oCellEditor", ")", "{", "if", "(", "this", ".", "_oCellEditor", ".", "save", ")", "{", "this", ".", "_oCellEditor", ".", "save", "(", ")", ";", "}", "// Backward compatibility", "else", "if", "(", ...
Saves active CellEditor input to Record and upates DOM UI. @method saveCellEditor
[ "Saves", "active", "CellEditor", "input", "to", "Record", "and", "upates", "DOM", "UI", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12145-L12187
42,549
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { if(oArgs.editor.disableBtns) { // Save on blur if(oArgs.editor.save) { // Backward incompatible oArgs.editor.save(); } } else if(oArgs.editor.cancel) { // Backward incompatible // Cancel on blur oArgs.editor.cancel(); } }
javascript
function(oArgs) { if(oArgs.editor.disableBtns) { // Save on blur if(oArgs.editor.save) { // Backward incompatible oArgs.editor.save(); } } else if(oArgs.editor.cancel) { // Backward incompatible // Cancel on blur oArgs.editor.cancel(); } }
[ "function", "(", "oArgs", ")", "{", "if", "(", "oArgs", ".", "editor", ".", "disableBtns", ")", "{", "// Save on blur", "if", "(", "oArgs", ".", "editor", ".", "save", ")", "{", "// Backward incompatible", "oArgs", ".", "editor", ".", "save", "(", ")", ...
Public handler of the editorBlurEvent. By default, saves on blur if disableBtns is true, otherwise cancels on blur. @method onEditorBlurEvent @param oArgs {Object} Custom Event args.
[ "Public", "handler", "of", "the", "editorBlurEvent", ".", "By", "default", "saves", "on", "blur", "if", "disableBtns", "is", "true", "otherwise", "cancels", "on", "blur", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12316-L12327
42,550
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.highlightColumn(oArgs.target); } }
javascript
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.highlightColumn(oArgs.target); } }
[ "function", "(", "oArgs", ")", "{", "//TODO: filter for all spurious events at a lower level", "if", "(", "!", "Dom", ".", "isAncestor", "(", "oArgs", ".", "target", ",", "Ev", ".", "getRelatedTarget", "(", "oArgs", ".", "event", ")", ")", ")", "{", "this", ...
Overridable custom event handler to highlight Column. Accounts for spurious caused-by-child events. @method onEventHighlightColumn @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element.
[ "Overridable", "custom", "event", "handler", "to", "highlight", "Column", ".", "Accounts", "for", "spurious", "caused", "-", "by", "-", "child", "events", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12514-L12519
42,551
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.unhighlightColumn(oArgs.target); } }
javascript
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.unhighlightColumn(oArgs.target); } }
[ "function", "(", "oArgs", ")", "{", "//TODO: filter for all spurious events at a lower level", "if", "(", "!", "Dom", ".", "isAncestor", "(", "oArgs", ".", "target", ",", "Ev", ".", "getRelatedTarget", "(", "oArgs", ".", "event", ")", ")", ")", "{", "this", ...
Overridable custom event handler to unhighlight Column. Accounts for spurious caused-by-child events. @method onEventUnhighlightColumn @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element.
[ "Overridable", "custom", "event", "handler", "to", "unhighlight", "Column", ".", "Accounts", "for", "spurious", "caused", "-", "by", "-", "child", "events", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12529-L12534
42,552
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { var sMode = this.get("selectionMode"); if(sMode == "cellblock") { this._handleCellBlockSelectionByMouse(oArgs); } else if(sMode == "cellrange") { this._handleCellRangeSelectionByMouse(oArgs); } else { this._handleSingleCellSelectionByMouse(oArgs); } ...
javascript
function(oArgs) { var sMode = this.get("selectionMode"); if(sMode == "cellblock") { this._handleCellBlockSelectionByMouse(oArgs); } else if(sMode == "cellrange") { this._handleCellRangeSelectionByMouse(oArgs); } else { this._handleSingleCellSelectionByMouse(oArgs); } ...
[ "function", "(", "oArgs", ")", "{", "var", "sMode", "=", "this", ".", "get", "(", "\"selectionMode\"", ")", ";", "if", "(", "sMode", "==", "\"cellblock\"", ")", "{", "this", ".", "_handleCellBlockSelectionByMouse", "(", "oArgs", ")", ";", "}", "else", "i...
Overridable custom event handler to select cell. @method onEventSelectCell @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element.
[ "Overridable", "custom", "event", "handler", "to", "select", "cell", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12560-L12571
42,553
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.highlightRow(oArgs.target); } }
javascript
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.highlightRow(oArgs.target); } }
[ "function", "(", "oArgs", ")", "{", "//TODO: filter for all spurious events at a lower level", "if", "(", "!", "Dom", ".", "isAncestor", "(", "oArgs", ".", "target", ",", "Ev", ".", "getRelatedTarget", "(", "oArgs", ".", "event", ")", ")", ")", "{", "this", ...
Overridable custom event handler to highlight row. Accounts for spurious caused-by-child events. @method onEventHighlightRow @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element.
[ "Overridable", "custom", "event", "handler", "to", "highlight", "row", ".", "Accounts", "for", "spurious", "caused", "-", "by", "-", "child", "events", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12581-L12586
42,554
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.unhighlightRow(oArgs.target); } }
javascript
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.unhighlightRow(oArgs.target); } }
[ "function", "(", "oArgs", ")", "{", "//TODO: filter for all spurious events at a lower level", "if", "(", "!", "Dom", ".", "isAncestor", "(", "oArgs", ".", "target", ",", "Ev", ".", "getRelatedTarget", "(", "oArgs", ".", "event", ")", ")", ")", "{", "this", ...
Overridable custom event handler to unhighlight row. Accounts for spurious caused-by-child events. @method onEventUnhighlightRow @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element.
[ "Overridable", "custom", "event", "handler", "to", "unhighlight", "row", ".", "Accounts", "for", "spurious", "caused", "-", "by", "-", "child", "events", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12596-L12601
42,555
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.highlightCell(oArgs.target); } }
javascript
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.highlightCell(oArgs.target); } }
[ "function", "(", "oArgs", ")", "{", "//TODO: filter for all spurious events at a lower level", "if", "(", "!", "Dom", ".", "isAncestor", "(", "oArgs", ".", "target", ",", "Ev", ".", "getRelatedTarget", "(", "oArgs", ".", "event", ")", ")", ")", "{", "this", ...
Overridable custom event handler to highlight cell. Accounts for spurious caused-by-child events. @method onEventHighlightCell @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element.
[ "Overridable", "custom", "event", "handler", "to", "highlight", "cell", ".", "Accounts", "for", "spurious", "caused", "-", "by", "-", "child", "events", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12611-L12616
42,556
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.unhighlightCell(oArgs.target); } }
javascript
function(oArgs) { //TODO: filter for all spurious events at a lower level if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) { this.unhighlightCell(oArgs.target); } }
[ "function", "(", "oArgs", ")", "{", "//TODO: filter for all spurious events at a lower level", "if", "(", "!", "Dom", ".", "isAncestor", "(", "oArgs", ".", "target", ",", "Ev", ".", "getRelatedTarget", "(", "oArgs", ".", "event", ")", ")", ")", "{", "this", ...
Overridable custom event handler to unhighlight cell. Accounts for spurious caused-by-child events. @method onEventUnhighlightCell @param oArgs.event {HTMLEvent} Event object. @param oArgs.target {HTMLElement} Target element.
[ "Overridable", "custom", "event", "handler", "to", "unhighlight", "cell", ".", "Accounts", "for", "spurious", "caused", "-", "by", "-", "child", "events", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12626-L12631
42,557
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(sRequest, oResponse, oPayload) { if((this instanceof DT) && this._sId) { this.initializeTable(); this.onDataReturnSetRows(sRequest,oResponse,oPayload); } }
javascript
function(sRequest, oResponse, oPayload) { if((this instanceof DT) && this._sId) { this.initializeTable(); this.onDataReturnSetRows(sRequest,oResponse,oPayload); } }
[ "function", "(", "sRequest", ",", "oResponse", ",", "oPayload", ")", "{", "if", "(", "(", "this", "instanceof", "DT", ")", "&&", "this", ".", "_sId", ")", "{", "this", ".", "initializeTable", "(", ")", ";", "this", ".", "onDataReturnSetRows", "(", "sRe...
Callback function receives data from DataSource and populates an entire DataTable with Records and TR elements, clearing previous Records, if any. @method onDataReturnInitializeTable @param sRequest {String} Original request. @param oResponse {Object} Response object. @param oPayload {MIXED} (optional) Additional argu...
[ "Callback", "function", "receives", "data", "from", "DataSource", "and", "populates", "an", "entire", "DataTable", "with", "Records", "and", "TR", "elements", "clearing", "previous", "Records", "if", "any", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12706-L12712
42,558
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(sRequest, oResponse, oPayload) { if((this instanceof DT) && this._sId) { this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload}); // Pass data through abstract method for any transformations var ok = this.doBeforeLoadData(sRequest, oResponse, o...
javascript
function(sRequest, oResponse, oPayload) { if((this instanceof DT) && this._sId) { this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload}); // Pass data through abstract method for any transformations var ok = this.doBeforeLoadData(sRequest, oResponse, o...
[ "function", "(", "sRequest", ",", "oResponse", ",", "oPayload", ")", "{", "if", "(", "(", "this", "instanceof", "DT", ")", "&&", "this", ".", "_sId", ")", "{", "this", ".", "fireEvent", "(", "\"dataReturnEvent\"", ",", "{", "request", ":", "sRequest", ...
Callback function receives data from DataSource and appends to an existing DataTable new Records and, if applicable, creates or updates corresponding TR elements. @method onDataReturnAppendRows @param sRequest {String} Original request. @param oResponse {Object} Response object. @param oPayload {MIXED} (optional) Addi...
[ "Callback", "function", "receives", "data", "from", "DataSource", "and", "appends", "to", "an", "existing", "DataTable", "new", "Records", "and", "if", "applicable", "creates", "or", "updates", "corresponding", "TR", "elements", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12772-L12792
42,559
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oRequest, oResponse, oPayload) { if((this instanceof DT) && this._sId) { this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload}); // Pass data through abstract method for any transformations var ok = this.doBeforeLoadData(oRequest, oResponse...
javascript
function(oRequest, oResponse, oPayload) { if((this instanceof DT) && this._sId) { this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload}); // Pass data through abstract method for any transformations var ok = this.doBeforeLoadData(oRequest, oResponse...
[ "function", "(", "oRequest", ",", "oResponse", ",", "oPayload", ")", "{", "if", "(", "(", "this", "instanceof", "DT", ")", "&&", "this", ".", "_sId", ")", "{", "this", ".", "fireEvent", "(", "\"dataReturnEvent\"", ",", "{", "request", ":", "oRequest", ...
Callback function receives reponse from DataSource and populates the RecordSet with the results. @method onDataReturnSetRows @param oRequest {MIXED} Original generated request. @param oResponse {Object} Response object. @param oPayload {MIXED} (optional) Additional argument(s)
[ "Callback", "function", "receives", "reponse", "from", "DataSource", "and", "populates", "the", "RecordSet", "with", "the", "results", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L12871-L12909
42,560
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(elContainer) { Dom.removeClass(elContainer, DT.CLASS_SCROLLABLE); SDT.superclass._destroyContainerEl.call(this, elContainer); this._elHdContainer = null; this._elBdContainer = null; }
javascript
function(elContainer) { Dom.removeClass(elContainer, DT.CLASS_SCROLLABLE); SDT.superclass._destroyContainerEl.call(this, elContainer); this._elHdContainer = null; this._elBdContainer = null; }
[ "function", "(", "elContainer", ")", "{", "Dom", ".", "removeClass", "(", "elContainer", ",", "DT", ".", "CLASS_SCROLLABLE", ")", ";", "SDT", ".", "superclass", ".", "_destroyContainerEl", ".", "call", "(", "this", ",", "elContainer", ")", ";", "this", "."...
Destroy's the DataTable outer and inner container elements, if available. @method _destroyContainerEl @param elContainer {HTMLElement} Reference to the container element. @private
[ "Destroy", "s", "the", "DataTable", "outer", "and", "inner", "container", "elements", "if", "available", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14325-L14330
42,561
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(elContainer) { SDT.superclass._initContainerEl.call(this, elContainer); if(this._elContainer) { elContainer = this._elContainer; // was constructor input, now is DOM ref Dom.addClass(elContainer, DT.CLASS_SCROLLABLE); // Container for header TABLE var elHdC...
javascript
function(elContainer) { SDT.superclass._initContainerEl.call(this, elContainer); if(this._elContainer) { elContainer = this._elContainer; // was constructor input, now is DOM ref Dom.addClass(elContainer, DT.CLASS_SCROLLABLE); // Container for header TABLE var elHdC...
[ "function", "(", "elContainer", ")", "{", "SDT", ".", "superclass", ".", "_initContainerEl", ".", "call", "(", "this", ",", "elContainer", ")", ";", "if", "(", "this", ".", "_elContainer", ")", "{", "elContainer", "=", "this", ".", "_elContainer", ";", "...
Initializes the DataTable outer container element and creates inner header and body container elements. @method _initContainerEl @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. @private
[ "Initializes", "the", "DataTable", "outer", "container", "element", "and", "creates", "inner", "header", "and", "body", "container", "elements", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14340-L14364
42,562
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var elTable = this._elHdTable; if(elTable) { Ev.purgeElement(elTable, true); elTable.parentNode.removeChild(elTable); // A little out of place, but where else can we null out these extra elements? ///this._elBdColgroup = null; this._elBdThead = null;...
javascript
function() { var elTable = this._elHdTable; if(elTable) { Ev.purgeElement(elTable, true); elTable.parentNode.removeChild(elTable); // A little out of place, but where else can we null out these extra elements? ///this._elBdColgroup = null; this._elBdThead = null;...
[ "function", "(", ")", "{", "var", "elTable", "=", "this", ".", "_elHdTable", ";", "if", "(", "elTable", ")", "{", "Ev", ".", "purgeElement", "(", "elTable", ",", "true", ")", ";", "elTable", ".", "parentNode", ".", "removeChild", "(", "elTable", ")", ...
Destroy's the DataTable head TABLE element, if available. @method _destroyHdTableEl @private
[ "Destroy", "s", "the", "DataTable", "head", "TABLE", "element", "if", "available", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14394-L14404
42,563
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(elHdTable, elTable) { elHdTable = elHdTable || this._elHdTable; elTable = elTable || this._elTable; // Scrolling body's THEAD this._initBdTheadEl(elTable); // Standard fixed head THEAD SDT.superclass._initTheadEl.call(this, elHdTable); }
javascript
function(elHdTable, elTable) { elHdTable = elHdTable || this._elHdTable; elTable = elTable || this._elTable; // Scrolling body's THEAD this._initBdTheadEl(elTable); // Standard fixed head THEAD SDT.superclass._initTheadEl.call(this, elHdTable); }
[ "function", "(", "elHdTable", ",", "elTable", ")", "{", "elHdTable", "=", "elHdTable", "||", "this", ".", "_elHdTable", ";", "elTable", "=", "elTable", "||", "this", ".", "_elTable", ";", "// Scrolling body's THEAD", "this", ".", "_initBdTheadEl", "(", "elTabl...
Initializes ScrollingDataTable THEAD elements into the two inner containers. @method _initTheadEl @param elHdTable {HTMLElement} (optional) Fixed header TABLE element reference. @param elTable {HTMLElement} (optional) TABLE element reference. @private
[ "Initializes", "ScrollingDataTable", "THEAD", "elements", "into", "the", "two", "inner", "containers", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14432-L14440
42,564
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(elTh, oColumn) { SDT.superclass._initThEl.call(this, elTh, oColumn); elTh.id = this.getId() +"-fixedth-" + oColumn.getSanitizedKey(); // Needed for getColumn by TH and ColumnDD }
javascript
function(elTh, oColumn) { SDT.superclass._initThEl.call(this, elTh, oColumn); elTh.id = this.getId() +"-fixedth-" + oColumn.getSanitizedKey(); // Needed for getColumn by TH and ColumnDD }
[ "function", "(", "elTh", ",", "oColumn", ")", "{", "SDT", ".", "superclass", ".", "_initThEl", ".", "call", "(", "this", ",", "elTh", ",", "oColumn", ")", ";", "elTh", ".", "id", "=", "this", ".", "getId", "(", ")", "+", "\"-fixedth-\"", "+", "oCol...
SDT changes ID so as not to duplicate the accessibility TH IDs. @method _initThEl @param elTh {HTMLElement} TH element reference. @param oColumn {YAHOO.widget.Column} Column object. @private
[ "SDT", "changes", "ID", "so", "as", "not", "to", "duplicate", "the", "accessibility", "TH", "IDs", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14450-L14453
42,565
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var elBdThead = this._elBdThead; if(elBdThead) { var elTable = elBdThead.parentNode; Ev.purgeElement(elBdThead, true); elTable.removeChild(elBdThead); this._elBdThead = null; this._destroyColumnHelpers(); } }
javascript
function() { var elBdThead = this._elBdThead; if(elBdThead) { var elTable = elBdThead.parentNode; Ev.purgeElement(elBdThead, true); elTable.removeChild(elBdThead); this._elBdThead = null; this._destroyColumnHelpers(); } }
[ "function", "(", ")", "{", "var", "elBdThead", "=", "this", ".", "_elBdThead", ";", "if", "(", "elBdThead", ")", "{", "var", "elTable", "=", "elBdThead", ".", "parentNode", ";", "Ev", ".", "purgeElement", "(", "elBdThead", ",", "true", ")", ";", "elTab...
Destroy's the DataTable body THEAD element, if available. @method _destroyBdTheadEl @private
[ "Destroy", "s", "the", "DataTable", "body", "THEAD", "element", "if", "available", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14461-L14471
42,566
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(elTable) { if(elTable) { // Destroy previous this._destroyBdTheadEl(); var elThead = elTable.insertBefore(document.createElement("thead"), elTable.firstChild); // Add TRs to the THEAD; var oColumnSet = this._oColumnSet, colTree = oColumnSet.tree...
javascript
function(elTable) { if(elTable) { // Destroy previous this._destroyBdTheadEl(); var elThead = elTable.insertBefore(document.createElement("thead"), elTable.firstChild); // Add TRs to the THEAD; var oColumnSet = this._oColumnSet, colTree = oColumnSet.tree...
[ "function", "(", "elTable", ")", "{", "if", "(", "elTable", ")", "{", "// Destroy previous", "this", ".", "_destroyBdTheadEl", "(", ")", ";", "var", "elThead", "=", "elTable", ".", "insertBefore", "(", "document", ".", "createElement", "(", "\"thead\"", ")",...
Initializes body THEAD element. @method _initBdTheadEl @param elTable {HTMLElement} TABLE element into which to create THEAD. @return {HTMLElement} Initialized THEAD element. @private
[ "Initializes", "body", "THEAD", "element", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14481-L14505
42,567
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(elTh, oColumn) { elTh.id = this.getId()+"-th-" + oColumn.getSanitizedKey(); // Needed for accessibility elTh.rowSpan = oColumn.getRowspan(); elTh.colSpan = oColumn.getColspan(); // Assign abbr attribute if(oColumn.abbr) { elTh.abbr = oColumn.abbr; } // TODO: strip links and...
javascript
function(elTh, oColumn) { elTh.id = this.getId()+"-th-" + oColumn.getSanitizedKey(); // Needed for accessibility elTh.rowSpan = oColumn.getRowspan(); elTh.colSpan = oColumn.getColspan(); // Assign abbr attribute if(oColumn.abbr) { elTh.abbr = oColumn.abbr; } // TODO: strip links and...
[ "function", "(", "elTh", ",", "oColumn", ")", "{", "elTh", ".", "id", "=", "this", ".", "getId", "(", ")", "+", "\"-th-\"", "+", "oColumn", ".", "getSanitizedKey", "(", ")", ";", "// Needed for accessibility", "elTh", ".", "rowSpan", "=", "oColumn", ".",...
Populates TH element for the body THEAD element. @method _initBdThEl @param elTh {HTMLElement} TH element reference. @param oColumn {YAHOO.widget.Column} Column object. @private
[ "Populates", "TH", "element", "for", "the", "body", "THEAD", "element", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14515-L14528
42,568
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(elTable) { SDT.superclass._initTbodyEl.call(this, elTable); // Bug 2105534 - Safari 3 gap // Bug 2492591 - IE8 offsetTop elTable.style.marginTop = (this._elTbody.offsetTop > 0) ? "-"+this._elTbody.offsetTop+"px" : 0; }
javascript
function(elTable) { SDT.superclass._initTbodyEl.call(this, elTable); // Bug 2105534 - Safari 3 gap // Bug 2492591 - IE8 offsetTop elTable.style.marginTop = (this._elTbody.offsetTop > 0) ? "-"+this._elTbody.offsetTop+"px" : 0; }
[ "function", "(", "elTable", ")", "{", "SDT", ".", "superclass", ".", "_initTbodyEl", ".", "call", "(", "this", ",", "elTable", ")", ";", "// Bug 2105534 - Safari 3 gap", "// Bug 2492591 - IE8 offsetTop", "elTable", ".", "style", ".", "marginTop", "=", "(", "this...
Initializes ScrollingDataTable TBODY element for data @method _initTbodyEl @param elTable {HTMLElement} TABLE element into which to create TBODY . @private
[ "Initializes", "ScrollingDataTable", "TBODY", "element", "for", "data" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14537-L14544
42,569
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(el) { el = el || this._elTbody; var oSelf = this; this._storeScrollPositions(); // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing // strange unexpected things a...
javascript
function(el) { el = el || this._elTbody; var oSelf = this; this._storeScrollPositions(); // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing // strange unexpected things a...
[ "function", "(", "el", ")", "{", "el", "=", "el", "||", "this", ".", "_elTbody", ";", "var", "oSelf", "=", "this", ";", "this", ".", "_storeScrollPositions", "(", ")", ";", "// http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets", ...
Sets focus on the given element. @method _focusEl @param el {HTMLElement} Element. @private
[ "Sets", "focus", "on", "the", "given", "element", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14581-L14600
42,570
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { // Reset scroll positions if(this._nScrollTop) { this._elBdContainer.scrollTop = this._nScrollTop; this._nScrollTop = null; } if(this._nScrollLeft) { this._elBdContainer.scrollLeft = this._nScrollLeft; this._nScrollLeft = null; } }
javascript
function() { // Reset scroll positions if(this._nScrollTop) { this._elBdContainer.scrollTop = this._nScrollTop; this._nScrollTop = null; } if(this._nScrollLeft) { this._elBdContainer.scrollLeft = this._nScrollLeft; this._nScrollLeft = null; } }
[ "function", "(", ")", "{", "// Reset scroll positions", "if", "(", "this", ".", "_nScrollTop", ")", "{", "this", ".", "_elBdContainer", ".", "scrollTop", "=", "this", ".", "_nScrollTop", ";", "this", ".", "_nScrollTop", "=", "null", ";", "}", "if", "(", ...
Restores scroll positions to stored value. @method _retoreScrollPositions @private
[ "Restores", "scroll", "positions", "to", "stored", "value", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14661-L14671
42,571
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oColumn, elTd) { // Only Columns without widths that are not hidden if(!oColumn.width && !oColumn.hidden) { var elTh = oColumn.getThEl(); // Unset a calculated auto-width if(oColumn._calculatedWidth) { this._setColumnWidth(oColumn, "auto", "visible"); } ...
javascript
function(oColumn, elTd) { // Only Columns without widths that are not hidden if(!oColumn.width && !oColumn.hidden) { var elTh = oColumn.getThEl(); // Unset a calculated auto-width if(oColumn._calculatedWidth) { this._setColumnWidth(oColumn, "auto", "visible"); } ...
[ "function", "(", "oColumn", ",", "elTd", ")", "{", "// Only Columns without widths that are not hidden", "if", "(", "!", "oColumn", ".", "width", "&&", "!", "oColumn", ".", "hidden", ")", "{", "var", "elTh", "=", "oColumn", ".", "getThEl", "(", ")", ";", "...
Helper function calculates and sets a validated width for a Column in a ScrollingDataTable. @method _validateColumnWidth @param oColumn {YAHOO.widget.Column} Column instance. @param elTd {HTMLElement} TD element to validate against. @private
[ "Helper", "function", "calculates", "and", "sets", "a", "validated", "width", "for", "a", "Column", "in", "a", "ScrollingDataTable", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14681-L14714
42,572
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var elTbody = this._elTbody, elBdContainer = this._elBdContainer; // X-scrolling not enabled if(!this.get("width")) { // Snap outer container width to content this._elContainer.style.width = (elBdContainer.scrollHeight > elBdContainer.clientHeight) ...
javascript
function() { var elTbody = this._elTbody, elBdContainer = this._elBdContainer; // X-scrolling not enabled if(!this.get("width")) { // Snap outer container width to content this._elContainer.style.width = (elBdContainer.scrollHeight > elBdContainer.clientHeight) ...
[ "function", "(", ")", "{", "var", "elTbody", "=", "this", ".", "_elTbody", ",", "elBdContainer", "=", "this", ".", "_elBdContainer", ";", "// X-scrolling not enabled", "if", "(", "!", "this", ".", "get", "(", "\"width\"", ")", ")", "{", "// Snap outer contai...
Snaps container width for y-scrolling tables. @method _syncScrollY @private
[ "Snaps", "container", "width", "for", "y", "-", "scrolling", "tables", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14846-L14860
42,573
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var elTbody = this._elTbody, elBdContainer = this._elBdContainer; // IE 6 and 7 only when y-scrolling not enabled if(!this.get("height") && (ua.ie)) { // Snap outer container height to content elBdContainer.style.height = // but account for x-scroll...
javascript
function() { var elTbody = this._elTbody, elBdContainer = this._elBdContainer; // IE 6 and 7 only when y-scrolling not enabled if(!this.get("height") && (ua.ie)) { // Snap outer container height to content elBdContainer.style.height = // but account for x-scroll...
[ "function", "(", ")", "{", "var", "elTbody", "=", "this", ".", "_elTbody", ",", "elBdContainer", "=", "this", ".", "_elBdContainer", ";", "// IE 6 and 7 only when y-scrolling not enabled", "if", "(", "!", "this", ".", "get", "(", "\"height\"", ")", "&&", "(", ...
Snaps container height for x-scrolling tables in IE. Syncs message TBODY width. @method _syncScrollX @private
[ "Snaps", "container", "height", "for", "x", "-", "scrolling", "tables", "in", "IE", ".", "Syncs", "message", "TBODY", "width", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14868-L14889
42,574
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(nBorderWidth) { var aLastHeaders = this._oColumnSet.headers[this._oColumnSet.headers.length-1] || [], len = aLastHeaders.length, sPrefix = this._sId+"-fixedth-", sValue = nBorderWidth + "px solid " + this.get("COLOR_COLUMNFILLER"); this._elThead.style.display = "none"; for(...
javascript
function(nBorderWidth) { var aLastHeaders = this._oColumnSet.headers[this._oColumnSet.headers.length-1] || [], len = aLastHeaders.length, sPrefix = this._sId+"-fixedth-", sValue = nBorderWidth + "px solid " + this.get("COLOR_COLUMNFILLER"); this._elThead.style.display = "none"; for(...
[ "function", "(", "nBorderWidth", ")", "{", "var", "aLastHeaders", "=", "this", ".", "_oColumnSet", ".", "headers", "[", "this", ".", "_oColumnSet", ".", "headers", ".", "length", "-", "1", "]", "||", "[", "]", ",", "len", "=", "aLastHeaders", ".", "len...
Sets Column header overhang to given width. @method _setOverhangValue @param nBorderWidth {Number} Value of new border for overhang. @private
[ "Sets", "Column", "header", "overhang", "to", "given", "width", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L14920-L14931
42,575
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var elMask = this._elMask; elMask.style.width = this._elBdContainer.offsetWidth + "px"; elMask.style.height = this._elHdContainer.offsetHeight + this._elBdContainer.offsetHeight + "px"; elMask.style.display = ""; this.fireEvent("disableEvent"); }
javascript
function() { var elMask = this._elMask; elMask.style.width = this._elBdContainer.offsetWidth + "px"; elMask.style.height = this._elHdContainer.offsetHeight + this._elBdContainer.offsetHeight + "px"; elMask.style.display = ""; this.fireEvent("disableEvent"); }
[ "function", "(", ")", "{", "var", "elMask", "=", "this", ".", "_elMask", ";", "elMask", ".", "style", ".", "width", "=", "this", ".", "_elBdContainer", ".", "offsetWidth", "+", "\"px\"", ";", "elMask", ".", "style", ".", "height", "=", "this", ".", "...
Disables ScrollingDataTable UI. @method disable
[ "Disables", "ScrollingDataTable", "UI", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L15015-L15021
42,576
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(oColumn, nWidth) { oColumn = this.getColumn(oColumn); if(oColumn) { this._storeScrollPositions(); // Validate new width against minWidth if(lang.isNumber(nWidth)) { nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth; // Save state ...
javascript
function(oColumn, nWidth) { oColumn = this.getColumn(oColumn); if(oColumn) { this._storeScrollPositions(); // Validate new width against minWidth if(lang.isNumber(nWidth)) { nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth; // Save state ...
[ "function", "(", "oColumn", ",", "nWidth", ")", "{", "oColumn", "=", "this", ".", "getColumn", "(", "oColumn", ")", ";", "if", "(", "oColumn", ")", "{", "this", ".", "_storeScrollPositions", "(", ")", ";", "// Validate new width against minWidth", "if", "(",...
Sets given Column to given pixel width. If new width is less than minWidth width, sets to minWidth. Updates oColumn.width value. @method setColumnWidth @param oColumn {YAHOO.widget.Column} Column instance. @param nWidth {Number} New width in pixels.
[ "Sets", "given", "Column", "to", "given", "pixel", "width", ".", "If", "new", "width", "is", "less", "than", "minWidth", "width", "sets", "to", "minWidth", ".", "Updates", "oColumn", ".", "width", "value", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L15105-L15139
42,577
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function(to) { var td = this.getTdEl(to); if(td) { this.clearScrollPositions(); this.getBdContainerEl().scrollLeft = td.offsetLeft; this.getBdContainerEl().scrollTop = td.parentNode.offsetTop; } else { var tr = this.getTrEl(to); ...
javascript
function(to) { var td = this.getTdEl(to); if(td) { this.clearScrollPositions(); this.getBdContainerEl().scrollLeft = td.offsetLeft; this.getBdContainerEl().scrollTop = td.parentNode.offsetTop; } else { var tr = this.getTrEl(to); ...
[ "function", "(", "to", ")", "{", "var", "td", "=", "this", ".", "getTdEl", "(", "to", ")", ";", "if", "(", "td", ")", "{", "this", ".", "clearScrollPositions", "(", ")", ";", "this", ".", "getBdContainerEl", "(", ")", ".", "scrollLeft", "=", "td", ...
Scrolls to given row or cell @method scrollTo @param to {YAHOO.widget.Record | HTMLElement } Itme to scroll to.
[ "Scrolls", "to", "given", "row", "or", "cell" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L15147-L15161
42,578
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { this.unsubscribeAll(); // Column is late-binding in attach() var oColumn = this.getColumn(); if(oColumn) { oColumn.editor = null; } var elContainer = this.getContainerEl(); Ev.purgeElement(elContainer, true); elContainer.parentNode.removeChild(elContainer);...
javascript
function() { this.unsubscribeAll(); // Column is late-binding in attach() var oColumn = this.getColumn(); if(oColumn) { oColumn.editor = null; } var elContainer = this.getContainerEl(); Ev.purgeElement(elContainer, true); elContainer.parentNode.removeChild(elContainer);...
[ "function", "(", ")", "{", "this", ".", "unsubscribeAll", "(", ")", ";", "// Column is late-binding in attach()", "var", "oColumn", "=", "this", ".", "getColumn", "(", ")", ";", "if", "(", "oColumn", ")", "{", "oColumn", ".", "editor", "=", "null", ";", ...
Nulls out the entire CellEditor instance and related objects, removes attached event listeners, and clears out DOM elements inside the container, removes container from the DOM. @method destroy
[ "Nulls", "out", "the", "entire", "CellEditor", "instance", "and", "related", "objects", "removes", "attached", "event", "listeners", "and", "clears", "out", "DOM", "elements", "inside", "the", "container", "removes", "container", "from", "the", "DOM", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L15744-L15756
42,579
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { if(this._elContainer) { YAHOO.util.Event.purgeElement(this._elContainer, true); this._elContainer.innerHTML = ""; } // Render Cell Editor container element as first child of body var elContainer = document.createElement("div"); elContainer.id = this.getId() + "-containe...
javascript
function() { if(this._elContainer) { YAHOO.util.Event.purgeElement(this._elContainer, true); this._elContainer.innerHTML = ""; } // Render Cell Editor container element as first child of body var elContainer = document.createElement("div"); elContainer.id = this.getId() + "-containe...
[ "function", "(", ")", "{", "if", "(", "this", ".", "_elContainer", ")", "{", "YAHOO", ".", "util", ".", "Event", ".", "purgeElement", "(", "this", ".", "_elContainer", ",", "true", ")", ";", "this", ".", "_elContainer", ".", "innerHTML", "=", "\"\"", ...
Renders DOM elements and attaches event listeners. @method render
[ "Renders", "DOM", "elements", "and", "attaches", "event", "listeners", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L15763-L15802
42,580
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { // Move Editor var elContainer = this.getContainerEl(), elTd = this.getTdEl(), x = Dom.getX(elTd), y = Dom.getY(elTd); //TODO: remove scrolling logic // SF doesn't get xy for cells in scrolling table // when tbody display is set to block if(isNaN(x) || isNaN...
javascript
function() { // Move Editor var elContainer = this.getContainerEl(), elTd = this.getTdEl(), x = Dom.getX(elTd), y = Dom.getY(elTd); //TODO: remove scrolling logic // SF doesn't get xy for cells in scrolling table // when tbody display is set to block if(isNaN(x) || isNaN...
[ "function", "(", ")", "{", "// Move Editor", "var", "elContainer", "=", "this", ".", "getContainerEl", "(", ")", ",", "elTd", "=", "this", ".", "getTdEl", "(", ")", ",", "x", "=", "Dom", ".", "getX", "(", "elTd", ")", ",", "y", "=", "Dom", ".", "...
Moves container into position for display. @method move
[ "Moves", "container", "into", "position", "for", "display", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L15873-L15896
42,581
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { // Get new value var inputValue = this.getInputValue(); var validValue = inputValue; // Validate new value if(this.validator) { validValue = this.validator.call(this.getDataTable(), inputValue, this.value, this); if(validValue === undefined ) { if(this.r...
javascript
function() { // Get new value var inputValue = this.getInputValue(); var validValue = inputValue; // Validate new value if(this.validator) { validValue = this.validator.call(this.getDataTable(), inputValue, this.value, this); if(validValue === undefined ) { if(this.r...
[ "function", "(", ")", "{", "// Get new value", "var", "inputValue", "=", "this", ".", "getInputValue", "(", ")", ";", "var", "validValue", "=", "inputValue", ";", "// Validate new value", "if", "(", "this", ".", "validator", ")", "{", "validValue", "=", "thi...
Saves value of CellEditor and hides UI. @method save
[ "Saves", "value", "of", "CellEditor", "and", "hides", "UI", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L15934-L15983
42,582
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { // Normalize to array var originalValues = lang.isArray(this.value) ? this.value : [this.value]; // Match checks to value for(var i=0, j=this.checkboxes.length; i<j; i++) { this.checkboxes[i].checked = false; for(var k=0, len=originalValues.length; k<len; k++) { ...
javascript
function() { // Normalize to array var originalValues = lang.isArray(this.value) ? this.value : [this.value]; // Match checks to value for(var i=0, j=this.checkboxes.length; i<j; i++) { this.checkboxes[i].checked = false; for(var k=0, len=originalValues.length; k<len; k++) { ...
[ "function", "(", ")", "{", "// Normalize to array", "var", "originalValues", "=", "lang", ".", "isArray", "(", "this", ".", "value", ")", "?", "this", ".", "value", ":", "[", "this", ".", "value", "]", ";", "// Match checks to value", "for", "(", "var", ...
Resets CheckboxCellEditor UI to initial state. @method resetForm
[ "Resets", "CheckboxCellEditor", "UI", "to", "initial", "state", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16258-L16271
42,583
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var checkedValues = []; for(var i=0, j=this.checkboxes.length; i<j; i++) { if(this.checkboxes[i].checked) { checkedValues[checkedValues.length] = this.checkboxes[i].value; } } return checkedValues; }
javascript
function() { var checkedValues = []; for(var i=0, j=this.checkboxes.length; i<j; i++) { if(this.checkboxes[i].checked) { checkedValues[checkedValues.length] = this.checkboxes[i].value; } } return checkedValues; }
[ "function", "(", ")", "{", "var", "checkedValues", "=", "[", "]", ";", "for", "(", "var", "i", "=", "0", ",", "j", "=", "this", ".", "checkboxes", ".", "length", ";", "i", "<", "j", ";", "i", "++", ")", "{", "if", "(", "this", ".", "checkboxe...
Retrieves input value from CheckboxCellEditor. @method getInputValue
[ "Retrieves", "input", "value", "from", "CheckboxCellEditor", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16287-L16295
42,584
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var value = this.value; var selectedValue = (value.getMonth()+1)+"/"+value.getDate()+"/"+value.getFullYear(); this.calendar.cfg.setProperty("selected",selectedValue,false); this.calendar.render(); }
javascript
function() { var value = this.value; var selectedValue = (value.getMonth()+1)+"/"+value.getDate()+"/"+value.getFullYear(); this.calendar.cfg.setProperty("selected",selectedValue,false); this.calendar.render(); }
[ "function", "(", ")", "{", "var", "value", "=", "this", ".", "value", ";", "var", "selectedValue", "=", "(", "value", ".", "getMonth", "(", ")", "+", "1", ")", "+", "\"/\"", "+", "value", ".", "getDate", "(", ")", "+", "\"/\"", "+", "value", ".",...
Resets DateCellEditor UI to initial state. @method resetForm
[ "Resets", "DateCellEditor", "UI", "to", "initial", "state", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16418-L16423
42,585
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var allOptions = this.dropdown.options, i=0, j=allOptions.length; // Look for multi-select selections if(lang.isArray(this.value)) { var allValues = this.value, m=0, n=allValues.length, hash = {}; // Reset all selections and stash options in a va...
javascript
function() { var allOptions = this.dropdown.options, i=0, j=allOptions.length; // Look for multi-select selections if(lang.isArray(this.value)) { var allValues = this.value, m=0, n=allValues.length, hash = {}; // Reset all selections and stash options in a va...
[ "function", "(", ")", "{", "var", "allOptions", "=", "this", ".", "dropdown", ".", "options", ",", "i", "=", "0", ",", "j", "=", "allOptions", ".", "length", ";", "// Look for multi-select selections", "if", "(", "lang", ".", "isArray", "(", "this", ".",...
Resets DropdownCellEditor UI to initial state. @method resetForm
[ "Resets", "DropdownCellEditor", "UI", "to", "initial", "state", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16586-L16614
42,586
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { var allOptions = this.dropdown.options; // Look for multiple selections if(this.multiple) { var values = [], i=0, j=allOptions.length; for(; i<j; i++) { if(allOptions[i].selected) { values.push(allOptions[i].value); } ...
javascript
function() { var allOptions = this.dropdown.options; // Look for multiple selections if(this.multiple) { var values = [], i=0, j=allOptions.length; for(; i<j; i++) { if(allOptions[i].selected) { values.push(allOptions[i].value); } ...
[ "function", "(", ")", "{", "var", "allOptions", "=", "this", ".", "dropdown", ".", "options", ";", "// Look for multiple selections", "if", "(", "this", ".", "multiple", ")", "{", "var", "values", "=", "[", "]", ",", "i", "=", "0", ",", "j", "=", "al...
Retrieves input value from DropdownCellEditor. @method getInputValue
[ "Retrieves", "input", "value", "from", "DropdownCellEditor", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16630-L16648
42,587
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { for(var i=0, j=this.radios.length; i<j; i++) { var elRadio = this.radios[i]; if(this.value === elRadio.value) { elRadio.checked = true; return; } } }
javascript
function() { for(var i=0, j=this.radios.length; i<j; i++) { var elRadio = this.radios[i]; if(this.value === elRadio.value) { elRadio.checked = true; return; } } }
[ "function", "(", ")", "{", "for", "(", "var", "i", "=", "0", ",", "j", "=", "this", ".", "radios", ".", "length", ";", "i", "<", "j", ";", "i", "++", ")", "{", "var", "elRadio", "=", "this", ".", "radios", "[", "i", "]", ";", "if", "(", "...
Resets RadioCellEditor UI to initial state. @method resetForm
[ "Resets", "RadioCellEditor", "UI", "to", "initial", "state", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16775-L16783
42,588
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { for(var i=0, j=this.radios.length; i<j; i++) { if(this.radios[i].checked) { this.radios[i].focus(); return; } } }
javascript
function() { for(var i=0, j=this.radios.length; i<j; i++) { if(this.radios[i].checked) { this.radios[i].focus(); return; } } }
[ "function", "(", ")", "{", "for", "(", "var", "i", "=", "0", ",", "j", "=", "this", ".", "radios", ".", "length", ";", "i", "<", "j", ";", "i", "++", ")", "{", "if", "(", "this", ".", "radios", "[", "i", "]", ".", "checked", ")", "{", "th...
Sets focus in RadioCellEditor. @method focus
[ "Sets", "focus", "in", "RadioCellEditor", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16790-L16797
42,589
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { for(var i=0, j=this.radios.length; i<j; i++) { if(this.radios[i].checked) { return this.radios[i].value; } } }
javascript
function() { for(var i=0, j=this.radios.length; i<j; i++) { if(this.radios[i].checked) { return this.radios[i].value; } } }
[ "function", "(", ")", "{", "for", "(", "var", "i", "=", "0", ",", "j", "=", "this", ".", "radios", ".", "length", ";", "i", "<", "j", ";", "i", "++", ")", "{", "if", "(", "this", ".", "radios", "[", "i", "]", ".", "checked", ")", "{", "re...
Retrieves input value from RadioCellEditor. @method getInputValue
[ "Retrieves", "input", "value", "from", "RadioCellEditor", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16804-L16810
42,590
neyric/webhookit
public/javascripts/yui/datatable/datatable.js
function() { this.textarea.style.width = this.getTdEl().offsetWidth + "px"; this.textarea.style.height = "3em"; YAHOO.widget.TextareaCellEditor.superclass.move.call(this); }
javascript
function() { this.textarea.style.width = this.getTdEl().offsetWidth + "px"; this.textarea.style.height = "3em"; YAHOO.widget.TextareaCellEditor.superclass.move.call(this); }
[ "function", "(", ")", "{", "this", ".", "textarea", ".", "style", ".", "width", "=", "this", ".", "getTdEl", "(", ")", ".", "offsetWidth", "+", "\"px\"", ";", "this", ".", "textarea", ".", "style", ".", "height", "=", "\"3em\"", ";", "YAHOO", ".", ...
Moves TextareaCellEditor UI to a cell. @method move
[ "Moves", "TextareaCellEditor", "UI", "to", "a", "cell", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable.js#L16896-L16900
42,591
izolate/agegate
dist/index.js
validateData
function validateData(data) { var random = Math.floor(Math.random() * (data.length - 0) + 0); // ensure: containing Array and Object keys var ok = Array.isArray(data) || data instanceof Array; ok = ok && ['code', 'name', 'age'].every(function (k) { return data[random].hasOwnPr...
javascript
function validateData(data) { var random = Math.floor(Math.random() * (data.length - 0) + 0); // ensure: containing Array and Object keys var ok = Array.isArray(data) || data instanceof Array; ok = ok && ['code', 'name', 'age'].every(function (k) { return data[random].hasOwnPr...
[ "function", "validateData", "(", "data", ")", "{", "var", "random", "=", "Math", ".", "floor", "(", "Math", ".", "random", "(", ")", "*", "(", "data", ".", "length", "-", "0", ")", "+", "0", ")", ";", "// ensure: containing Array and Object keys", "var",...
Check data structure of supplied data @param {Array} data
[ "Check", "data", "structure", "of", "supplied", "data" ]
7869cde6d5c8805ec9424e763cb5d47dc5807408
https://github.com/izolate/agegate/blob/7869cde6d5c8805ec9424e763cb5d47dc5807408/dist/index.js#L51-L61
42,592
neyric/webhookit
public/javascripts/yui/treeview/treeview.js
function(id) { this._el = Dom.get(id); this.id = Dom.generateId(this._el,"yui-tv-auto-id-"); /** * When animation is enabled, this event fires when the animation * starts * @event animStart * @type CustomEvent * @param {YAHOO.widget.Node} oArgs.node the ...
javascript
function(id) { this._el = Dom.get(id); this.id = Dom.generateId(this._el,"yui-tv-auto-id-"); /** * When animation is enabled, this event fires when the animation * starts * @event animStart * @type CustomEvent * @param {YAHOO.widget.Node} oArgs.node the ...
[ "function", "(", "id", ")", "{", "this", ".", "_el", "=", "Dom", ".", "get", "(", "id", ")", ";", "this", ".", "id", "=", "Dom", ".", "generateId", "(", "this", ".", "_el", ",", "\"yui-tv-auto-id-\"", ")", ";", "/**\n * When animation is enabled,...
Initializes the tree @method init @parm {string|HTMLElement} id the id of the element that will hold the tree @private
[ "Initializes", "the", "tree" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L266-L413
42,593
neyric/webhookit
public/javascripts/yui/treeview/treeview.js
function (ev) { var target = Event.getTarget(ev); // go up looking for a TD with a className with a ygtv prefix while (target && !(target.tagName.toUpperCase() == 'TD' && Dom.hasClass(target.parentNode,'ygtvrow'))) { target = Dom.getAncestorByTagName(target,'td'); } ...
javascript
function (ev) { var target = Event.getTarget(ev); // go up looking for a TD with a className with a ygtv prefix while (target && !(target.tagName.toUpperCase() == 'TD' && Dom.hasClass(target.parentNode,'ygtvrow'))) { target = Dom.getAncestorByTagName(target,'td'); } ...
[ "function", "(", "ev", ")", "{", "var", "target", "=", "Event", ".", "getTarget", "(", "ev", ")", ";", "// go up looking for a TD with a className with a ygtv prefix", "while", "(", "target", "&&", "!", "(", "target", ".", "tagName", ".", "toUpperCase", "(", "...
Returns the TD element where the event has occurred @method _getEventTargetTdEl @private
[ "Returns", "the", "TD", "element", "where", "the", "event", "has", "occurred" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L591-L608
42,594
neyric/webhookit
public/javascripts/yui/treeview/treeview.js
function (ev) { var self = this, td = this._getEventTargetTdEl(ev), node, target, toggle = function (force) { node.focus(); if (force || !node.href) { node.toggle(); try { Event.preventDefault(ev); } catch (e) { ...
javascript
function (ev) { var self = this, td = this._getEventTargetTdEl(ev), node, target, toggle = function (force) { node.focus(); if (force || !node.href) { node.toggle(); try { Event.preventDefault(ev); } catch (e) { ...
[ "function", "(", "ev", ")", "{", "var", "self", "=", "this", ",", "td", "=", "this", ".", "_getEventTargetTdEl", "(", "ev", ")", ",", "node", ",", "target", ",", "toggle", "=", "function", "(", "force", ")", "{", "node", ".", "focus", "(", ")", "...
Event listener for click events @method _onClickEvent @private
[ "Event", "listener", "for", "click", "events" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L614-L680
42,595
neyric/webhookit
public/javascripts/yui/treeview/treeview.js
function (ev) { if (!this._hasDblClickSubscriber) { return; } var td = this._getEventTargetTdEl(ev); if (!td) {return;} if (!(/\bygtv[tl][mp]h?h?/.test(td.className))) { this.fireEvent('dblClickEvent', {event:ev, node:this.getNodeByElement(td)}); if (this._dblCl...
javascript
function (ev) { if (!this._hasDblClickSubscriber) { return; } var td = this._getEventTargetTdEl(ev); if (!td) {return;} if (!(/\bygtv[tl][mp]h?h?/.test(td.className))) { this.fireEvent('dblClickEvent', {event:ev, node:this.getNodeByElement(td)}); if (this._dblCl...
[ "function", "(", "ev", ")", "{", "if", "(", "!", "this", ".", "_hasDblClickSubscriber", ")", "{", "return", ";", "}", "var", "td", "=", "this", ".", "_getEventTargetTdEl", "(", "ev", ")", ";", "if", "(", "!", "td", ")", "{", "return", ";", "}", "...
Event listener for double-click events @method _onDblClickEvent @private
[ "Event", "listener", "for", "double", "-", "click", "events" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L687-L699
42,596
neyric/webhookit
public/javascripts/yui/treeview/treeview.js
function (ev) { var target; if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) { target.className = target.className.replace(/\bygtv([lt])([mp])\b/gi,'ygtv$1$2h'); } }
javascript
function (ev) { var target; if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) { target.className = target.className.replace(/\bygtv([lt])([mp])\b/gi,'ygtv$1$2h'); } }
[ "function", "(", "ev", ")", "{", "var", "target", ";", "if", "(", "(", "target", "=", "this", ".", "_getEventTargetTdEl", "(", "ev", ")", ")", "&&", "(", "target", "=", "this", ".", "getNodeByElement", "(", "target", ")", ")", "&&", "(", "target", ...
Event listener for mouse over events @method _onMouseOverEvent @private
[ "Event", "listener", "for", "mouse", "over", "events" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L705-L710
42,597
neyric/webhookit
public/javascripts/yui/treeview/treeview.js
function() { var html = this.root.getHtml(), el = this.getEl(); el.innerHTML = html; if (!this._hasEvents) { Event.on(el, 'click', this._onClickEvent, this, true); Event.on(el, 'dblclick', this._onDblClickEvent, this, true); Event.on(el, 'mouseover...
javascript
function() { var html = this.root.getHtml(), el = this.getEl(); el.innerHTML = html; if (!this._hasEvents) { Event.on(el, 'click', this._onClickEvent, this, true); Event.on(el, 'dblclick', this._onDblClickEvent, this, true); Event.on(el, 'mouseover...
[ "function", "(", ")", "{", "var", "html", "=", "this", ".", "root", ".", "getHtml", "(", ")", ",", "el", "=", "this", ".", "getEl", "(", ")", ";", "el", ".", "innerHTML", "=", "html", ";", "if", "(", "!", "this", ".", "_hasEvents", ")", "{", ...
Renders the tree boilerplate and visible nodes @method render
[ "Renders", "the", "tree", "boilerplate", "and", "visible", "nodes" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L848-L860
42,598
neyric/webhookit
public/javascripts/yui/treeview/treeview.js
function(property, value) { for (var i in this._nodes) { if (this._nodes.hasOwnProperty(i)) { var n = this._nodes[i]; if ((property in n && n[property] == value) || (n.data && value == n.data[property])) { return n; } } ...
javascript
function(property, value) { for (var i in this._nodes) { if (this._nodes.hasOwnProperty(i)) { var n = this._nodes[i]; if ((property in n && n[property] == value) || (n.data && value == n.data[property])) { return n; } } ...
[ "function", "(", "property", ",", "value", ")", "{", "for", "(", "var", "i", "in", "this", ".", "_nodes", ")", "{", "if", "(", "this", ".", "_nodes", ".", "hasOwnProperty", "(", "i", ")", ")", "{", "var", "n", "=", "this", ".", "_nodes", "[", "...
Returns a node that has a matching property and value in the data object that was passed into its constructor. @method getNodeByProperty @param {object} property the property to search (usually a string) @param {object} value the value we want to find (usuall an int or string) @return {Node} the matching node, null if ...
[ "Returns", "a", "node", "that", "has", "a", "matching", "property", "and", "value", "in", "the", "data", "object", "that", "was", "passed", "into", "its", "constructor", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L950-L961
42,599
neyric/webhookit
public/javascripts/yui/treeview/treeview.js
function(property, value) { var values = []; for (var i in this._nodes) { if (this._nodes.hasOwnProperty(i)) { var n = this._nodes[i]; if ((property in n && n[property] == value) || (n.data && value == n.data[property])) { values.push(n); ...
javascript
function(property, value) { var values = []; for (var i in this._nodes) { if (this._nodes.hasOwnProperty(i)) { var n = this._nodes[i]; if ((property in n && n[property] == value) || (n.data && value == n.data[property])) { values.push(n); ...
[ "function", "(", "property", ",", "value", ")", "{", "var", "values", "=", "[", "]", ";", "for", "(", "var", "i", "in", "this", ".", "_nodes", ")", "{", "if", "(", "this", ".", "_nodes", ".", "hasOwnProperty", "(", "i", ")", ")", "{", "var", "n...
Returns a collection of nodes that have a matching property and value in the data object that was passed into its constructor. @method getNodesByProperty @param {object} property the property to search (usually a string) @param {object} value the value we want to find (usuall an int or string) @return {Array} the match...
[ "Returns", "a", "collection", "of", "nodes", "that", "have", "a", "matching", "property", "and", "value", "in", "the", "data", "object", "that", "was", "passed", "into", "its", "constructor", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L971-L983