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 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(fn) {
var values = [];
for (var i in this._nodes) {
if (this._nodes.hasOwnProperty(i)) {
var n = this._nodes[i];
if (fn(n)) {
values.push(n);
}
}
}
return (values.length) ? values : null;... | javascript | function(fn) {
var values = [];
for (var i in this._nodes) {
if (this._nodes.hasOwnProperty(i)) {
var n = this._nodes[i];
if (fn(n)) {
values.push(n);
}
}
}
return (values.length) ? values : null;... | [
"function",
"(",
"fn",
")",
"{",
"var",
"values",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"in",
"this",
".",
"_nodes",
")",
"{",
"if",
"(",
"this",
".",
"_nodes",
".",
"hasOwnProperty",
"(",
"i",
")",
")",
"{",
"var",
"n",
"=",
"this",
".... | Returns a collection of nodes that have passed the test function
passed as its only argument.
The function will receive a reference to each node to be tested.
@method getNodesBy
@param {function} a boolean function that receives a Node instance and returns true to add the node to the results list
@return {Array} the ma... | [
"Returns",
"a",
"collection",
"of",
"nodes",
"that",
"have",
"passed",
"the",
"test",
"function",
"passed",
"as",
"its",
"only",
"argument",
".",
"The",
"function",
"will",
"receive",
"a",
"reference",
"to",
"each",
"node",
"to",
"be",
"tested",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L994-L1005 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(el) {
var p=el, m, re=/ygtv([^\d]*)(.*)/;
do {
if (p && p.id) {
m = p.id.match(re);
if (m && m[2]) {
return this.getNodeByIndex(m[2]);
}
}
p = p.parentNode;
if (!p || !p.tagN... | javascript | function(el) {
var p=el, m, re=/ygtv([^\d]*)(.*)/;
do {
if (p && p.id) {
m = p.id.match(re);
if (m && m[2]) {
return this.getNodeByIndex(m[2]);
}
}
p = p.parentNode;
if (!p || !p.tagN... | [
"function",
"(",
"el",
")",
"{",
"var",
"p",
"=",
"el",
",",
"m",
",",
"re",
"=",
"/",
"ygtv([^\\d]*)(.*)",
"/",
";",
"do",
"{",
"if",
"(",
"p",
"&&",
"p",
".",
"id",
")",
"{",
"m",
"=",
"p",
".",
"id",
".",
"match",
"(",
"re",
")",
";",
... | Returns the treeview node reference for an ancestor element
of the node, or null if it is not contained within any node
in this tree.
@method getNodeByElement
@param el {HTMLElement} the element to test
@return {YAHOO.widget.Node} a node reference or null | [
"Returns",
"the",
"treeview",
"node",
"reference",
"for",
"an",
"ancestor",
"element",
"of",
"the",
"node",
"or",
"null",
"if",
"it",
"is",
"not",
"contained",
"within",
"any",
"node",
"in",
"this",
"tree",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1014-L1037 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(node, autoRefresh) {
// Don't delete the root node
if (node.isRoot()) {
return false;
}
// Get the branch that we may need to refresh
var p = node.parent;
if (p.parent) {
p = p.parent;
}
// Delete the node and its child... | javascript | function(node, autoRefresh) {
// Don't delete the root node
if (node.isRoot()) {
return false;
}
// Get the branch that we may need to refresh
var p = node.parent;
if (p.parent) {
p = p.parent;
}
// Delete the node and its child... | [
"function",
"(",
"node",
",",
"autoRefresh",
")",
"{",
"// Don't delete the root node",
"if",
"(",
"node",
".",
"isRoot",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"// Get the branch that we may need to refresh",
"var",
"p",
"=",
"node",
".",
"parent",
... | Removes the node and its children, and optionally refreshes the
branch of the tree that was affected.
@method removeNode
@param {Node} node to remove
@param {boolean} autoRefresh automatically refreshes branch if true
@return {boolean} False is there was a problem, true otherwise. | [
"Removes",
"the",
"node",
"and",
"its",
"children",
"and",
"optionally",
"refreshes",
"the",
"branch",
"of",
"the",
"tree",
"that",
"was",
"affected",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1058-L1080 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(node) {
var p = node.parent;
// Update the parent's collection of children
var a = [];
for (var i=0, len=p.children.length;i<len;++i) {
if (p.children[i] != node) {
a[a.length] = p.children[i];
}
}
p.children = a;
... | javascript | function(node) {
var p = node.parent;
// Update the parent's collection of children
var a = [];
for (var i=0, len=p.children.length;i<len;++i) {
if (p.children[i] != node) {
a[a.length] = p.children[i];
}
}
p.children = a;
... | [
"function",
"(",
"node",
")",
"{",
"var",
"p",
"=",
"node",
".",
"parent",
";",
"// Update the parent's collection of children",
"var",
"a",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"p",
".",
"children",
".",
"length",
"... | Removes the node from the tree, preserving the child collection
to make it possible to insert the branch into another part of the
tree, or another tree.
@method popNode
@param {Node} node to remove | [
"Removes",
"the",
"node",
"from",
"the",
"tree",
"preserving",
"the",
"child",
"collection",
"to",
"make",
"it",
"possible",
"to",
"insert",
"the",
"branch",
"into",
"another",
"part",
"of",
"the",
"tree",
"or",
"another",
"tree",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1151-L1191 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
// Since the label editor can be separated from the main TreeView control
// the destroy method for it might not be there.
if (this._destroyEditor) { this._destroyEditor(); }
var el = this.getEl();
Event.removeListener(el,'click');
Event.removeListener(el,'db... | javascript | function() {
// Since the label editor can be separated from the main TreeView control
// the destroy method for it might not be there.
if (this._destroyEditor) { this._destroyEditor(); }
var el = this.getEl();
Event.removeListener(el,'click');
Event.removeListener(el,'db... | [
"function",
"(",
")",
"{",
"// Since the label editor can be separated from the main TreeView control",
"// the destroy method for it might not be there.",
"if",
"(",
"this",
".",
"_destroyEditor",
")",
"{",
"this",
".",
"_destroyEditor",
"(",
")",
";",
"}",
"var",
"el",
... | Nulls out the entire TreeView instance and related objects, removes attached
event listeners, and clears out DOM elements inside the container. After
calling this method, the instance reference should be expliclitly nulled by
implementer, as in myDataTable = null. Use with caution!
@method destroy | [
"Nulls",
"out",
"the",
"entire",
"TreeView",
"instance",
"and",
"related",
"objects",
"removes",
"attached",
"event",
"listeners",
"and",
"clears",
"out",
"DOM",
"elements",
"inside",
"the",
"container",
".",
"After",
"calling",
"this",
"method",
"the",
"instanc... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1201-L1217 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(name, value, refresh) {
this.root.setNodesProperty(name,value);
if (refresh) {
this.root.refresh();
}
} | javascript | function(name, value, refresh) {
this.root.setNodesProperty(name,value);
if (refresh) {
this.root.refresh();
}
} | [
"function",
"(",
"name",
",",
"value",
",",
"refresh",
")",
"{",
"this",
".",
"root",
".",
"setNodesProperty",
"(",
"name",
",",
"value",
")",
";",
"if",
"(",
"refresh",
")",
"{",
"this",
".",
"root",
".",
"refresh",
"(",
")",
";",
"}",
"}"
] | Sets the value of a property for all loaded nodes in the tree.
@method setNodesProperty
@param name {string} Name of the property to be set
@param value {any} value to be set
@param refresh {boolean} if present and true, it does a refresh | [
"Sets",
"the",
"value",
"of",
"a",
"property",
"for",
"all",
"loaded",
"nodes",
"in",
"the",
"tree",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1274-L1279 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function (oArgs) {
var node;
if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
node = oArgs.node;
} else if (oArgs instanceof Widget.Node) {
node = oArgs;
} else {
return false;
}
node.toggleHighlight();
return false;
... | javascript | function (oArgs) {
var node;
if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
node = oArgs.node;
} else if (oArgs instanceof Widget.Node) {
node = oArgs;
} else {
return false;
}
node.toggleHighlight();
return false;
... | [
"function",
"(",
"oArgs",
")",
"{",
"var",
"node",
";",
"if",
"(",
"'node'",
"in",
"oArgs",
"&&",
"oArgs",
".",
"node",
"instanceof",
"Widget",
".",
"Node",
")",
"{",
"node",
"=",
"oArgs",
".",
"node",
";",
"}",
"else",
"if",
"(",
"oArgs",
"instanc... | Event listener to toggle node highlight.
Can be assigned as listener to clickEvent, dblClickEvent and enterKeyPressed.
It returns false to prevent the default action.
@method onEventToggleHighlight
@param oArgs {any} it takes the arguments of any of the events mentioned above
@return {false} Always cancels the default ... | [
"Event",
"listener",
"to",
"toggle",
"node",
"highlight",
".",
"Can",
"be",
"assigned",
"as",
"listener",
"to",
"clickEvent",
"dblClickEvent",
"and",
"enterKeyPressed",
".",
"It",
"returns",
"false",
"to",
"prevent",
"the",
"default",
"action",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1288-L1299 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(parentNode) {
if (!parentNode) {
return false;
}
this.tree = parentNode.tree;
this.parent = parentNode;
this.depth = parentNode.depth + 1;
// @todo why was this put here. This causes new nodes added at the
// root level to lose the menu ... | javascript | function(parentNode) {
if (!parentNode) {
return false;
}
this.tree = parentNode.tree;
this.parent = parentNode;
this.depth = parentNode.depth + 1;
// @todo why was this put here. This causes new nodes added at the
// root level to lose the menu ... | [
"function",
"(",
"parentNode",
")",
"{",
"if",
"(",
"!",
"parentNode",
")",
"{",
"return",
"false",
";",
"}",
"this",
".",
"tree",
"=",
"parentNode",
".",
"tree",
";",
"this",
".",
"parent",
"=",
"parentNode",
";",
"this",
".",
"depth",
"=",
"parentN... | Certain properties for the node cannot be set until the parent
is known. This is called after the node is inserted into a tree.
the parent is also applied to this node's children in order to
make it possible to move a branch from one tree to another.
@method applyParent
@param {Node} parentNode this node's parent node
... | [
"Certain",
"properties",
"for",
"the",
"node",
"cannot",
"be",
"set",
"until",
"the",
"parent",
"is",
"known",
".",
"This",
"is",
"called",
"after",
"the",
"node",
"is",
"inserted",
"into",
"a",
"tree",
".",
"the",
"parent",
"is",
"also",
"applied",
"to"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1704-L1730 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(childNode) {
if (this.hasChildren()) {
var sib = this.children[this.children.length - 1];
sib.nextSibling = childNode;
childNode.previousSibling = sib;
}
this.children[this.children.length] = childNode;
childNode.applyParent(this);
//... | javascript | function(childNode) {
if (this.hasChildren()) {
var sib = this.children[this.children.length - 1];
sib.nextSibling = childNode;
childNode.previousSibling = sib;
}
this.children[this.children.length] = childNode;
childNode.applyParent(this);
//... | [
"function",
"(",
"childNode",
")",
"{",
"if",
"(",
"this",
".",
"hasChildren",
"(",
")",
")",
"{",
"var",
"sib",
"=",
"this",
".",
"children",
"[",
"this",
".",
"children",
".",
"length",
"-",
"1",
"]",
";",
"sib",
".",
"nextSibling",
"=",
"childNo... | Appends a node to the child collection.
@method appendChild
@param childNode {Node} the new node
@return {Node} the child node
@private | [
"Appends",
"a",
"node",
"to",
"the",
"child",
"collection",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1739-L1757 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(parentNode) {
if (parentNode && parentNode.children) {
for (var i=0, len=parentNode.children.length; i<len ; ++i) {
if (parentNode.children[i] === this) {
return i;
}
}
}
return -1;
} | javascript | function(parentNode) {
if (parentNode && parentNode.children) {
for (var i=0, len=parentNode.children.length; i<len ; ++i) {
if (parentNode.children[i] === this) {
return i;
}
}
}
return -1;
} | [
"function",
"(",
"parentNode",
")",
"{",
"if",
"(",
"parentNode",
"&&",
"parentNode",
".",
"children",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"parentNode",
".",
"children",
".",
"length",
";",
"i",
"<",
"len",
";",
"++",
"i",
... | Returns true if the Node is a child of supplied Node
@method isChildOf
@param parentNode {Node} the Node to check
@return {boolean} The node index if this Node is a child of
supplied Node, else -1.
@private | [
"Returns",
"true",
"if",
"the",
"Node",
"is",
"a",
"child",
"of",
"supplied",
"Node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1840-L1850 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var sib = this.parent.children.slice(0);
for (var i=0;i < sib.length && sib[i] != this;i++) {}
sib.splice(i,1);
if (sib.length) { return sib; }
return null;
} | javascript | function() {
var sib = this.parent.children.slice(0);
for (var i=0;i < sib.length && sib[i] != this;i++) {}
sib.splice(i,1);
if (sib.length) { return sib; }
return null;
} | [
"function",
"(",
")",
"{",
"var",
"sib",
"=",
"this",
".",
"parent",
".",
"children",
".",
"slice",
"(",
"0",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"sib",
".",
"length",
"&&",
"sib",
"[",
"i",
"]",
"!=",
"this",
";",
"i... | Returns a node array of this node's siblings, null if none.
@method getSiblings
@return Node[] | [
"Returns",
"a",
"node",
"array",
"of",
"this",
"node",
"s",
"siblings",
"null",
"if",
"none",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L1857-L1863 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var l = this.children.length;
for (var i=0;i<l;++i) {
var c = this.children[i];
if (c.isDynamic()) {
break;
} else if (! c.multiExpand) {
break;
} else {
c.expand();
c.expandAll(... | javascript | function() {
var l = this.children.length;
for (var i=0;i<l;++i) {
var c = this.children[i];
if (c.isDynamic()) {
break;
} else if (! c.multiExpand) {
break;
} else {
c.expand();
c.expandAll(... | [
"function",
"(",
")",
"{",
"var",
"l",
"=",
"this",
".",
"children",
".",
"length",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"l",
";",
"++",
"i",
")",
"{",
"var",
"c",
"=",
"this",
".",
"children",
"[",
"i",
"]",
";",
"if",
"... | Recursively expands all of this node's children.
@method expandAll | [
"Recursively",
"expands",
"all",
"of",
"this",
"node",
"s",
"children",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2148-L2161 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
for (var i=0;i<this.children.length;++i) {
this.children[i].collapse();
this.children[i].collapseAll();
}
} | javascript | function() {
for (var i=0;i<this.children.length;++i) {
this.children[i].collapse();
this.children[i].collapseAll();
}
} | [
"function",
"(",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"children",
".",
"length",
";",
"++",
"i",
")",
"{",
"this",
".",
"children",
"[",
"i",
"]",
".",
"collapse",
"(",
")",
";",
"this",
".",
"children",
"["... | Recursively collapses all of this node's children.
@method collapseAll | [
"Recursively",
"collapses",
"all",
"of",
"this",
"node",
"s",
"children",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2167-L2172 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(fnDataLoader, iconMode) {
if (fnDataLoader) {
this.dataLoader = fnDataLoader;
this._dynLoad = true;
} else {
this.dataLoader = null;
this._dynLoad = false;
}
if (iconMode) {
this.iconMode = iconMode;
}
} | javascript | function(fnDataLoader, iconMode) {
if (fnDataLoader) {
this.dataLoader = fnDataLoader;
this._dynLoad = true;
} else {
this.dataLoader = null;
this._dynLoad = false;
}
if (iconMode) {
this.iconMode = iconMode;
}
} | [
"function",
"(",
"fnDataLoader",
",",
"iconMode",
")",
"{",
"if",
"(",
"fnDataLoader",
")",
"{",
"this",
".",
"dataLoader",
"=",
"fnDataLoader",
";",
"this",
".",
"_dynLoad",
"=",
"true",
";",
"}",
"else",
"{",
"this",
".",
"dataLoader",
"=",
"null",
"... | Configures this node for dynamically obtaining the child data
when the node is first expanded. Calling it without the callback
will turn off dynamic load for the node.
@method setDynamicLoad
@param fmDataLoader {function} the function that will be used to get the data.
@param iconMode {int} configures the icon that is... | [
"Configures",
"this",
"node",
"for",
"dynamically",
"obtaining",
"the",
"child",
"data",
"when",
"the",
"node",
"is",
"first",
"expanded",
".",
"Calling",
"it",
"without",
"the",
"callback",
"will",
"turn",
"off",
"dynamic",
"load",
"for",
"the",
"node",
"."... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2185-L2197 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var sb = [];
sb[sb.length] = '<div class="ygtvchildren" id="' + this.getChildrenElId() + '"';
// This is a workaround for an IE rendering issue, the child div has layout
// in IE, creating extra space if a leaf node is created with the expanded
// property set to ... | javascript | function() {
var sb = [];
sb[sb.length] = '<div class="ygtvchildren" id="' + this.getChildrenElId() + '"';
// This is a workaround for an IE rendering issue, the child div has layout
// in IE, creating extra space if a leaf node is created with the expanded
// property set to ... | [
"function",
"(",
")",
"{",
"var",
"sb",
"=",
"[",
"]",
";",
"sb",
"[",
"sb",
".",
"length",
"]",
"=",
"'<div class=\"ygtvchildren\" id=\"'",
"+",
"this",
".",
"getChildrenElId",
"(",
")",
"+",
"'\"'",
";",
"// This is a workaround for an IE rendering issue, the ... | Called when first rendering the tree. We always build the div that will
contain this nodes children, but we don't render the children themselves
unless this node is expanded.
@method getChildrenHtml
@return {string} the children container div html and any expanded children
@private | [
"Called",
"when",
"first",
"rendering",
"the",
"tree",
".",
"We",
"always",
"build",
"the",
"div",
"that",
"will",
"contain",
"this",
"nodes",
"children",
"but",
"we",
"don",
"t",
"render",
"the",
"children",
"themselves",
"unless",
"this",
"node",
"is",
"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2288-L2312 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
// this.loadComplete();
this.getChildrenEl().innerHTML = this.completeRender();
if (this.hasIcon) {
var el = this.getToggleEl();
if (el) {
el.className = el.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());
}
}
... | javascript | function() {
// this.loadComplete();
this.getChildrenEl().innerHTML = this.completeRender();
if (this.hasIcon) {
var el = this.getToggleEl();
if (el) {
el.className = el.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());
}
}
... | [
"function",
"(",
")",
"{",
"// this.loadComplete();",
"this",
".",
"getChildrenEl",
"(",
")",
".",
"innerHTML",
"=",
"this",
".",
"completeRender",
"(",
")",
";",
"if",
"(",
"this",
".",
"hasIcon",
")",
"{",
"var",
"el",
"=",
"this",
".",
"getToggleEl",
... | Regenerates the html for this node and its children. To be used when the
node is expanded and new children have been added.
@method refresh | [
"Regenerates",
"the",
"html",
"for",
"this",
"node",
"and",
"its",
"children",
".",
"To",
"be",
"used",
"when",
"the",
"node",
"is",
"expanded",
"and",
"new",
"children",
"have",
"been",
"added",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2493-L2503 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function () {
if (this._focusedItem) {
Event.removeListener(this._focusedItem,'blur');
this._focusedItem = null;
}
var el;
while ((el = this._focusHighlightedItems.shift())) { // yes, it is meant as an assignment, really
Dom.removeClass(el,YAHOO.widge... | javascript | function () {
if (this._focusedItem) {
Event.removeListener(this._focusedItem,'blur');
this._focusedItem = null;
}
var el;
while ((el = this._focusHighlightedItems.shift())) { // yes, it is meant as an assignment, really
Dom.removeClass(el,YAHOO.widge... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"_focusedItem",
")",
"{",
"Event",
".",
"removeListener",
"(",
"this",
".",
"_focusedItem",
",",
"'blur'",
")",
";",
"this",
".",
"_focusedItem",
"=",
"null",
";",
"}",
"var",
"el",
";",
"while",
"("... | Removes the focus of previously selected Node
@method _removeFocus
@private | [
"Removes",
"the",
"focus",
"of",
"previously",
"selected",
"Node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2544-L2553 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function () {
var focused = false, self = this;
if (this.tree.currentFocus) {
this.tree.currentFocus._removeFocus();
}
var expandParent = function (node) {
if (node.parent) {
expandParent(node.parent);
node.parent.expand();
... | javascript | function () {
var focused = false, self = this;
if (this.tree.currentFocus) {
this.tree.currentFocus._removeFocus();
}
var expandParent = function (node) {
if (node.parent) {
expandParent(node.parent);
node.parent.expand();
... | [
"function",
"(",
")",
"{",
"var",
"focused",
"=",
"false",
",",
"self",
"=",
"this",
";",
"if",
"(",
"this",
".",
"tree",
".",
"currentFocus",
")",
"{",
"this",
".",
"tree",
".",
"currentFocus",
".",
"_removeFocus",
"(",
")",
";",
"}",
"var",
"expa... | Sets the focus on the node element.
It will only be able to set the focus on nodes that have anchor elements in it.
Toggle or branch icons have anchors and can be focused on.
If will fail in nodes that have no anchor
@method focus
@return {boolean} success | [
"Sets",
"the",
"focus",
"on",
"the",
"node",
"element",
".",
"It",
"will",
"only",
"be",
"able",
"to",
"set",
"the",
"focus",
"on",
"nodes",
"that",
"have",
"anchor",
"elements",
"in",
"it",
".",
"Toggle",
"or",
"branch",
"icons",
"have",
"anchors",
"a... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2562-L2614 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
for (var i = 0, count = 0;i< this.children.length;i++) {
count += this.children[i].getNodeCount();
}
return count + 1;
} | javascript | function() {
for (var i = 0, count = 0;i< this.children.length;i++) {
count += this.children[i].getNodeCount();
}
return count + 1;
} | [
"function",
"(",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"count",
"=",
"0",
";",
"i",
"<",
"this",
".",
"children",
".",
"length",
";",
"i",
"++",
")",
"{",
"count",
"+=",
"this",
".",
"children",
"[",
"i",
"]",
".",
"getNodeCount",
... | Count of nodes in a branch
@method getNodeCount
@return {int} number of nodes in the branch | [
"Count",
"of",
"nodes",
"in",
"a",
"branch"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2621-L2626 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
if (this.isDynamic()) { return false; }
var def, defs = Lang.merge(this.data), children = [];
if (this.expanded) {defs.expanded = this.expanded; }
if (!this.multiExpand) { defs.multiExpand = this.multiExpand; }
if (!this.renderHidden... | javascript | function() {
if (this.isDynamic()) { return false; }
var def, defs = Lang.merge(this.data), children = [];
if (this.expanded) {defs.expanded = this.expanded; }
if (!this.multiExpand) { defs.multiExpand = this.multiExpand; }
if (!this.renderHidden... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"isDynamic",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"var",
"def",
",",
"defs",
"=",
"Lang",
".",
"merge",
"(",
"this",
".",
"data",
")",
",",
"children",
"=",
"[",
"]",
";",
"if",
"... | Returns an object which could be used to build a tree out of this node and its children.
It can be passed to the tree constructor to reproduce this node as a tree.
It will return false if the node or any children loads dynamically, regardless of whether it is loaded or not.
@method getNodeDefinition
@return {Object | f... | [
"Returns",
"an",
"object",
"which",
"could",
"be",
"used",
"to",
"build",
"a",
"tree",
"out",
"of",
"this",
"node",
"and",
"its",
"children",
".",
"It",
"can",
"be",
"passed",
"to",
"the",
"tree",
"constructor",
"to",
"reproduce",
"this",
"node",
"as",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2635-L2665 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(name, value, refresh) {
if (name.charAt(0) != '_' && !Lang.isUndefined(this[name]) && !Lang.isFunction(this[name]) ) {
this[name] = value;
} else {
this.data[name] = value;
}
for (var i = 0; i < this.children.length;i++) {
this.children[i].se... | javascript | function(name, value, refresh) {
if (name.charAt(0) != '_' && !Lang.isUndefined(this[name]) && !Lang.isFunction(this[name]) ) {
this[name] = value;
} else {
this.data[name] = value;
}
for (var i = 0; i < this.children.length;i++) {
this.children[i].se... | [
"function",
"(",
"name",
",",
"value",
",",
"refresh",
")",
"{",
"if",
"(",
"name",
".",
"charAt",
"(",
"0",
")",
"!=",
"'_'",
"&&",
"!",
"Lang",
".",
"isUndefined",
"(",
"this",
"[",
"name",
"]",
")",
"&&",
"!",
"Lang",
".",
"isFunction",
"(",
... | Sets the value of property for this node and all loaded descendants.
Only public and defined properties can be set, not methods.
Values for unknown properties will be assigned to the refNode.data object
@method setNodesProperty
@param name {string} Name of the property to be set
@param value {any} value to be set
@para... | [
"Sets",
"the",
"value",
"of",
"property",
"for",
"this",
"node",
"and",
"all",
"loaded",
"descendants",
".",
"Only",
"public",
"and",
"defined",
"properties",
"can",
"be",
"set",
"not",
"methods",
".",
"Values",
"for",
"unknown",
"properties",
"will",
"be",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2686-L2698 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(_silent) {
if (this.enableHighlight) {
if (this.tree.singleNodeHighlight) {
if (this.tree._currentlyHighlighted) {
this.tree._currentlyHighlighted.unhighlight(_silent);
}
this.tree._currentlyHighlighted = this;
... | javascript | function(_silent) {
if (this.enableHighlight) {
if (this.tree.singleNodeHighlight) {
if (this.tree._currentlyHighlighted) {
this.tree._currentlyHighlighted.unhighlight(_silent);
}
this.tree._currentlyHighlighted = this;
... | [
"function",
"(",
"_silent",
")",
"{",
"if",
"(",
"this",
".",
"enableHighlight",
")",
"{",
"if",
"(",
"this",
".",
"tree",
".",
"singleNodeHighlight",
")",
"{",
"if",
"(",
"this",
".",
"tree",
".",
"_currentlyHighlighted",
")",
"{",
"this",
".",
"tree"... | Turns highlighting on node.
@method highlight
@param _silent {boolean} optional, don't fire the highlightEvent | [
"Turns",
"highlighting",
"on",
"node",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2719-L2745 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var yes = false, no = false;
if (this.enableHighlight) {
for (var i = 0;i < this.children.length;i++) {
switch(this.children[i].highlightState) {
case 0:
no = true;
break;
cas... | javascript | function() {
var yes = false, no = false;
if (this.enableHighlight) {
for (var i = 0;i < this.children.length;i++) {
switch(this.children[i].highlightState) {
case 0:
no = true;
break;
cas... | [
"function",
"(",
")",
"{",
"var",
"yes",
"=",
"false",
",",
"no",
"=",
"false",
";",
"if",
"(",
"this",
".",
"enableHighlight",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"children",
".",
"length",
";",
"i",
"++",
... | Checks whether all or part of the children of a node are highlighted and
sets the node highlight to full, none or partial highlight.
If set to propagate it will further call the parent
@method _childrenHighlighted
@private | [
"Checks",
"whether",
"all",
"or",
"part",
"of",
"the",
"children",
"of",
"a",
"node",
"are",
"highlighted",
"and",
"sets",
"the",
"node",
"highlight",
"to",
"full",
"none",
"or",
"partial",
"highlight",
".",
"If",
"set",
"to",
"propagate",
"it",
"will",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2781-L2811 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var el = Dom.get('ygtvtableel' + this.index);
if (el) {
el.className = el.className.replace(/\bygtv-highlight\d\b/gi,'ygtv-highlight' + this.highlightState);
}
} | javascript | function() {
var el = Dom.get('ygtvtableel' + this.index);
if (el) {
el.className = el.className.replace(/\bygtv-highlight\d\b/gi,'ygtv-highlight' + this.highlightState);
}
} | [
"function",
"(",
")",
"{",
"var",
"el",
"=",
"Dom",
".",
"get",
"(",
"'ygtvtableel'",
"+",
"this",
".",
"index",
")",
";",
"if",
"(",
"el",
")",
"{",
"el",
".",
"className",
"=",
"el",
".",
"className",
".",
"replace",
"(",
"/",
"\\bygtv-highlight\... | Changes the classNames on the toggle and content containers to reflect the current highlighting
@method _setHighlightClassName
@private | [
"Changes",
"the",
"classNames",
"on",
"the",
"toggle",
"and",
"content",
"containers",
"to",
"reflect",
"the",
"current",
"highlighting"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2818-L2823 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
for (var def, defs = [], i = 0; i < this.children.length;i++) {
def = this.children[i].getNodeDefinition();
if (def === false) { return false;}
defs.push(def);
}
return defs;
} | javascript | function() {
for (var def, defs = [], i = 0; i < this.children.length;i++) {
def = this.children[i].getNodeDefinition();
if (def === false) { return false;}
defs.push(def);
}
return defs;
} | [
"function",
"(",
")",
"{",
"for",
"(",
"var",
"def",
",",
"defs",
"=",
"[",
"]",
",",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"children",
".",
"length",
";",
"i",
"++",
")",
"{",
"def",
"=",
"this",
".",
"children",
"[",
"i",
"]",
".",
... | Returns an object which could be used to build a tree out of this node and its children.
It can be passed to the tree constructor to reproduce this node as a tree.
Since the RootNode is automatically created by treeView,
its own definition is excluded from the returned node definition
which only contains its children.
... | [
"Returns",
"an",
"object",
"which",
"could",
"be",
"used",
"to",
"build",
"a",
"tree",
"out",
"of",
"this",
"node",
"and",
"its",
"children",
".",
"It",
"can",
"be",
"passed",
"to",
"the",
"tree",
"constructor",
"to",
"reproduce",
"this",
"node",
"as",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L2898-L2906 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var sb = [];
sb[sb.length] = this.href?'<a':'<span';
sb[sb.length] = ' id="' + this.labelElId + '"';
sb[sb.length] = ' class="' + this.labelStyle + '"';
if (this.href) {
sb[sb.length] = ' href="' + this.href + '"';
sb[sb.length] = ' target="... | javascript | function() {
var sb = [];
sb[sb.length] = this.href?'<a':'<span';
sb[sb.length] = ' id="' + this.labelElId + '"';
sb[sb.length] = ' class="' + this.labelStyle + '"';
if (this.href) {
sb[sb.length] = ' href="' + this.href + '"';
sb[sb.length] = ' target="... | [
"function",
"(",
")",
"{",
"var",
"sb",
"=",
"[",
"]",
";",
"sb",
"[",
"sb",
".",
"length",
"]",
"=",
"this",
".",
"href",
"?",
"'<a'",
":",
"'<span'",
";",
"sb",
"[",
"sb",
".",
"length",
"]",
"=",
"' id=\"'",
"+",
"this",
".",
"labelElId",
... | overrides YAHOO.widget.Node | [
"overrides",
"YAHOO",
".",
"widget",
".",
"Node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3045-L3061 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(o) {
this.html = (typeof o === "string") ? o : o.html;
var el = this.getContentEl();
if (el) {
el.innerHTML = this.html;
}
} | javascript | function(o) {
this.html = (typeof o === "string") ? o : o.html;
var el = this.getContentEl();
if (el) {
el.innerHTML = this.html;
}
} | [
"function",
"(",
"o",
")",
"{",
"this",
".",
"html",
"=",
"(",
"typeof",
"o",
"===",
"\"string\"",
")",
"?",
"o",
":",
"o",
".",
"html",
";",
"var",
"el",
"=",
"this",
".",
"getContentEl",
"(",
")",
";",
"if",
"(",
"el",
")",
"{",
"el",
".",
... | Synchronizes the node.html, and the node's content
@property setHtml
@param o {object} An html string or object containing an html property | [
"Synchronizes",
"the",
"node",
".",
"html",
"and",
"the",
"node",
"s",
"content"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3236-L3245 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var def = YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);
if (def === false) { return false; }
def.html = this.html;
return def;
} | javascript | function() {
var def = YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);
if (def === false) { return false; }
def.html = this.html;
return def;
} | [
"function",
"(",
")",
"{",
"var",
"def",
"=",
"YAHOO",
".",
"widget",
".",
"HTMLNode",
".",
"superclass",
".",
"getNodeDefinition",
".",
"call",
"(",
"this",
")",
";",
"if",
"(",
"def",
"===",
"false",
")",
"{",
"return",
"false",
";",
"}",
"def",
... | Returns an object which could be used to build a tree out of this node and its children.
It can be passed to the tree constructor to reproduce this node as a tree.
It will return false if any node loads dynamically, regardless of whether it is loaded or not.
@method getNodeDefinition
@return {Object | false} definitio... | [
"Returns",
"an",
"object",
"which",
"could",
"be",
"used",
"to",
"build",
"a",
"tree",
"out",
"of",
"this",
"node",
"and",
"its",
"children",
".",
"It",
"can",
"be",
"passed",
"to",
"the",
"tree",
"constructor",
"to",
"reproduce",
"this",
"node",
"as",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3259-L3265 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function (editorData) {
var cal, container = editorData.inputContainer;
if (Lang.isUndefined(Calendar)) {
Dom.replaceClass(editorData.editorPanel,'ygtv-edit-DateNode','ygtv-edit-TextNode');
YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this, editorData);... | javascript | function (editorData) {
var cal, container = editorData.inputContainer;
if (Lang.isUndefined(Calendar)) {
Dom.replaceClass(editorData.editorPanel,'ygtv-edit-DateNode','ygtv-edit-TextNode');
YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this, editorData);... | [
"function",
"(",
"editorData",
")",
"{",
"var",
"cal",
",",
"container",
"=",
"editorData",
".",
"inputContainer",
";",
"if",
"(",
"Lang",
".",
"isUndefined",
"(",
"Calendar",
")",
")",
"{",
"Dom",
".",
"replaceClass",
"(",
"editorData",
".",
"editorPanel"... | If YAHOO.widget.Calendar is available, it will pop up a Calendar to enter a new date. Otherwise, it falls back to a plain <input> textbox
@method fillEditorContainer
@param editorData {YAHOO.widget.TreeView.editorData} a shortcut to the static object holding editing information
@return void | [
"If",
"YAHOO",
".",
"widget",
".",
"Calendar",
"is",
"available",
"it",
"will",
"pop",
"up",
"a",
"Calendar",
"to",
"enter",
"a",
"new",
"date",
".",
"Otherwise",
"it",
"falls",
"back",
"to",
"a",
"plain",
"<",
";",
"input>",
";",
"textbox"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3324-L3362 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function (value,editorData) {
var node = editorData.node;
node.label = value;
node.getLabelEl().innerHTML = value;
} | javascript | function (value,editorData) {
var node = editorData.node;
node.label = value;
node.getLabelEl().innerHTML = value;
} | [
"function",
"(",
"value",
",",
"editorData",
")",
"{",
"var",
"node",
"=",
"editorData",
".",
"node",
";",
"node",
".",
"label",
"=",
"value",
";",
"node",
".",
"getLabelEl",
"(",
")",
".",
"innerHTML",
"=",
"value",
";",
"}"
] | Finally displays the newly entered date in the tree.
Overrides Node.displayEditedValue.
@method displayEditedValue
@param value {string} date to be displayed and stored in the node
@param editorData {YAHOO.widget.TreeView.editorData} a shortcut to the static object holding editing information | [
"Finally",
"displays",
"the",
"newly",
"entered",
"date",
"in",
"the",
"tree",
".",
"Overrides",
"Node",
".",
"displayEditedValue",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3393-L3397 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function(type, el, callback) {
if (YAHOO.widget[type]) {
return new YAHOO.widget[type](el, callback);
} else {
return null;
}
} | javascript | function(type, el, callback) {
if (YAHOO.widget[type]) {
return new YAHOO.widget[type](el, callback);
} else {
return null;
}
} | [
"function",
"(",
"type",
",",
"el",
",",
"callback",
")",
"{",
"if",
"(",
"YAHOO",
".",
"widget",
"[",
"type",
"]",
")",
"{",
"return",
"new",
"YAHOO",
".",
"widget",
"[",
"type",
"]",
"(",
"el",
",",
"callback",
")",
";",
"}",
"else",
"{",
"re... | Returns a ygAnim instance of the given type
@method getAnim
@param type {string} the type of animation
@param el {HTMLElement} the element to element (probably the children div)
@param callback {function} function to invoke when the animation is done.
@return {YAHOO.util.Animation} the animation instance
@static | [
"Returns",
"a",
"ygAnim",
"instance",
"of",
"the",
"given",
"type"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3848-L3854 | train | |
neyric/webhookit | public/javascripts/yui/treeview/treeview.js | function() {
var s = this.el.style;
s.display = "none";
s.opacity = 1;
s.filter = "alpha(opacity=100)";
this.callback();
} | javascript | function() {
var s = this.el.style;
s.display = "none";
s.opacity = 1;
s.filter = "alpha(opacity=100)";
this.callback();
} | [
"function",
"(",
")",
"{",
"var",
"s",
"=",
"this",
".",
"el",
".",
"style",
";",
"s",
".",
"display",
"=",
"\"none\"",
";",
"s",
".",
"opacity",
"=",
"1",
";",
"s",
".",
"filter",
"=",
"\"alpha(opacity=100)\"",
";",
"this",
".",
"callback",
"(",
... | Clean up and invoke callback
@method onComplete | [
"Clean",
"up",
"and",
"invoke",
"callback"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview.js#L3971-L3977 | train | |
neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(tab, index) {
var tabs = this.get('tabs'),
before = this.getTab(index),
tabParent = this._tabParent,
contentParent = this._contentParent,
tabElement = tab.get(ELEMENT),
contentEl = tab.get(CONTENT_EL);
if (... | javascript | function(tab, index) {
var tabs = this.get('tabs'),
before = this.getTab(index),
tabParent = this._tabParent,
contentParent = this._contentParent,
tabElement = tab.get(ELEMENT),
contentEl = tab.get(CONTENT_EL);
if (... | [
"function",
"(",
"tab",
",",
"index",
")",
"{",
"var",
"tabs",
"=",
"this",
".",
"get",
"(",
"'tabs'",
")",
",",
"before",
"=",
"this",
".",
"getTab",
"(",
"index",
")",
",",
"tabParent",
"=",
"this",
".",
"_tabParent",
",",
"contentParent",
"=",
"... | Adds a Tab to the TabView instance.
If no index is specified, the tab is added to the end of the tab list.
@method addTab
@param {YAHOO.widget.Tab} tab A Tab instance to add.
@param {Integer} index The position to add the tab.
@return void | [
"Adds",
"a",
"Tab",
"to",
"the",
"TabView",
"instance",
".",
"If",
"no",
"index",
"is",
"specified",
"the",
"tab",
"is",
"added",
"to",
"the",
"end",
"of",
"the",
"tab",
"list",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L94-L129 | train | |
neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(e) {
var target = Event.getTarget(e),
tabParent = this._tabParent,
tabs = this.get('tabs'),
tab,
tabEl,
contentEl;
if (Dom.isAncestor(tabParent, target) ) {
for (var i = 0, len ... | javascript | function(e) {
var target = Event.getTarget(e),
tabParent = this._tabParent,
tabs = this.get('tabs'),
tab,
tabEl,
contentEl;
if (Dom.isAncestor(tabParent, target) ) {
for (var i = 0, len ... | [
"function",
"(",
"e",
")",
"{",
"var",
"target",
"=",
"Event",
".",
"getTarget",
"(",
"e",
")",
",",
"tabParent",
"=",
"this",
".",
"_tabParent",
",",
"tabs",
"=",
"this",
".",
"get",
"(",
"'tabs'",
")",
",",
"tab",
",",
"tabEl",
",",
"contentEl",
... | Routes childNode events.
@method DOMEventHandler
@param {event} e The Dom event that is being handled.
@return void | [
"Routes",
"childNode",
"events",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L147-L171 | train | |
neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(tab) {
var index = null,
tabs = this.get('tabs');
for (var i = 0, len = tabs.length; i < len; ++i) {
if (tab == tabs[i]) {
index = i;
break;
}
}
return index;
... | javascript | function(tab) {
var index = null,
tabs = this.get('tabs');
for (var i = 0, len = tabs.length; i < len; ++i) {
if (tab == tabs[i]) {
index = i;
break;
}
}
return index;
... | [
"function",
"(",
"tab",
")",
"{",
"var",
"index",
"=",
"null",
",",
"tabs",
"=",
"this",
".",
"get",
"(",
"'tabs'",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"tabs",
".",
"length",
";",
"i",
"<",
"len",
";",
"++",
"i",
")... | Returns the index of given tab.
@method getTabIndex
@param {YAHOO.widget.Tab} tab The tab whose index will be returned.
@return int | [
"Returns",
"the",
"index",
"of",
"given",
"tab",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L189-L200 | train | |
neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(tab) {
var tabCount = this.get('tabs').length,
index = this.getTabIndex(tab);
if ( tab === this.get(ACTIVE_TAB) ) {
if (tabCount > 1) { // select another tab
if (index + 1 === tabCount) { // if last, activate previous
... | javascript | function(tab) {
var tabCount = this.get('tabs').length,
index = this.getTabIndex(tab);
if ( tab === this.get(ACTIVE_TAB) ) {
if (tabCount > 1) { // select another tab
if (index + 1 === tabCount) { // if last, activate previous
... | [
"function",
"(",
"tab",
")",
"{",
"var",
"tabCount",
"=",
"this",
".",
"get",
"(",
"'tabs'",
")",
".",
"length",
",",
"index",
"=",
"this",
".",
"getTabIndex",
"(",
"tab",
")",
";",
"if",
"(",
"tab",
"===",
"this",
".",
"get",
"(",
"ACTIVE_TAB",
... | Removes the specified Tab from the TabView.
@method removeTab
@param {YAHOO.widget.Tab} item The Tab instance to be removed.
@return void | [
"Removes",
"the",
"specified",
"Tab",
"from",
"the",
"TabView",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L208-L230 | train | |
neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function(newTab, oldTab) {
if (newTab) {
newTab.set('contentVisible', true);
}
if (oldTab) {
oldTab.set('contentVisible', false);
}
} | javascript | function(newTab, oldTab) {
if (newTab) {
newTab.set('contentVisible', true);
}
if (oldTab) {
oldTab.set('contentVisible', false);
}
} | [
"function",
"(",
"newTab",
",",
"oldTab",
")",
"{",
"if",
"(",
"newTab",
")",
"{",
"newTab",
".",
"set",
"(",
"'contentVisible'",
",",
"true",
")",
";",
"}",
"if",
"(",
"oldTab",
")",
"{",
"oldTab",
".",
"set",
"(",
"'contentVisible'",
",",
"false",
... | The transiton to use when switching between tabs.
@method contentTransition | [
"The",
"transiton",
"to",
"use",
"when",
"switching",
"between",
"tabs",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L246-L253 | train | |
neyric/webhookit | public/javascripts/yui/tabview/tabview-debug.js | function() {
var tabs = Dom.getChildren(this._tabParent),
contentElements = Dom.getChildren(this._contentParent),
activeIndex = this.get(ACTIVE_INDEX),
tab,
attr,
active;
for (var i = 0, len = tabs.length; i < len; ... | javascript | function() {
var tabs = Dom.getChildren(this._tabParent),
contentElements = Dom.getChildren(this._contentParent),
activeIndex = this.get(ACTIVE_INDEX),
tab,
attr,
active;
for (var i = 0, len = tabs.length; i < len; ... | [
"function",
"(",
")",
"{",
"var",
"tabs",
"=",
"Dom",
".",
"getChildren",
"(",
"this",
".",
"_tabParent",
")",
",",
"contentElements",
"=",
"Dom",
".",
"getChildren",
"(",
"this",
".",
"_contentParent",
")",
",",
"activeIndex",
"=",
"this",
".",
"get",
... | Creates Tab instances from a collection of HTMLElements.
@method _initTabs
@private
@return void | [
"Creates",
"Tab",
"instances",
"from",
"a",
"collection",
"of",
"HTMLElements",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview-debug.js#L443-L471 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(aData, index) {
var Rec = widget.Record,
a = lang.isArray(aData) ? aData : [aData],
added = [],
i = 0, l = a.length, j = 0;
index = parseInt(index,10)|0;
for(; i < l; ++i) {
if (typeof a[i] === 'object' && a[i]) {
a... | javascript | function(aData, index) {
var Rec = widget.Record,
a = lang.isArray(aData) ? aData : [aData],
added = [],
i = 0, l = a.length, j = 0;
index = parseInt(index,10)|0;
for(; i < l; ++i) {
if (typeof a[i] === 'object' && a[i]) {
a... | [
"function",
"(",
"aData",
",",
"index",
")",
"{",
"var",
"Rec",
"=",
"widget",
".",
"Record",
",",
"a",
"=",
"lang",
".",
"isArray",
"(",
"aData",
")",
"?",
"aData",
":",
"[",
"aData",
"]",
",",
"added",
"=",
"[",
"]",
",",
"i",
"=",
"0",
","... | Sets or replaces multiple Records at once to the RecordSet with the given
data, starting at the given index. If index is not specified, then the new
Records are added to the end of the RecordSet.
@method setRecords
@param aData {Object[]} An array of object literal data.
@param index {Number} (optional) Position index... | [
"Sets",
"or",
"replaces",
"multiple",
"Records",
"at",
"once",
"to",
"the",
"RecordSet",
"with",
"the",
"given",
"data",
"starting",
"at",
"the",
"given",
"index",
".",
"If",
"index",
"is",
"not",
"specified",
"then",
"the",
"new",
"Records",
"are",
"added... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L2072-L2098 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(oData) {
//Convert to number
var number = oData * 1;
// Validate
if(lang.isNumber(number)) {
return number;
}
else {
YAHOO.log("Could not validate data " + lang.dump(oData) + " to type Number", "warn", this.toString());
return... | javascript | function(oData) {
//Convert to number
var number = oData * 1;
// Validate
if(lang.isNumber(number)) {
return number;
}
else {
YAHOO.log("Could not validate data " + lang.dump(oData) + " to type Number", "warn", this.toString());
return... | [
"function",
"(",
"oData",
")",
"{",
"//Convert to number",
"var",
"number",
"=",
"oData",
"*",
"1",
";",
"// Validate",
"if",
"(",
"lang",
".",
"isNumber",
"(",
"number",
")",
")",
"{",
"return",
"number",
";",
"}",
"else",
"{",
"YAHOO",
".",
"log",
... | Validates data value to type Number, doing type conversion as
necessary. A valid Number value is return, else null is returned
if input value does not validate.
@method DataTable.validateNumber
@param oData {Object} Data to validate.
@static | [
"Validates",
"data",
"value",
"to",
"type",
"Number",
"doing",
"type",
"conversion",
"as",
"necessary",
".",
"A",
"valid",
"Number",
"value",
"is",
"return",
"else",
"null",
"is",
"returned",
"if",
"input",
"value",
"does",
"not",
"validate",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L3562-L3574 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(oDataSource) {
this._oDataSource = null;
if(oDataSource && (lang.isFunction(oDataSource.sendRequest))) {
this._oDataSource = oDataSource;
}
// Backward compatibility
else {
var tmpTable = null;
var tmpContainer = this._elContainer;
var i=0;
//TODO: th... | javascript | function(oDataSource) {
this._oDataSource = null;
if(oDataSource && (lang.isFunction(oDataSource.sendRequest))) {
this._oDataSource = oDataSource;
}
// Backward compatibility
else {
var tmpTable = null;
var tmpContainer = this._elContainer;
var i=0;
//TODO: th... | [
"function",
"(",
"oDataSource",
")",
"{",
"this",
".",
"_oDataSource",
"=",
"null",
";",
"if",
"(",
"oDataSource",
"&&",
"(",
"lang",
".",
"isFunction",
"(",
"oDataSource",
".",
"sendRequest",
")",
")",
")",
"{",
"this",
".",
"_oDataSource",
"=",
"oDataS... | Initializes DataSource.
@method _initDataSource
@param oDataSource {YAHOO.util.DataSource} DataSource instance.
@private | [
"Initializes",
"DataSource",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L4512-L4546 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function() {
this._destroyDraggableColumns();
if(util.DD) {
var oColumn, elTh, elDragTarget;
for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
oColumn = this._oColumnSet.tree[0][i];
elTh = oColumn.getThEl();
Dom.addClass(elTh, DT.CLASS_DRAGGABLE)... | javascript | function() {
this._destroyDraggableColumns();
if(util.DD) {
var oColumn, elTh, elDragTarget;
for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
oColumn = this._oColumnSet.tree[0][i];
elTh = oColumn.getThEl();
Dom.addClass(elTh, DT.CLASS_DRAGGABLE)... | [
"function",
"(",
")",
"{",
"this",
".",
"_destroyDraggableColumns",
"(",
")",
";",
"if",
"(",
"util",
".",
"DD",
")",
"{",
"var",
"oColumn",
",",
"elTh",
",",
"elDragTarget",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"this",
".",
"_... | Initializes top-level Column TH elements into DD instances.
@method _initDraggableColumns
@private | [
"Initializes",
"top",
"-",
"level",
"Column",
"TH",
"elements",
"into",
"DD",
"instances",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L5025-L5040 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(cell) {
var elCell = this.getTdEl(cell);
if(elCell) {
var nThisTdIndex = elCell.cellIndex;
var elRow = this.getTrEl(elCell);
if(nThisTdIndex > 0) {
return elRow.cells[nThisTdIndex-1];
}
else {
var elPreviousRow = this.getPreviousTrEl(elRow... | javascript | function(cell) {
var elCell = this.getTdEl(cell);
if(elCell) {
var nThisTdIndex = elCell.cellIndex;
var elRow = this.getTrEl(elCell);
if(nThisTdIndex > 0) {
return elRow.cells[nThisTdIndex-1];
}
else {
var elPreviousRow = this.getPreviousTrEl(elRow... | [
"function",
"(",
"cell",
")",
"{",
"var",
"elCell",
"=",
"this",
".",
"getTdEl",
"(",
"cell",
")",
";",
"if",
"(",
"elCell",
")",
"{",
"var",
"nThisTdIndex",
"=",
"elCell",
".",
"cellIndex",
";",
"var",
"elRow",
"=",
"this",
".",
"getTrEl",
"(",
"e... | Returns DOM reference to the previous TD element from the given cell, or null.
@method getPreviousTdEl
@param cell {HTMLElement | String | Object} DOM element reference or string ID, or
object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
@return {HTMLElement} Reference to p... | [
"Returns",
"DOM",
"reference",
"to",
"the",
"previous",
"TD",
"element",
"from",
"the",
"given",
"cell",
"or",
"null",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L7001-L7018 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function() {
// Store for later
var instanceName = this.toString();
this._oChainRender.stop();
// Destroy static resizer proxy and column proxy
DT._destroyColumnDragTargetEl();
DT._destroyColumnResizerProxyEl();
// Destroy ColumnDD and ColumnResizers
this._destroyColumnHelpers... | javascript | function() {
// Store for later
var instanceName = this.toString();
this._oChainRender.stop();
// Destroy static resizer proxy and column proxy
DT._destroyColumnDragTargetEl();
DT._destroyColumnResizerProxyEl();
// Destroy ColumnDD and ColumnResizers
this._destroyColumnHelpers... | [
"function",
"(",
")",
"{",
"// Store for later",
"var",
"instanceName",
"=",
"this",
".",
"toString",
"(",
")",
";",
"this",
".",
"_oChainRender",
".",
"stop",
"(",
")",
";",
"// Destroy static resizer proxy and column proxy",
"DT",
".",
"_destroyColumnDragTargetEl"... | Nulls out the entire DataTable instance and related objects, removes attached
event listeners, and clears out DOM elements inside the container. After
calling this method, the instance reference should be expliclitly nulled by
implementer, as in myDataTable = null. Use with caution!
@method destroy | [
"Nulls",
"out",
"the",
"entire",
"DataTable",
"instance",
"and",
"related",
"objects",
"removes",
"attached",
"event",
"listeners",
"and",
"clears",
"out",
"DOM",
"elements",
"inside",
"the",
"container",
".",
"After",
"calling",
"this",
"method",
"the",
"instan... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L7430-L7484 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(row, oData) {
var index = row;
if (!lang.isNumber(index)) {
index = this.getRecordIndex(row);
}
// Update the Record
if(lang.isNumber(index) && (index >= 0)) {
var oRecordSet = this._oRecordSet,
oldRecord = oRecordSet.getRecord(index);
... | javascript | function(row, oData) {
var index = row;
if (!lang.isNumber(index)) {
index = this.getRecordIndex(row);
}
// Update the Record
if(lang.isNumber(index) && (index >= 0)) {
var oRecordSet = this._oRecordSet,
oldRecord = oRecordSet.getRecord(index);
... | [
"function",
"(",
"row",
",",
"oData",
")",
"{",
"var",
"index",
"=",
"row",
";",
"if",
"(",
"!",
"lang",
".",
"isNumber",
"(",
"index",
")",
")",
"{",
"index",
"=",
"this",
".",
"getRecordIndex",
"(",
"row",
")",
";",
"}",
"// Update the Record",
"... | For the given row, updates the associated Record with the given data. If the
row is on current page, the corresponding DOM elements are also updated.
@method updateRow
@param row {YAHOO.widget.Record | Number | HTMLElement | String}
Which row to update: By Record instance, by Record's RecordSet
position index, by HTML... | [
"For",
"the",
"given",
"row",
"updates",
"the",
"associated",
"Record",
"with",
"the",
"given",
"data",
".",
"If",
"the",
"row",
"is",
"on",
"current",
"page",
"the",
"corresponding",
"DOM",
"elements",
"are",
"also",
"updated",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L9156-L9228 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(elLiner, oRecord, oColumn) {
if(!oRecord) {
oRecord = this.getRecord(elLiner);
}
if(!oColumn) {
oColumn = this.getColumn(elLiner.parentNode.cellIndex);
}
if(oRecord && oColumn) {
var sField = oColumn.field;
var oData = oRecord.getData(sField);
var f... | javascript | function(elLiner, oRecord, oColumn) {
if(!oRecord) {
oRecord = this.getRecord(elLiner);
}
if(!oColumn) {
oColumn = this.getColumn(elLiner.parentNode.cellIndex);
}
if(oRecord && oColumn) {
var sField = oColumn.field;
var oData = oRecord.getData(sField);
var f... | [
"function",
"(",
"elLiner",
",",
"oRecord",
",",
"oColumn",
")",
"{",
"if",
"(",
"!",
"oRecord",
")",
"{",
"oRecord",
"=",
"this",
".",
"getRecord",
"(",
"elLiner",
")",
";",
"}",
"if",
"(",
"!",
"oColumn",
")",
"{",
"oColumn",
"=",
"this",
".",
... | CELL FUNCTIONS
Outputs markup into the given TD based on given Record.
@method formatCell
@param elLiner {HTMLElement} The liner DIV element within the TD.
@param oRecord {YAHOO.widget.Record} (Optional) Record instance.
@param oColumn {YAHOO.widget.Column} (Optional) Column instance. | [
"CELL",
"FUNCTIONS",
"Outputs",
"markup",
"into",
"the",
"given",
"TD",
"based",
"on",
"given",
"Record",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L9643-L9673 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(oRecord, oColumn, oData) {
// Validate Column and Record
oColumn = (oColumn instanceof YAHOO.widget.Column) ? oColumn : this.getColumn(oColumn);
if(oColumn && oColumn.getField() && (oRecord instanceof YAHOO.widget.Record)) {
var sKey = oColumn.getField(),
// Copy data f... | javascript | function(oRecord, oColumn, oData) {
// Validate Column and Record
oColumn = (oColumn instanceof YAHOO.widget.Column) ? oColumn : this.getColumn(oColumn);
if(oColumn && oColumn.getField() && (oRecord instanceof YAHOO.widget.Record)) {
var sKey = oColumn.getField(),
// Copy data f... | [
"function",
"(",
"oRecord",
",",
"oColumn",
",",
"oData",
")",
"{",
"// Validate Column and Record",
"oColumn",
"=",
"(",
"oColumn",
"instanceof",
"YAHOO",
".",
"widget",
".",
"Column",
")",
"?",
"oColumn",
":",
"this",
".",
"getColumn",
"(",
"oColumn",
")",... | For the given row and column, updates the Record with the given data. If the
cell is on current page, the corresponding DOM elements are also updated.
@method updateCell
@param oRecord {YAHOO.widget.Record} Record instance.
@param oColumn {YAHOO.widget.Column | String | Number} A Column key, or a ColumnSet key index.
... | [
"For",
"the",
"given",
"row",
"and",
"column",
"updates",
"the",
"Record",
"with",
"the",
"given",
"data",
".",
"If",
"the",
"cell",
"is",
"on",
"current",
"page",
"the",
"corresponding",
"DOM",
"elements",
"are",
"also",
"updated",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L9684-L9724 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(row) {
var elRow = this.getTrEl(row);
if(elRow) {
// Make sure previous row is unhighlighted
/* if(this._sLastHighlightedTrElId) {
Dom.removeClass(this._sLastHighlightedTrElId,DT.CLASS_HIGHLIGHTED);
}*/
var oRecord = this.getRecord(elRow);
Dom.addClas... | javascript | function(row) {
var elRow = this.getTrEl(row);
if(elRow) {
// Make sure previous row is unhighlighted
/* if(this._sLastHighlightedTrElId) {
Dom.removeClass(this._sLastHighlightedTrElId,DT.CLASS_HIGHLIGHTED);
}*/
var oRecord = this.getRecord(elRow);
Dom.addClas... | [
"function",
"(",
"row",
")",
"{",
"var",
"elRow",
"=",
"this",
".",
"getTrEl",
"(",
"row",
")",
";",
"if",
"(",
"elRow",
")",
"{",
"// Make sure previous row is unhighlighted",
"/* if(this._sLastHighlightedTrElId) {\n Dom.removeClass(this._sLastHighlighted... | Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given row.
@method highlightRow
@param row {HTMLElement | String} DOM element reference or ID string. | [
"Assigns",
"the",
"class",
"YAHOO",
".",
"widget",
".",
"DataTable",
".",
"CLASS_HIGHLIGHTED",
"to",
"the",
"given",
"row",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L11995-L12011 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function(oDataTable, elCell) {
// Validate
if(oDataTable instanceof YAHOO.widget.DataTable) {
this._oDataTable = oDataTable;
// Validate cell
elCell = oDataTable.getTdEl(elCell);
if(elCell) {
this._elTd = elCell;
// Validate Column
v... | javascript | function(oDataTable, elCell) {
// Validate
if(oDataTable instanceof YAHOO.widget.DataTable) {
this._oDataTable = oDataTable;
// Validate cell
elCell = oDataTable.getTdEl(elCell);
if(elCell) {
this._elTd = elCell;
// Validate Column
v... | [
"function",
"(",
"oDataTable",
",",
"elCell",
")",
"{",
"// Validate ",
"if",
"(",
"oDataTable",
"instanceof",
"YAHOO",
".",
"widget",
".",
"DataTable",
")",
"{",
"this",
".",
"_oDataTable",
"=",
"oDataTable",
";",
"// Validate cell",
"elCell",
"=",
"oDataTabl... | Attach CellEditor for a new interaction.
@method attach
@param oDataTable {YAHOO.widget.DataTable} Associated DataTable instance.
@param elCell {HTMLElement} Cell to edit. | [
"Attach",
"CellEditor",
"for",
"a",
"new",
"interaction",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L16063-L16091 | train | |
neyric/webhookit | public/javascripts/yui/datatable/datatable-debug.js | function() {
this.resetForm();
this.isActive = true;
this.getContainerEl().style.display = "";
this.focus();
this.fireEvent("showEvent", {editor:this});
YAHOO.log("CellEditor shown", "info", this.toString());
} | javascript | function() {
this.resetForm();
this.isActive = true;
this.getContainerEl().style.display = "";
this.focus();
this.fireEvent("showEvent", {editor:this});
YAHOO.log("CellEditor shown", "info", this.toString());
} | [
"function",
"(",
")",
"{",
"this",
".",
"resetForm",
"(",
")",
";",
"this",
".",
"isActive",
"=",
"true",
";",
"this",
".",
"getContainerEl",
"(",
")",
".",
"style",
".",
"display",
"=",
"\"\"",
";",
"this",
".",
"focus",
"(",
")",
";",
"this",
"... | Displays CellEditor UI in the correct position.
@method show | [
"Displays",
"CellEditor",
"UI",
"in",
"the",
"correct",
"position",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datatable/datatable-debug.js#L16128-L16135 | train | |
neyric/webhookit | public/javascripts/inputex/js/fields/DSSelectField.js | function (options) {
inputEx.DSSelectField.superclass.setOptions.call(this, options);
this.options.valueKey = options.valueKey || "value";
this.options.labelKey = options.labelKey || "label";
this.options.datasource = options.datasource;
} | javascript | function (options) {
inputEx.DSSelectField.superclass.setOptions.call(this, options);
this.options.valueKey = options.valueKey || "value";
this.options.labelKey = options.labelKey || "label";
this.options.datasource = options.datasource;
} | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"DSSelectField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"this",
".",
"options",
".",
"valueKey",
"=",
"options",
".",
"valueKey",
"||",
"\"value\"",
... | Setup the additional options for selectfield
@param {Object} options Options object as passed to the constructor | [
"Setup",
"the",
"additional",
"options",
"for",
"selectfield"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/DSSelectField.js#L25-L34 | train | |
neyric/webhookit | public/javascripts/inputex/js/fields/DSSelectField.js | function (oRequest) {
if (!!this.options.datasource) {
this.options.datasource.sendRequest(oRequest, {success: this.onDatasourceSuccess, failure: this.onDatasourceFailure, scope: this});
}
} | javascript | function (oRequest) {
if (!!this.options.datasource) {
this.options.datasource.sendRequest(oRequest, {success: this.onDatasourceSuccess, failure: this.onDatasourceFailure, scope: this});
}
} | [
"function",
"(",
"oRequest",
")",
"{",
"if",
"(",
"!",
"!",
"this",
".",
"options",
".",
"datasource",
")",
"{",
"this",
".",
"options",
".",
"datasource",
".",
"sendRequest",
"(",
"oRequest",
",",
"{",
"success",
":",
"this",
".",
"onDatasourceSuccess",... | Send the datasource request | [
"Send",
"the",
"datasource",
"request"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/DSSelectField.js#L50-L54 | train | |
neyric/webhookit | public/javascripts/inputex/js/fields/DSSelectField.js | function (items) {
var i, length;
// remove previous <option>s nodes
while (this.el.childNodes.length > 0) {
this.el.removeChild(this.el.childNodes[0]);
}
// add new options
for (i = 0, length = items.length; i < length ; i += 1) {
this.addChoice({ value: items[i][this.options.valueKe... | javascript | function (items) {
var i, length;
// remove previous <option>s nodes
while (this.el.childNodes.length > 0) {
this.el.removeChild(this.el.childNodes[0]);
}
// add new options
for (i = 0, length = items.length; i < length ; i += 1) {
this.addChoice({ value: items[i][this.options.valueKe... | [
"function",
"(",
"items",
")",
"{",
"var",
"i",
",",
"length",
";",
"// remove previous <option>s nodes",
"while",
"(",
"this",
".",
"el",
".",
"childNodes",
".",
"length",
">",
"0",
")",
"{",
"this",
".",
"el",
".",
"removeChild",
"(",
"this",
".",
"e... | Insert the options | [
"Insert",
"the",
"options"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/DSSelectField.js#L59-L72 | train | |
neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(instanceObject) {
if(!instanceObject || !instanceObject["$schema"]) {
throw new Error("Invalid json schema instance object. Object must have a '$schema' property.");
}
var formDef = this.schemaToInputEx(instanceObject["$schema"]);
// Set the default value of each ... | javascript | function(instanceObject) {
if(!instanceObject || !instanceObject["$schema"]) {
throw new Error("Invalid json schema instance object. Object must have a '$schema' property.");
}
var formDef = this.schemaToInputEx(instanceObject["$schema"]);
// Set the default value of each ... | [
"function",
"(",
"instanceObject",
")",
"{",
"if",
"(",
"!",
"instanceObject",
"||",
"!",
"instanceObject",
"[",
"\"$schema\"",
"]",
")",
"{",
"throw",
"new",
"Error",
"(",
"\"Invalid json schema instance object. Object must have a '$schema' property.\"",
")",
";",
"}... | Create an inputEx Json form definition from a json schema instance object
Respect the "Self-Defined Schema Convention" | [
"Create",
"an",
"inputEx",
"Json",
"form",
"definition",
"from",
"a",
"json",
"schema",
"instance",
"object",
"Respect",
"the",
"Self",
"-",
"Defined",
"Schema",
"Convention"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L890-L904 | train | |
neyric/webhookit | public/javascripts/inputex/build/inputex.js | function (config, sendUpdatedEvt) {
var position, choice;
position = this.getChoicePosition(config);
if (position !== -1) {
choice = this.choicesList[position];
// test if visible first in case we try to hide twice or more...
if (choice.visible) {
choice.visible = f... | javascript | function (config, sendUpdatedEvt) {
var position, choice;
position = this.getChoicePosition(config);
if (position !== -1) {
choice = this.choicesList[position];
// test if visible first in case we try to hide twice or more...
if (choice.visible) {
choice.visible = f... | [
"function",
"(",
"config",
",",
"sendUpdatedEvt",
")",
"{",
"var",
"position",
",",
"choice",
";",
"position",
"=",
"this",
".",
"getChoicePosition",
"(",
"config",
")",
";",
"if",
"(",
"position",
"!==",
"-",
"1",
")",
"{",
"choice",
"=",
"this",
".",... | Hide a choice
@param {Object} config An object targeting the choice to hide (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' }) | [
"Hide",
"a",
"choice"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L1013-L1040 | train | |
neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.Form.superclass.setOptions.call(this, options);
this.buttons = [];
this.options.buttons = options.buttons || [];
this.options.action = options.action;
this.options.method = options.method;
this.options.className = options.className || 'inputEx-Group';
t... | javascript | function(options) {
inputEx.Form.superclass.setOptions.call(this, options);
this.buttons = [];
this.options.buttons = options.buttons || [];
this.options.action = options.action;
this.options.method = options.method;
this.options.className = options.className || 'inputEx-Group';
t... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"Form",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"this",
".",
"buttons",
"=",
"[",
"]",
";",
"this",
".",
"options",
".",
"buttons",
"=",
"options"... | Adds buttons and set ajax default parameters
@param {Object} options Options object as passed to the constructor | [
"Adds",
"buttons",
"and",
"set",
"ajax",
"default",
"parameters"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2255-L2287 | train | |
neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
var buttonConf, button, i, buttonsNb = this.options.buttons.length;
this.buttonDiv = inputEx.cn('div', {className: 'inputEx-Form-buttonBar'});
for(i = 0 ; i < buttonsNb ; i++ ) {
buttonConf = this.options.buttons[i];
// Throw Error if button is undefi... | javascript | function() {
var buttonConf, button, i, buttonsNb = this.options.buttons.length;
this.buttonDiv = inputEx.cn('div', {className: 'inputEx-Form-buttonBar'});
for(i = 0 ; i < buttonsNb ; i++ ) {
buttonConf = this.options.buttons[i];
// Throw Error if button is undefi... | [
"function",
"(",
")",
"{",
"var",
"buttonConf",
",",
"button",
",",
"i",
",",
"buttonsNb",
"=",
"this",
".",
"options",
".",
"buttons",
".",
"length",
";",
"this",
".",
"buttonDiv",
"=",
"inputEx",
".",
"cn",
"(",
"'div'",
",",
"{",
"className",
":",... | Render the buttons | [
"Render",
"the",
"buttons"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2328-L2353 | train | |
neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
if(this.options.ajax.showMask) { this.showMask(); }
var formValue = this.getValue();
// options.ajax.uri and options.ajax.method can also be functions that return a the uri/method depending of the value of the form
var uri = lang.isFunction(this.options.ajax.uri) ? this.options.ajax.uri(fo... | javascript | function() {
if(this.options.ajax.showMask) { this.showMask(); }
var formValue = this.getValue();
// options.ajax.uri and options.ajax.method can also be functions that return a the uri/method depending of the value of the form
var uri = lang.isFunction(this.options.ajax.uri) ? this.options.ajax.uri(fo... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"options",
".",
"ajax",
".",
"showMask",
")",
"{",
"this",
".",
"showMask",
"(",
")",
";",
"}",
"var",
"formValue",
"=",
"this",
".",
"getValue",
"(",
")",
";",
"// options.ajax.uri and options.ajax.meth... | Send the form value in JSON through an ajax request | [
"Send",
"the",
"form",
"value",
"in",
"JSON",
"through",
"an",
"ajax",
"request"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2425-L2489 | train | |
neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
if(this.maskRendered) return;
// position as "relative" to position formMask inside as "absolute"
Dom.setStyle(this.divEl, "position", "relative");
// set zoom = 1 to fix hasLayout issue with IE6/7
if (YAHOO.env.ua.ie) { Dom.setStyle(this.divEl, "zoom", 1); }
// Rende... | javascript | function() {
if(this.maskRendered) return;
// position as "relative" to position formMask inside as "absolute"
Dom.setStyle(this.divEl, "position", "relative");
// set zoom = 1 to fix hasLayout issue with IE6/7
if (YAHOO.env.ua.ie) { Dom.setStyle(this.divEl, "zoom", 1); }
// Rende... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"maskRendered",
")",
"return",
";",
"// position as \"relative\" to position formMask inside as \"absolute\"",
"Dom",
".",
"setStyle",
"(",
"this",
".",
"divEl",
",",
"\"position\"",
",",
"\"relative\"",
")",
";",
... | Create a Mask over the form | [
"Create",
"a",
"Mask",
"over",
"the",
"form"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2494-L2515 | train | |
neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
inputEx.Form.superclass.enable.call(this);
for (var i = 0 ; i < this.buttons.length ; i++) {
this.buttons[i].enable();
}
} | javascript | function() {
inputEx.Form.superclass.enable.call(this);
for (var i = 0 ; i < this.buttons.length ; i++) {
this.buttons[i].enable();
}
} | [
"function",
"(",
")",
"{",
"inputEx",
".",
"Form",
".",
"superclass",
".",
"enable",
".",
"call",
"(",
"this",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"buttons",
".",
"length",
";",
"i",
"++",
")",
"{",
"this",
... | Enable all fields and buttons in the form | [
"Enable",
"all",
"fields",
"and",
"buttons",
"in",
"the",
"form"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L2561-L2567 | train |
Subsets and Splits
SQL Console for semeru/code-text-javascript
Retrieves 20,000 non-null code samples labeled as JavaScript, providing a basic overview of the dataset.