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
SAP/openui5
src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js
function (key) { var pDel, oMsr = startMeasurements("del", key); Log.debug("Cache Manager: del called."); pDel = this._callInstanceMethod("del", arguments).then(function callInstanceHandler() { Log.debug("Cache Manager: del completed successfully."); oMsr.endAsync(); //nothing to return, jus...
javascript
function (key) { var pDel, oMsr = startMeasurements("del", key); Log.debug("Cache Manager: del called."); pDel = this._callInstanceMethod("del", arguments).then(function callInstanceHandler() { Log.debug("Cache Manager: del completed successfully."); oMsr.endAsync(); //nothing to return, jus...
[ "function", "(", "key", ")", "{", "var", "pDel", ",", "oMsr", "=", "startMeasurements", "(", "\"del\"", ",", "key", ")", ";", "Log", ".", "debug", "(", "\"Cache Manager: del called.\"", ")", ";", "pDel", "=", "this", ".", "_callInstanceMethod", "(", "\"del...
Deletes entry with given key. @param {string|number} key the key to delete an entry for. Null is not accepted. @returns {Promise} a promise that would be resolved in case of successful operation or rejected with value of the error message if the operation fails. @public
[ "Deletes", "entry", "with", "given", "key", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js#L199-L214
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js
function () { var pReset, oMsr = startMeasurements("reset"); Log.debug("Cache Manager: Reset called."); pReset = this._callInstanceMethod("reset", arguments).then(function callInstanceHandler() { Log.debug("Cache Manager: Reset completed successfully."); oMsr.endAsync(); //nothing to return,...
javascript
function () { var pReset, oMsr = startMeasurements("reset"); Log.debug("Cache Manager: Reset called."); pReset = this._callInstanceMethod("reset", arguments).then(function callInstanceHandler() { Log.debug("Cache Manager: Reset completed successfully."); oMsr.endAsync(); //nothing to return,...
[ "function", "(", ")", "{", "var", "pReset", ",", "oMsr", "=", "startMeasurements", "(", "\"reset\"", ")", ";", "Log", ".", "debug", "(", "\"Cache Manager: Reset called.\"", ")", ";", "pReset", "=", "this", ".", "_callInstanceMethod", "(", "\"reset\"", ",", "...
Clears all entries in the cache. @returns {Promise} a promise that would be resolved in case of successful operation or rejected with value of the error message if the operation fails. @public
[ "Clears", "all", "entries", "in", "the", "cache", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js#L222-L237
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js
function (sMethodName, aArgs) { var pCallInstance, sMsrCallInstance = "[sync ] _callInstanceMethod"; Measurement.start(sMsrCallInstance, "CM", S_MSR_CAT_CACHE_MANAGER); if (this._instance) { Log.debug("Cache Manager: calling instance..."); return this._instance[sMethodName].apply(this._instance, ...
javascript
function (sMethodName, aArgs) { var pCallInstance, sMsrCallInstance = "[sync ] _callInstanceMethod"; Measurement.start(sMsrCallInstance, "CM", S_MSR_CAT_CACHE_MANAGER); if (this._instance) { Log.debug("Cache Manager: calling instance..."); return this._instance[sMethodName].apply(this._instance, ...
[ "function", "(", "sMethodName", ",", "aArgs", ")", "{", "var", "pCallInstance", ",", "sMsrCallInstance", "=", "\"[sync ] _callInstanceMethod\"", ";", "Measurement", ".", "start", "(", "sMsrCallInstance", ",", "\"CM\"", ",", "S_MSR_CAT_CACHE_MANAGER", ")", ";", "if",...
Forwards method's call to the underlying implementation @param {string} sMethodName the name of the method to forward @param {any[]} aArgs array of arguments @returns {Promise} @private
[ "Forwards", "method", "s", "call", "to", "the", "underlying", "implementation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js#L278-L294
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js
function () { var aSupportedEnv = []; if (this._bSupportedEnvironment == undefined) { aSupportedEnv.push({ system: Device.system.SYSTEMTYPE.DESKTOP, browserName: Device.browser.BROWSER.CHROME, browserVersion: 49 }); aSupportedEnv.push({ system: Device.system.SYSTEMTYPE.DE...
javascript
function () { var aSupportedEnv = []; if (this._bSupportedEnvironment == undefined) { aSupportedEnv.push({ system: Device.system.SYSTEMTYPE.DESKTOP, browserName: Device.browser.BROWSER.CHROME, browserVersion: 49 }); aSupportedEnv.push({ system: Device.system.SYSTEMTYPE.DE...
[ "function", "(", ")", "{", "var", "aSupportedEnv", "=", "[", "]", ";", "if", "(", "this", ".", "_bSupportedEnvironment", "==", "undefined", ")", "{", "aSupportedEnv", ".", "push", "(", "{", "system", ":", "Device", ".", "system", ".", "SYSTEMTYPE", ".", ...
Checks whether the given environment is supported by the CacheManager. @returns {boolean|*} true if yes, false if not. @private
[ "Checks", "whether", "the", "given", "environment", "is", "supported", "by", "the", "CacheManager", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js#L301-L324
train
SAP/openui5
src/sap.m/src/sap/m/BarInPageEnabler.js
function (sContext) { var oOptions = this._getContextOptions(sContext); if (!oOptions) { return this; } if (!this.isContextSensitive) { Log.error("The bar control you are using does not implement all the members of the IBar interface", this); return this; } //If this class does not gets...
javascript
function (sContext) { var oOptions = this._getContextOptions(sContext); if (!oOptions) { return this; } if (!this.isContextSensitive) { Log.error("The bar control you are using does not implement all the members of the IBar interface", this); return this; } //If this class does not gets...
[ "function", "(", "sContext", ")", "{", "var", "oOptions", "=", "this", ".", "_getContextOptions", "(", "sContext", ")", ";", "if", "(", "!", "oOptions", ")", "{", "return", "this", ";", "}", "if", "(", "!", "this", ".", "isContextSensitive", ")", "{", ...
Sets classes according to the context of the page. Possible contexts are header, footer, subheader. @param {string} sContext allowed values are header, footer, subheader. @returns {sap.m.IBar} <code>this</code> for chaining @sap-restricted @private
[ "Sets", "classes", "according", "to", "the", "context", "of", "the", "page", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/BarInPageEnabler.js#L138-L160
train
SAP/openui5
src/sap.m/src/sap/m/BarInPageEnabler.js
function (sContext) { var oOptions = this._getContextOptions(sContext); if (!oOptions) { return this; } if (!this.setHTMLTag) { Log.error("The bar control you are using does not implement all the members of the IBar interface", this); return this; } this.setHTMLTag(oOptions.tag); re...
javascript
function (sContext) { var oOptions = this._getContextOptions(sContext); if (!oOptions) { return this; } if (!this.setHTMLTag) { Log.error("The bar control you are using does not implement all the members of the IBar interface", this); return this; } this.setHTMLTag(oOptions.tag); re...
[ "function", "(", "sContext", ")", "{", "var", "oOptions", "=", "this", ".", "_getContextOptions", "(", "sContext", ")", ";", "if", "(", "!", "oOptions", ")", "{", "return", "this", ";", "}", "if", "(", "!", "this", ".", "setHTMLTag", ")", "{", "Log",...
Sets HTML tag according to the context of the page. Possible contexts are header, footer, subheader. @param {string} sContext allowed values are header, footer, subheader. @returns {sap.m.IBar} <code>this</code> for chaining @sap-restricted @private
[ "Sets", "HTML", "tag", "according", "to", "the", "context", "of", "the", "page", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/BarInPageEnabler.js#L171-L186
train
SAP/openui5
src/sap.m/src/sap/m/BarInPageEnabler.js
function (sContext) { var oContext; if (this.getContext) { oContext = this.getContext(); } else { oContext = mContexts; } var oOptions = oContext[sContext]; if (!oOptions) { Log.error("The context " + sContext + " is not known", this); return null; } return oOptions; }
javascript
function (sContext) { var oContext; if (this.getContext) { oContext = this.getContext(); } else { oContext = mContexts; } var oOptions = oContext[sContext]; if (!oOptions) { Log.error("The context " + sContext + " is not known", this); return null; } return oOptions; }
[ "function", "(", "sContext", ")", "{", "var", "oContext", ";", "if", "(", "this", ".", "getContext", ")", "{", "oContext", "=", "this", ".", "getContext", "(", ")", ";", "}", "else", "{", "oContext", "=", "mContexts", ";", "}", "var", "oOptions", "="...
Get context options of the Page. Possible contexts are header, footer, subheader. @param {string} sContext allowed values are header, footer, subheader. @returns {object|null} @private
[ "Get", "context", "options", "of", "the", "Page", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/BarInPageEnabler.js#L196-L214
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js
function(oEvent) { // in our use-case each tab contains a single subSection => only this subSection needs to be processed var oSubSection = oEvent.getParameter("subSection"), sId = oSubSection.getId(), aBlocks; //attach listeners that prettify the tab content upon its rendering if (this._aVis...
javascript
function(oEvent) { // in our use-case each tab contains a single subSection => only this subSection needs to be processed var oSubSection = oEvent.getParameter("subSection"), sId = oSubSection.getId(), aBlocks; //attach listeners that prettify the tab content upon its rendering if (this._aVis...
[ "function", "(", "oEvent", ")", "{", "// in our use-case each tab contains a single subSection => only this subSection needs to be processed", "var", "oSubSection", "=", "oEvent", ".", "getParameter", "(", "\"subSection\"", ")", ",", "sId", "=", "oSubSection", ".", "getId", ...
Attach listeners that prettify the tab content upon its rendering @param {oEvent} tab navigate event @private
[ "Attach", "listeners", "that", "prettify", "the", "tab", "content", "upon", "its", "rendering" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js#L74-L89
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js
function (oEvent) { var aItems = oEvent.getSource().getItems(), iLen = aItems.length, oItem; while (iLen--) { oItem = aItems[iLen]; // Access control lazy loading method if available if (oItem._getLinkSender) { var oCustomData = oItem.getCustomData(), sClassName = oCustomD...
javascript
function (oEvent) { var aItems = oEvent.getSource().getItems(), iLen = aItems.length, oItem; while (iLen--) { oItem = aItems[iLen]; // Access control lazy loading method if available if (oItem._getLinkSender) { var oCustomData = oItem.getCustomData(), sClassName = oCustomD...
[ "function", "(", "oEvent", ")", "{", "var", "aItems", "=", "oEvent", ".", "getSource", "(", ")", ".", "getItems", "(", ")", ",", "iLen", "=", "aItems", ".", "length", ",", "oItem", ";", "while", "(", "iLen", "--", ")", "{", "oItem", "=", "aItems", ...
Modify all deprecated and experimental links @private
[ "Modify", "all", "deprecated", "and", "experimental", "links" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js#L129-L158
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js
function () { jQuery0.ajax(this.getConfig().docuPath + "disclaimer.json", {dataType: "json"}).then(function (oData) { var oView = this.getView(); if (oData.showDisclaimer && oData.message) { oView.byId("disclaimerBlock").setVisible(true); oView.byId("disclaimerMessage").setText(oData.message);...
javascript
function () { jQuery0.ajax(this.getConfig().docuPath + "disclaimer.json", {dataType: "json"}).then(function (oData) { var oView = this.getView(); if (oData.showDisclaimer && oData.message) { oView.byId("disclaimerBlock").setVisible(true); oView.byId("disclaimerMessage").setText(oData.message);...
[ "function", "(", ")", "{", "jQuery0", ".", "ajax", "(", "this", ".", "getConfig", "(", ")", ".", "docuPath", "+", "\"disclaimer.json\"", ",", "{", "dataType", ":", "\"json\"", "}", ")", ".", "then", "(", "function", "(", "oData", ")", "{", "var", "oV...
Documentation disclaimer handler. This method fetches the disclaimer json file and modify's the view to show disclaimer message if such is available in the loaded json file.
[ "Documentation", "disclaimer", "handler", ".", "This", "method", "fetches", "the", "disclaimer", "json", "file", "and", "modify", "s", "the", "view", "to", "show", "disclaimer", "message", "if", "such", "is", "available", "in", "the", "loaded", "json", "file",...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js#L34-L44
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js
function () { var oVersionModel = this.getModel("versionData"), bIsDevVersion = oVersionModel.getProperty('/isDevVersion'), bIsOpenUI5 = oVersionModel.getProperty('/isOpenUI5'); if (bIsOpenUI5) { return 'https://help.sap.com/OpenUI5_PDF/OpenUI5.pdf'; } return bIsDevVersion ? 'https://he...
javascript
function () { var oVersionModel = this.getModel("versionData"), bIsDevVersion = oVersionModel.getProperty('/isDevVersion'), bIsOpenUI5 = oVersionModel.getProperty('/isOpenUI5'); if (bIsOpenUI5) { return 'https://help.sap.com/OpenUI5_PDF/OpenUI5.pdf'; } return bIsDevVersion ? 'https://he...
[ "function", "(", ")", "{", "var", "oVersionModel", "=", "this", ".", "getModel", "(", "\"versionData\"", ")", ",", "bIsDevVersion", "=", "oVersionModel", ".", "getProperty", "(", "'/isDevVersion'", ")", ",", "bIsOpenUI5", "=", "oVersionModel", ".", "getProperty"...
Determines the downloaded PDF's file location. @returns {string} The location of the PDF file @private
[ "Determines", "the", "downloaded", "PDF", "s", "file", "location", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js#L83-L93
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js
function () { var tempRules = [], rawLSData; try { rawLSData = localStorage.getItem(constants.LOCAL_STORAGE_TEMP_RULES_KEY); if (!rawLSData) { return null; } tempRules = JSON.parse(decode(rawLSData)); tempRules = tempRules.map(function (tempRule) { return RuleSerializer.deser...
javascript
function () { var tempRules = [], rawLSData; try { rawLSData = localStorage.getItem(constants.LOCAL_STORAGE_TEMP_RULES_KEY); if (!rawLSData) { return null; } tempRules = JSON.parse(decode(rawLSData)); tempRules = tempRules.map(function (tempRule) { return RuleSerializer.deser...
[ "function", "(", ")", "{", "var", "tempRules", "=", "[", "]", ",", "rawLSData", ";", "try", "{", "rawLSData", "=", "localStorage", ".", "getItem", "(", "constants", ".", "LOCAL_STORAGE_TEMP_RULES_KEY", ")", ";", "if", "(", "!", "rawLSData", ")", "{", "re...
Returns all previously created temporary rules. @private @name sap.ui.support.Storage.getRules @method @returns {object[]} An array containing all the temporary rules.
[ "Returns", "all", "previously", "created", "temporary", "rules", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js#L69-L90
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js
function (rules) { var stringifyRules = encode(JSON.stringify(rules)); localStorage.setItem(constants.LOCAL_STORAGE_TEMP_RULES_KEY, stringifyRules); }
javascript
function (rules) { var stringifyRules = encode(JSON.stringify(rules)); localStorage.setItem(constants.LOCAL_STORAGE_TEMP_RULES_KEY, stringifyRules); }
[ "function", "(", "rules", ")", "{", "var", "stringifyRules", "=", "encode", "(", "JSON", ".", "stringify", "(", "rules", ")", ")", ";", "localStorage", ".", "setItem", "(", "constants", ".", "LOCAL_STORAGE_TEMP_RULES_KEY", ",", "stringifyRules", ")", ";", "}...
Saves the temporary rules into the LocalStorage persistence layer. @private @name sap.ui.support.Storage.setRules @method @param {object[]} rules The temporary rules from the shared model.
[ "Saves", "the", "temporary", "rules", "into", "the", "LocalStorage", "persistence", "layer", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js#L99-L102
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js
function () { var rawLSData = localStorage.getItem(constants.LOCAL_STORAGE_SELECTED_RULES_KEY); if (!rawLSData) { return null; } return JSON.parse(rawLSData); }
javascript
function () { var rawLSData = localStorage.getItem(constants.LOCAL_STORAGE_SELECTED_RULES_KEY); if (!rawLSData) { return null; } return JSON.parse(rawLSData); }
[ "function", "(", ")", "{", "var", "rawLSData", "=", "localStorage", ".", "getItem", "(", "constants", ".", "LOCAL_STORAGE_SELECTED_RULES_KEY", ")", ";", "if", "(", "!", "rawLSData", ")", "{", "return", "null", ";", "}", "return", "JSON", ".", "parse", "(",...
Retrieves the selected rules which are stored in the LocalStorage persistence layer. @private @method @name sap.ui.support.Storage.getSelectedRules @returns {object[]} All selected rules that are stored in the LocalStorage persistence layer.
[ "Retrieves", "the", "selected", "rules", "which", "are", "stored", "in", "the", "LocalStorage", "persistence", "layer", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js#L111-L119
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js
function() { localStorage.removeItem(constants.LOCAL_STORAGE_TEMP_RULES_KEY); localStorage.removeItem(constants.LOCAL_STORAGE_SELECTED_RULES_KEY); localStorage.removeItem(constants.LOCAL_STORAGE_SELECTED_CONTEXT_KEY); localStorage.removeItem(constants.LOCAL_STORAGE_SELECTED_CONTEXT_COMPONENT_KEY); localS...
javascript
function() { localStorage.removeItem(constants.LOCAL_STORAGE_TEMP_RULES_KEY); localStorage.removeItem(constants.LOCAL_STORAGE_SELECTED_RULES_KEY); localStorage.removeItem(constants.LOCAL_STORAGE_SELECTED_CONTEXT_KEY); localStorage.removeItem(constants.LOCAL_STORAGE_SELECTED_CONTEXT_COMPONENT_KEY); localS...
[ "function", "(", ")", "{", "localStorage", ".", "removeItem", "(", "constants", ".", "LOCAL_STORAGE_TEMP_RULES_KEY", ")", ";", "localStorage", ".", "removeItem", "(", "constants", ".", "LOCAL_STORAGE_SELECTED_RULES_KEY", ")", ";", "localStorage", ".", "removeItem", ...
Removes all data from LocalStorage persistence layer. @private @method @name sap.ui.support.Storage.removeAllData
[ "Removes", "all", "data", "from", "LocalStorage", "persistence", "layer", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js#L258-L266
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js
function(sCookieName) { var name = sCookieName + "=", decodedCookie = decodeURIComponent(document.cookie), ca = decodedCookie.split(';'), sOutput = ""; for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0...
javascript
function(sCookieName) { var name = sCookieName + "=", decodedCookie = decodeURIComponent(document.cookie), ca = decodedCookie.split(';'), sOutput = ""; for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0...
[ "function", "(", "sCookieName", ")", "{", "var", "name", "=", "sCookieName", "+", "\"=\"", ",", "decodedCookie", "=", "decodeURIComponent", "(", "document", ".", "cookie", ")", ",", "ca", "=", "decodedCookie", ".", "split", "(", "';'", ")", ",", "sOutput",...
Retrieves the persistence options of the user in the LocalStorage layer. @private @method @name sap.ui.support.Storage.readPersistenceCookie @alias readPersistenceCookie @param {string} sCookieName Name of the cookie. @returns {string} sOutput The persistence options of the user.
[ "Retrieves", "the", "persistence", "options", "of", "the", "user", "in", "the", "LocalStorage", "layer", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/Storage.js#L290-L309
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/variants/VariantController.js
function (sComponentName, sAppVersion, oChangeFileContent) { this._sComponentName = sComponentName || ""; this._sAppVersion = sAppVersion || Utils.DEFAULT_APP_VERSION; this._mVariantManagement = {}; this.setChangeFileContent(oChangeFileContent, {}); this.sVariantTechnicalParameterName = "sap-ui-fl-control-var...
javascript
function (sComponentName, sAppVersion, oChangeFileContent) { this._sComponentName = sComponentName || ""; this._sAppVersion = sAppVersion || Utils.DEFAULT_APP_VERSION; this._mVariantManagement = {}; this.setChangeFileContent(oChangeFileContent, {}); this.sVariantTechnicalParameterName = "sap-ui-fl-control-var...
[ "function", "(", "sComponentName", ",", "sAppVersion", ",", "oChangeFileContent", ")", "{", "this", ".", "_sComponentName", "=", "sComponentName", "||", "\"\"", ";", "this", ".", "_sAppVersion", "=", "sAppVersion", "||", "Utils", ".", "DEFAULT_APP_VERSION", ";", ...
Helper object to handle variants and their changes @param {string} sComponentName - Component name the flexibility controller is responsible for @param {string} sAppVersion - Current version of the application @param {object} oChangeFileContent - Object containing file content from Lrep response @constructor @class @a...
[ "Helper", "object", "to", "handle", "variants", "and", "their", "changes" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/variants/VariantController.js#L31-L38
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
CONDITIONAL
function CONDITIONAL(fnCondition, fnThen, fnElse, aParts) { return fnCondition(aParts) ? fnThen(aParts) : fnElse(aParts); }
javascript
function CONDITIONAL(fnCondition, fnThen, fnElse, aParts) { return fnCondition(aParts) ? fnThen(aParts) : fnElse(aParts); }
[ "function", "CONDITIONAL", "(", "fnCondition", ",", "fnThen", ",", "fnElse", ",", "aParts", ")", "{", "return", "fnCondition", "(", "aParts", ")", "?", "fnThen", "(", "aParts", ")", ":", "fnElse", "(", "aParts", ")", ";", "}" ]
Formatter function for executing the conditional operator with the given condition, "then" and "else" clause. @param {function} fnCondition - formatter function for the condition @param {function} fnThen - formatter function for the "then" clause @param {function} fnElse- formatter function for the "else" clause @param...
[ "Formatter", "function", "for", "executing", "the", "conditional", "operator", "with", "the", "given", "condition", "then", "and", "else", "clause", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L339-L341
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
DOT
function DOT(fnLeft, sIdentifier, aParts, oReference) { var oParent = fnLeft(aParts), vChild = oParent[sIdentifier]; if (oReference) { oReference.base = oParent; } return vChild; }
javascript
function DOT(fnLeft, sIdentifier, aParts, oReference) { var oParent = fnLeft(aParts), vChild = oParent[sIdentifier]; if (oReference) { oReference.base = oParent; } return vChild; }
[ "function", "DOT", "(", "fnLeft", ",", "sIdentifier", ",", "aParts", ",", "oReference", ")", "{", "var", "oParent", "=", "fnLeft", "(", "aParts", ")", ",", "vChild", "=", "oParent", "[", "sIdentifier", "]", ";", "if", "(", "oReference", ")", "{", "oRef...
Formatter function for member access via the dot operator. @param {function} fnLeft - formatter function for the left operand @param {string} sIdentifier - the identifier on the dot's right side @param {any[]} aParts - the array of binding values @param {object} [oReference] optional side channel to return the base val...
[ "Formatter", "function", "for", "member", "access", "via", "the", "dot", "operator", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L361-L369
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
FUNCTION_CALL
function FUNCTION_CALL(fnLeft, aArguments, aParts) { var oReference = {}; // evaluate function expression and call it return fnLeft(aParts, oReference).apply(oReference.base, aArguments.map(function (fnArgument) { return fnArgument(aParts); // evaluate argument })); }
javascript
function FUNCTION_CALL(fnLeft, aArguments, aParts) { var oReference = {}; // evaluate function expression and call it return fnLeft(aParts, oReference).apply(oReference.base, aArguments.map(function (fnArgument) { return fnArgument(aParts); // evaluate argument })); }
[ "function", "FUNCTION_CALL", "(", "fnLeft", ",", "aArguments", ",", "aParts", ")", "{", "var", "oReference", "=", "{", "}", ";", "// evaluate function expression and call it", "return", "fnLeft", "(", "aParts", ",", "oReference", ")", ".", "apply", "(", "oRefere...
Formatter function for a call to the function returned by fnLeft. @param {function} fnLeft - formatter function for the left operand: the function to call @param {function[]} aArguments - array of formatter functions for the arguments @param {any[]} aParts - the array of binding values @return {any} - the return value ...
[ "Formatter", "function", "for", "a", "call", "to", "the", "function", "returned", "by", "fnLeft", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L378-L386
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
INFIX
function INFIX(fnLeft, fnRight, fnOperator, bLazy, aParts) { return fnOperator(fnLeft(aParts), bLazy ? fnRight.bind(null, aParts) : fnRight(aParts)); }
javascript
function INFIX(fnLeft, fnRight, fnOperator, bLazy, aParts) { return fnOperator(fnLeft(aParts), bLazy ? fnRight.bind(null, aParts) : fnRight(aParts)); }
[ "function", "INFIX", "(", "fnLeft", ",", "fnRight", ",", "fnOperator", ",", "bLazy", ",", "aParts", ")", "{", "return", "fnOperator", "(", "fnLeft", "(", "aParts", ")", ",", "bLazy", "?", "fnRight", ".", "bind", "(", "null", ",", "aParts", ")", ":", ...
Formatter function for an infix operator. @param {function} fnLeft - formatter function for the left operand @param {function} fnRight - formatter function for the right operand @param {function} fnOperator function taking two arguments which evaluates the infix operator @param {boolean} bLazy - whether the right oper...
[ "Formatter", "function", "for", "an", "infix", "operator", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L399-L402
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
MAP
function MAP(mMap, aParts) { var sKey, mResult = {}; for (sKey in mMap) { mResult[sKey] = mMap[sKey](aParts); // evaluate value } return mResult; }
javascript
function MAP(mMap, aParts) { var sKey, mResult = {}; for (sKey in mMap) { mResult[sKey] = mMap[sKey](aParts); // evaluate value } return mResult; }
[ "function", "MAP", "(", "mMap", ",", "aParts", ")", "{", "var", "sKey", ",", "mResult", "=", "{", "}", ";", "for", "(", "sKey", "in", "mMap", ")", "{", "mResult", "[", "sKey", "]", "=", "mMap", "[", "sKey", "]", "(", "aParts", ")", ";", "// eva...
Formatter function for an object literal. @param {object} mMap - map from key to formatter functions for the values @param {any[]} aParts - the array of binding values @return {object} - the resulting map
[ "Formatter", "function", "for", "an", "object", "literal", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L410-L417
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
PROPERTY_ACCESS
function PROPERTY_ACCESS(fnLeft, fnName, aParts, oReference) { var oParent = fnLeft(aParts), sIdentifier = fnName(aParts), // BEWARE: evaluate propertyNameValue AFTER baseValue! vChild = oParent[sIdentifier]; if (oReference) { oReference.base = oParent; } return vChild; }
javascript
function PROPERTY_ACCESS(fnLeft, fnName, aParts, oReference) { var oParent = fnLeft(aParts), sIdentifier = fnName(aParts), // BEWARE: evaluate propertyNameValue AFTER baseValue! vChild = oParent[sIdentifier]; if (oReference) { oReference.base = oParent; } return vChild; }
[ "function", "PROPERTY_ACCESS", "(", "fnLeft", ",", "fnName", ",", "aParts", ",", "oReference", ")", "{", "var", "oParent", "=", "fnLeft", "(", "aParts", ")", ",", "sIdentifier", "=", "fnName", "(", "aParts", ")", ",", "// BEWARE: evaluate propertyNameValue AFTER...
Formatter function for a property access. @param {function} fnLeft - formatter function for the left operand: the array or object to access @param {function} fnName - formatter function for the property name @param {any[]} aParts - the array of binding values @param {object} [oReference] optional side channel to return...
[ "Formatter", "function", "for", "a", "property", "access", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L429-L438
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
addInfix
function addInfix(sId, iBindingPower, fnOperator, bLazy) { // Note: this function is executed at load time only! mSymbols[sId] = { lbp: iBindingPower, led: function (oToken, oParser, fnLeft) { //lazy evaluation is right associative: performance optimization for guard and //default operator, e.g. true ...
javascript
function addInfix(sId, iBindingPower, fnOperator, bLazy) { // Note: this function is executed at load time only! mSymbols[sId] = { lbp: iBindingPower, led: function (oToken, oParser, fnLeft) { //lazy evaluation is right associative: performance optimization for guard and //default operator, e.g. true ...
[ "function", "addInfix", "(", "sId", ",", "iBindingPower", ",", "fnOperator", ",", "bLazy", ")", "{", "// Note: this function is executed at load time only!", "mSymbols", "[", "sId", "]", "=", "{", "lbp", ":", "iBindingPower", ",", "led", ":", "function", "(", "o...
Adds the infix operator with the given id, binding power and formatter function to the symbol table. @param {string} sId - the id of the infix operator @param {int} iBindingPower - the binding power = precedence of the infix operator @param {function} fnOperator - the function to evaluate the operator @param {boolean} ...
[ "Adds", "the", "infix", "operator", "with", "the", "given", "id", "binding", "power", "and", "formatter", "function", "to", "the", "symbol", "table", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L462-L477
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
saveBindingAsPart
function saveBindingAsPart(oBinding, iStart, bTargetTypeAny) { var bHasNonPrimitiveValue = false, sKey, oPrimitiveValueBinding, i; /* * Sets the target type of the given binding to the default "any", if applicable. * * @param {object} oBinding * A binding */ function setTarge...
javascript
function saveBindingAsPart(oBinding, iStart, bTargetTypeAny) { var bHasNonPrimitiveValue = false, sKey, oPrimitiveValueBinding, i; /* * Sets the target type of the given binding to the default "any", if applicable. * * @param {object} oBinding * A binding */ function setTarge...
[ "function", "saveBindingAsPart", "(", "oBinding", ",", "iStart", ",", "bTargetTypeAny", ")", "{", "var", "bHasNonPrimitiveValue", "=", "false", ",", "sKey", ",", "oPrimitiveValueBinding", ",", "i", ";", "/*\n\t\t\t * Sets the target type of the given binding to the default ...
Saves the binding as a part. Reuses an existing part if the binding is identical. @param {object} oBinding the binding to save @param {int} iStart the binding's start index in the input string @param {boolean} [bTargetTypeAny=false] whether the binding's "targetType" should default to "any" (recursively, for all parts)...
[ "Saves", "the", "binding", "as", "a", "part", ".", "Reuses", "an", "existing", "part", "if", "the", "binding", "is", "identical", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L541-L595
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
consumeToken
function consumeToken() { var ch, oBinding, iIndex, aMatches, oToken; oTokenizer.white(); ch = oTokenizer.getCh(); iIndex = oTokenizer.getIndex(); if ((ch === "$" || ch === "%") && sInput[iIndex + 1] === "{") { //binding oBinding = fnResolveBinding(sInput, iIndex + 1); oToken = { id: "BIND...
javascript
function consumeToken() { var ch, oBinding, iIndex, aMatches, oToken; oTokenizer.white(); ch = oTokenizer.getCh(); iIndex = oTokenizer.getIndex(); if ((ch === "$" || ch === "%") && sInput[iIndex + 1] === "{") { //binding oBinding = fnResolveBinding(sInput, iIndex + 1); oToken = { id: "BIND...
[ "function", "consumeToken", "(", ")", "{", "var", "ch", ",", "oBinding", ",", "iIndex", ",", "aMatches", ",", "oToken", ";", "oTokenizer", ".", "white", "(", ")", ";", "ch", "=", "oTokenizer", ".", "getCh", "(", ")", ";", "iIndex", "=", "oTokenizer", ...
Consumes the next token in the input string and pushes it to the array of tokens. @returns {boolean} whether a token is recognized @throws {Error|Object|SyntaxError} <code>fnResolveBinding</code> may throw <code>SyntaxError</code>; <code>oTokenizer.setIndex()</code> may throw <code>Error</code>; <code>oTokenizer</code...
[ "Consumes", "the", "next", "token", "in", "the", "input", "string", "and", "pushes", "it", "to", "the", "array", "of", "tokens", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L606-L656
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ExpressionParser.js
expression
function expression(rbp) { var fnLeft; oToken = advance(); if (!oToken) { error("Expected expression but instead saw end of input", sInput); } fnLeft = mSymbols[oToken.id].nud(oToken, oParser); while (iNextToken < aTokens.length) { oToken = current(); if (rbp >= (mSymbols[oToken.id].lbp ...
javascript
function expression(rbp) { var fnLeft; oToken = advance(); if (!oToken) { error("Expected expression but instead saw end of input", sInput); } fnLeft = mSymbols[oToken.id].nud(oToken, oParser); while (iNextToken < aTokens.length) { oToken = current(); if (rbp >= (mSymbols[oToken.id].lbp ...
[ "function", "expression", "(", "rbp", ")", "{", "var", "fnLeft", ";", "oToken", "=", "advance", "(", ")", ";", "if", "(", "!", "oToken", ")", "{", "error", "(", "\"Expected expression but instead saw end of input\"", ",", "sInput", ")", ";", "}", "fnLeft", ...
Parse an expression starting at the current token. Throws an error if there are no more tokens and @param {number} rbp a "right binding power" @returns {function} The formatter function for the expression
[ "Parse", "an", "expression", "starting", "at", "the", "current", "token", ".", "Throws", "an", "error", "if", "there", "are", "no", "more", "tokens", "and" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ExpressionParser.js#L768-L787
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Controls.controller.js
function(oEvent) { var sFilter = oEvent.oSource.getFilter(), oSearchField = this.getOwnerComponent().byId("controlsMaster").byId("searchField"); // Apply the value and fire a live change event so the list will be filtered oSearchField.setValue(sFilter).fireLiveChange({ newValue: sFilter }); ...
javascript
function(oEvent) { var sFilter = oEvent.oSource.getFilter(), oSearchField = this.getOwnerComponent().byId("controlsMaster").byId("searchField"); // Apply the value and fire a live change event so the list will be filtered oSearchField.setValue(sFilter).fireLiveChange({ newValue: sFilter }); ...
[ "function", "(", "oEvent", ")", "{", "var", "sFilter", "=", "oEvent", ".", "oSource", ".", "getFilter", "(", ")", ",", "oSearchField", "=", "this", ".", "getOwnerComponent", "(", ")", ".", "byId", "(", "\"controlsMaster\"", ")", ".", "byId", "(", "\"sear...
Filter for controls in the master search field when the title of a control section was pressed
[ "Filter", "for", "controls", "in", "the", "master", "search", "field", "when", "the", "title", "of", "a", "control", "section", "was", "pressed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Controls.controller.js#L51-L63
train
SAP/openui5
src/sap.f/src/sap/f/cards/ActionEnablement.js
_setItemTypeFormatter
function _setItemTypeFormatter(oAction) { var that = this; var oBindingInfo = ManagedObject.bindingParser("{path:''}"); // Async formatter to set ListItem type depending if the list item context is a correct navigation target (decided by the navigation service). oBindingInfo.formatter = function (vValue) {...
javascript
function _setItemTypeFormatter(oAction) { var that = this; var oBindingInfo = ManagedObject.bindingParser("{path:''}"); // Async formatter to set ListItem type depending if the list item context is a correct navigation target (decided by the navigation service). oBindingInfo.formatter = function (vValue) {...
[ "function", "_setItemTypeFormatter", "(", "oAction", ")", "{", "var", "that", "=", "this", ";", "var", "oBindingInfo", "=", "ManagedObject", ".", "bindingParser", "(", "\"{path:''}\"", ")", ";", "// Async formatter to set ListItem type depending if the list item context is ...
List card specific
[ "List", "card", "specific" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/cards/ActionEnablement.js#L35-L86
train
SAP/openui5
src/sap.f/src/sap/f/cards/ActionEnablement.js
_setActionEnabledState
function _setActionEnabledState(oAction) { var oBindingInfo; if (typeof oAction.enabled === "string") { oBindingInfo = ManagedObject.bindingParser(oAction.enabled); oBindingInfo.formatter = function (vValue) { if (vValue && (typeof vValue === "string")) { return "Navigation"; } else { ...
javascript
function _setActionEnabledState(oAction) { var oBindingInfo; if (typeof oAction.enabled === "string") { oBindingInfo = ManagedObject.bindingParser(oAction.enabled); oBindingInfo.formatter = function (vValue) { if (vValue && (typeof vValue === "string")) { return "Navigation"; } else { ...
[ "function", "_setActionEnabledState", "(", "oAction", ")", "{", "var", "oBindingInfo", ";", "if", "(", "typeof", "oAction", ".", "enabled", "===", "\"string\"", ")", "{", "oBindingInfo", "=", "ManagedObject", ".", "bindingParser", "(", "oAction", ".", "enabled",...
List and Table card specific
[ "List", "and", "Table", "card", "specific" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/cards/ActionEnablement.js#L127-L147
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/DocumentationRouter.js
function(oEvent) { var sEntityType, sEntityId, aSplit, sId = oEvent.getParameter("arguments").id; if (sId) { aSplit = sId.split("#"); if (aSplit.length === 2) { sId = aSplit[0]; sEntityType = aSplit[1]; aSplit = sEntityType.split(":"); if (aSplit.length === 2) { sEn...
javascript
function(oEvent) { var sEntityType, sEntityId, aSplit, sId = oEvent.getParameter("arguments").id; if (sId) { aSplit = sId.split("#"); if (aSplit.length === 2) { sId = aSplit[0]; sEntityType = aSplit[1]; aSplit = sEntityType.split(":"); if (aSplit.length === 2) { sEn...
[ "function", "(", "oEvent", ")", "{", "var", "sEntityType", ",", "sEntityId", ",", "aSplit", ",", "sId", "=", "oEvent", ".", "getParameter", "(", "\"arguments\"", ")", ".", "id", ";", "if", "(", "sId", ")", "{", "aSplit", "=", "sId", ".", "split", "("...
Handling old Demo Kit API routes which should be navigated to new routes @param {object} oEvent event object @private
[ "Handling", "old", "Demo", "Kit", "API", "routes", "which", "should", "be", "navigated", "to", "new", "routes" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/DocumentationRouter.js#L94-L121
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/ODataContextBinding.js
getReturnValueContextPath
function getReturnValueContextPath(sPath, sResponsePredicate) { var sBoundParameterPath = sPath.slice(0, sPath.lastIndexOf("/")), i = sBoundParameterPath.indexOf("("); return (i < 0 ? sBoundParameterPath : sPath.slice(0, i)) + sResponsePredicate; }
javascript
function getReturnValueContextPath(sPath, sResponsePredicate) { var sBoundParameterPath = sPath.slice(0, sPath.lastIndexOf("/")), i = sBoundParameterPath.indexOf("("); return (i < 0 ? sBoundParameterPath : sPath.slice(0, i)) + sResponsePredicate; }
[ "function", "getReturnValueContextPath", "(", "sPath", ",", "sResponsePredicate", ")", "{", "var", "sBoundParameterPath", "=", "sPath", ".", "slice", "(", "0", ",", "sPath", ".", "lastIndexOf", "(", "\"/\"", ")", ")", ",", "i", "=", "sBoundParameterPath", ".",...
Returns the path for the return value context. Supports bound operations on an entity or a collection. @param {string} sPath The bindings's path; either a resolved model path or a resource path; for example: "Artists(ArtistID='42',IsActiveEntity=true)/special.cases.EditAction(...)" or "/Artists(ArtistID='42',IsActiveE...
[ "Returns", "the", "path", "for", "the", "return", "value", "context", ".", "Supports", "bound", "operations", "on", "an", "entity", "or", "a", "collection", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/ODataContextBinding.js#L44-L49
train
SAP/openui5
src/sap.m/src/sap/m/DateTimeInput.js
buildPickerByType
function buildPickerByType(type){ var oPicker; switch (type) { case DateTimeInputType.DateTime: oPicker = new DateTimePicker(this.getId() + "-Picker"); break; case DateTimeInputType.Time: oPicker = new TimePicker(this.getId() + "-Picker", {localeId: sap.ui.getCore().getConfiguration().getFo...
javascript
function buildPickerByType(type){ var oPicker; switch (type) { case DateTimeInputType.DateTime: oPicker = new DateTimePicker(this.getId() + "-Picker"); break; case DateTimeInputType.Time: oPicker = new TimePicker(this.getId() + "-Picker", {localeId: sap.ui.getCore().getConfiguration().getFo...
[ "function", "buildPickerByType", "(", "type", ")", "{", "var", "oPicker", ";", "switch", "(", "type", ")", "{", "case", "DateTimeInputType", ".", "DateTime", ":", "oPicker", "=", "new", "DateTimePicker", "(", "this", ".", "getId", "(", ")", "+", "\"-Picker...
Creates an instance of picker depending of the given property type @param {sap.m.DateTimeInputType} type the type @returns {sap.ui.core.Control} picker implementation, that may be one of <code>sap.m.DatePicker</code>, <code>sap.m.TimePicker</code> or <code>sap.m.DateTimePicker</code>.
[ "Creates", "an", "instance", "of", "picker", "depending", "of", "the", "given", "property", "type" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/DateTimeInput.js#L276-L317
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/rules/App.support.js
function(oController, viewId, aInvalidContent, fnProcessInvalidFunction) { var _aInvalidControllerFunctions = []; Object.keys(oController).forEach(function(sProtoKey) { var sFnContent = oController[sProtoKey].toString().replace(/(\r\n|\n|\r)/gm, ""); aInvalidContent.forEach(function(sInvalidContent) ...
javascript
function(oController, viewId, aInvalidContent, fnProcessInvalidFunction) { var _aInvalidControllerFunctions = []; Object.keys(oController).forEach(function(sProtoKey) { var sFnContent = oController[sProtoKey].toString().replace(/(\r\n|\n|\r)/gm, ""); aInvalidContent.forEach(function(sInvalidContent) ...
[ "function", "(", "oController", ",", "viewId", ",", "aInvalidContent", ",", "fnProcessInvalidFunction", ")", "{", "var", "_aInvalidControllerFunctions", "=", "[", "]", ";", "Object", ".", "keys", "(", "oController", ")", ".", "forEach", "(", "function", "(", "...
checks the given module's functions code for invalidContent returns an array which contains the functions with invalid content
[ "checks", "the", "given", "module", "s", "functions", "code", "for", "invalidContent", "returns", "an", "array", "which", "contains", "the", "functions", "with", "invalid", "content" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/rules/App.support.js#L65-L79
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ManagedObject.js
getStashedControls
function getStashedControls(sId) { if (!StashedControlSupport) { StashedControlSupport = sap.ui.require("sap/ui/core/StashedControlSupport"); } if (StashedControlSupport) { return StashedControlSupport.getStashedControls(sId); } return []; }
javascript
function getStashedControls(sId) { if (!StashedControlSupport) { StashedControlSupport = sap.ui.require("sap/ui/core/StashedControlSupport"); } if (StashedControlSupport) { return StashedControlSupport.getStashedControls(sId); } return []; }
[ "function", "getStashedControls", "(", "sId", ")", "{", "if", "(", "!", "StashedControlSupport", ")", "{", "StashedControlSupport", "=", "sap", ".", "ui", ".", "require", "(", "\"sap/ui/core/StashedControlSupport\"", ")", ";", "}", "if", "(", "StashedControlSuppor...
Returns an array of stashed child elements or an empty array if there are none. @param {string} sId id of the object which should have stashed children @return {sap.ui.core._StashedControl[]} array of stashed children @private
[ "Returns", "an", "array", "of", "stashed", "child", "elements", "or", "an", "empty", "array", "if", "there", "are", "none", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ManagedObject.js#L970-L978
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ManagedObject.js
updateGroup
function updateGroup(oContext) { var oNewGroup = oBinding.getGroup(oContext); if (oNewGroup.key !== sGroup) { var oGroupHeader; //If factory is defined use it if (oBindingInfo.groupHeaderFactory) { oGroupHeader = oBindingInfo.groupHeaderFactory(oNewGroup); } that[sGroupFunction](oNewGroup...
javascript
function updateGroup(oContext) { var oNewGroup = oBinding.getGroup(oContext); if (oNewGroup.key !== sGroup) { var oGroupHeader; //If factory is defined use it if (oBindingInfo.groupHeaderFactory) { oGroupHeader = oBindingInfo.groupHeaderFactory(oNewGroup); } that[sGroupFunction](oNewGroup...
[ "function", "updateGroup", "(", "oContext", ")", "{", "var", "oNewGroup", "=", "oBinding", ".", "getGroup", "(", "oContext", ")", ";", "if", "(", "oNewGroup", ".", "key", "!==", "sGroup", ")", "{", "var", "oGroupHeader", ";", "//If factory is defined use it", ...
Check the current context for its group. If the group key changes, call the group function on the control.
[ "Check", "the", "current", "context", "for", "its", "group", ".", "If", "the", "group", "key", "changes", "call", "the", "group", "function", "on", "the", "control", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ManagedObject.js#L4042-L4053
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/ManagedObject.js
updateRecursive
function updateRecursive(oControl, oContexts) { update(oControl, oContexts, null, function(oContext, oClone) { updateRecursive(oClone, oBinding.getNodeContexts(oContext)); }); }
javascript
function updateRecursive(oControl, oContexts) { update(oControl, oContexts, null, function(oContext, oClone) { updateRecursive(oClone, oBinding.getNodeContexts(oContext)); }); }
[ "function", "updateRecursive", "(", "oControl", ",", "oContexts", ")", "{", "update", "(", "oControl", ",", "oContexts", ",", "null", ",", "function", "(", "oContext", ",", "oClone", ")", "{", "updateRecursive", "(", "oClone", ",", "oBinding", ".", "getNodeC...
Update the tree recursively
[ "Update", "the", "tree", "recursively" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ManagedObject.js#L4056-L4060
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { return (oTable.getSelectionMode() !== SelectionMode.None && oTable.getSelectionBehavior() !== SelectionBehavior.RowOnly) || TableGrouping.isGroupMode(oTable); }
javascript
function(oTable) { return (oTable.getSelectionMode() !== SelectionMode.None && oTable.getSelectionBehavior() !== SelectionBehavior.RowOnly) || TableGrouping.isGroupMode(oTable); }
[ "function", "(", "oTable", ")", "{", "return", "(", "oTable", ".", "getSelectionMode", "(", ")", "!==", "SelectionMode", ".", "None", "&&", "oTable", ".", "getSelectionBehavior", "(", ")", "!==", "SelectionBehavior", ".", "RowOnly", ")", "||", "TableGrouping",...
Returns whether the table has row header cells. @param {sap.ui.table.Table} oTable Instance of the table. @returns {boolean} Whether the table has row header cells.
[ "Returns", "whether", "the", "table", "has", "row", "header", "cells", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L235-L238
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { var sSelectionMode = oTable ? oTable.getSelectionMode() : SelectionMode.None; return sSelectionMode === SelectionMode.MultiToggle && oTable.getEnableSelectAll(); }
javascript
function(oTable) { var sSelectionMode = oTable ? oTable.getSelectionMode() : SelectionMode.None; return sSelectionMode === SelectionMode.MultiToggle && oTable.getEnableSelectAll(); }
[ "function", "(", "oTable", ")", "{", "var", "sSelectionMode", "=", "oTable", "?", "oTable", ".", "getSelectionMode", "(", ")", ":", "SelectionMode", ".", "None", ";", "return", "sSelectionMode", "===", "SelectionMode", ".", "MultiToggle", "&&", "oTable", ".", ...
Returns whether the table has a SelectAll checkbox. @param {sap.ui.table.Table} oTable Instance of the table. @returns {boolean} Whether the table has a SelectAll checkbox.
[ "Returns", "whether", "the", "table", "has", "a", "SelectAll", "checkbox", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L246-L249
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { if (!oTable) { return false; } var oRowSettingsTemplate = oTable.getRowSettingsTemplate(); if (!oRowSettingsTemplate) { return false; } var sHighlight = oRowSettingsTemplate.getHighlight(); return oRowSettingsTemplate.isBound("highlight") || (sHighlight != null...
javascript
function(oTable) { if (!oTable) { return false; } var oRowSettingsTemplate = oTable.getRowSettingsTemplate(); if (!oRowSettingsTemplate) { return false; } var sHighlight = oRowSettingsTemplate.getHighlight(); return oRowSettingsTemplate.isBound("highlight") || (sHighlight != null...
[ "function", "(", "oTable", ")", "{", "if", "(", "!", "oTable", ")", "{", "return", "false", ";", "}", "var", "oRowSettingsTemplate", "=", "oTable", ".", "getRowSettingsTemplate", "(", ")", ";", "if", "(", "!", "oRowSettingsTemplate", ")", "{", "return", ...
Returns whether the table has row highlights. @param {sap.ui.table.Table} oTable Instance of the table. @returns {boolean} Whether the table has row highlights.
[ "Returns", "whether", "the", "table", "has", "row", "highlights", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L257-L272
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { var oRowActionTemplate = oTable ? oTable.getRowActionTemplate() : null; return oRowActionTemplate != null && (oRowActionTemplate.isBound("visible") || oRowActionTemplate.getVisible()) && TableUtils.getRowActionCount(oTable) > 0; }
javascript
function(oTable) { var oRowActionTemplate = oTable ? oTable.getRowActionTemplate() : null; return oRowActionTemplate != null && (oRowActionTemplate.isBound("visible") || oRowActionTemplate.getVisible()) && TableUtils.getRowActionCount(oTable) > 0; }
[ "function", "(", "oTable", ")", "{", "var", "oRowActionTemplate", "=", "oTable", "?", "oTable", ".", "getRowActionTemplate", "(", ")", ":", "null", ";", "return", "oRowActionTemplate", "!=", "null", "&&", "(", "oRowActionTemplate", ".", "isBound", "(", "\"visi...
Returns whether the table has a row action column. @param {sap.ui.table.Table} oTable Instance of the table. @returns {boolean} Whether the table has row actions.
[ "Returns", "whether", "the", "table", "has", "a", "row", "action", "column", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L291-L297
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { if (!oTable) { return false; } var iSelectableRowCount = oTable._getSelectableRowCount(); return iSelectableRowCount > 0 && iSelectableRowCount === oTable._getSelectedIndicesCount(); }
javascript
function(oTable) { if (!oTable) { return false; } var iSelectableRowCount = oTable._getSelectableRowCount(); return iSelectableRowCount > 0 && iSelectableRowCount === oTable._getSelectedIndicesCount(); }
[ "function", "(", "oTable", ")", "{", "if", "(", "!", "oTable", ")", "{", "return", "false", ";", "}", "var", "iSelectableRowCount", "=", "oTable", ".", "_getSelectableRowCount", "(", ")", ";", "return", "iSelectableRowCount", ">", "0", "&&", "iSelectableRowC...
Finds out if all rows are selected in a table. @param {sap.ui.table.Table} oTable Instance of the table. @returns {boolean} Returns <code>true</code> if all rows in the table are selected.
[ "Finds", "out", "if", "all", "rows", "are", "selected", "in", "a", "table", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L327-L334
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { var oBinding = oTable.getBinding("rows"); var iTotalRowCount = oTable._getTotalRowCount(); var bHasData = iTotalRowCount > 0; if (oBinding && oBinding.providesGrandTotal) { // Analytical Binding var bHasTotal = oBinding.providesGrandTotal() && oBinding.hasTotaledMeasures(); bHasD...
javascript
function(oTable) { var oBinding = oTable.getBinding("rows"); var iTotalRowCount = oTable._getTotalRowCount(); var bHasData = iTotalRowCount > 0; if (oBinding && oBinding.providesGrandTotal) { // Analytical Binding var bHasTotal = oBinding.providesGrandTotal() && oBinding.hasTotaledMeasures(); bHasD...
[ "function", "(", "oTable", ")", "{", "var", "oBinding", "=", "oTable", ".", "getBinding", "(", "\"rows\"", ")", ";", "var", "iTotalRowCount", "=", "oTable", ".", "_getTotalRowCount", "(", ")", ";", "var", "bHasData", "=", "iTotalRowCount", ">", "0", ";", ...
Returns whether the table currently has data. @param {sap.ui.table.Table} oTable Instance of the table. @returns {boolean} Whether the table has data.
[ "Returns", "whether", "the", "table", "currently", "has", "data", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L357-L368
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { if (!oTable || !oTable.getDomRef()) { return false; } return oTable.getDomRef().querySelector("#" + oTable.getId() + "-sapUiTableGridCnt > .sapUiLocalBusyIndicator") != null; }
javascript
function(oTable) { if (!oTable || !oTable.getDomRef()) { return false; } return oTable.getDomRef().querySelector("#" + oTable.getId() + "-sapUiTableGridCnt > .sapUiLocalBusyIndicator") != null; }
[ "function", "(", "oTable", ")", "{", "if", "(", "!", "oTable", "||", "!", "oTable", ".", "getDomRef", "(", ")", ")", "{", "return", "false", ";", "}", "return", "oTable", ".", "getDomRef", "(", ")", ".", "querySelector", "(", "\"#\"", "+", "oTable", ...
Returns whether the busy indicator is visible. It is considered as visible when the busy indicator element exists in the DOM as a child of the table element. It is not checked whether the indicator is actually visible on the screen. @param {sap.ui.table.Table} oTable Instance of the table. @returns {boolean} Whether t...
[ "Returns", "whether", "the", "busy", "indicator", "is", "visible", ".", "It", "is", "considered", "as", "visible", "when", "the", "busy", "indicator", "element", "exists", "in", "the", "DOM", "as", "a", "child", "of", "the", "table", "element", ".", "It", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L377-L383
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { if (!oTable) { return false; } if (TableUtils.canUsePendingRequestsCounter(oTable)) { return oTable._iPendingRequests > 0; } else { return oTable._bPendingRequest; } }
javascript
function(oTable) { if (!oTable) { return false; } if (TableUtils.canUsePendingRequestsCounter(oTable)) { return oTable._iPendingRequests > 0; } else { return oTable._bPendingRequest; } }
[ "function", "(", "oTable", ")", "{", "if", "(", "!", "oTable", ")", "{", "return", "false", ";", "}", "if", "(", "TableUtils", ".", "canUsePendingRequestsCounter", "(", "oTable", ")", ")", "{", "return", "oTable", ".", "_iPendingRequests", ">", "0", ";",...
Returns whether one or more requests are currently in process by the binding. @param {sap.ui.table.Table} oTable Instance of the table. @returns {boolean} Whether the binding of the table is currently requesting data.
[ "Returns", "whether", "one", "or", "more", "requests", "are", "currently", "in", "process", "by", "the", "binding", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L391-L401
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { var oBinding = oTable ? oTable.getBinding("rows") : null; if (TableUtils.isA(oBinding, "sap.ui.model.analytics.AnalyticalBinding")) { return oBinding.bUseBatchRequests; } else if (TableUtils.isA(oBinding, "sap.ui.model.TreeBinding")) { return false; } return true; }
javascript
function(oTable) { var oBinding = oTable ? oTable.getBinding("rows") : null; if (TableUtils.isA(oBinding, "sap.ui.model.analytics.AnalyticalBinding")) { return oBinding.bUseBatchRequests; } else if (TableUtils.isA(oBinding, "sap.ui.model.TreeBinding")) { return false; } return true; }
[ "function", "(", "oTable", ")", "{", "var", "oBinding", "=", "oTable", "?", "oTable", ".", "getBinding", "(", "\"rows\"", ")", ":", "null", ";", "if", "(", "TableUtils", ".", "isA", "(", "oBinding", ",", "\"sap.ui.model.analytics.AnalyticalBinding\"", ")", "...
A counter to determine whether there are pending requests can be used if exactly one dataReceived event is fired for every dataRequested event. If this is not the case and there can be an imbalance between dataReceived and dataRequested events, a more limited method using a boolean flag must be used. It is not always ...
[ "A", "counter", "to", "determine", "whether", "there", "are", "pending", "requests", "can", "be", "used", "if", "exactly", "one", "dataReceived", "event", "is", "fired", "for", "every", "dataRequested", "event", ".", "If", "this", "is", "not", "the", "case",...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L422-L432
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable, vRowIndicator, bSelect, fnDoSelect) { if (!oTable || !oTable.getBinding("rows") || oTable.getSelectionMode() === SelectionMode.None || vRowIndicator == null) { return false; } function setSelectionState(iAbsoluteRowIndex) { if (!oTable._isRowSelectable(iAbsoluteRowIndex))...
javascript
function(oTable, vRowIndicator, bSelect, fnDoSelect) { if (!oTable || !oTable.getBinding("rows") || oTable.getSelectionMode() === SelectionMode.None || vRowIndicator == null) { return false; } function setSelectionState(iAbsoluteRowIndex) { if (!oTable._isRowSelectable(iAbsoluteRowIndex))...
[ "function", "(", "oTable", ",", "vRowIndicator", ",", "bSelect", ",", "fnDoSelect", ")", "{", "if", "(", "!", "oTable", "||", "!", "oTable", ".", "getBinding", "(", "\"rows\"", ")", "||", "oTable", ".", "getSelectionMode", "(", ")", "===", "SelectionMode",...
Toggles the selection state of the row which contains the given cell DOM element. @param {sap.ui.table.Table} oTable Instance of the table. @param {jQuery | HTMLElement | int} vRowIndicator The data cell in the row, or the data row index of the row, where the selection state should be toggled. @param {boolean} [bSelec...
[ "Toggles", "the", "selection", "state", "of", "the", "row", "which", "contains", "the", "given", "cell", "DOM", "element", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L457-L522
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { var oNoData = oTable.getNoData(); if (oNoData instanceof Control) { return null; } else if (typeof oNoData === "string" || oTable.getNoData() instanceof String) { return oNoData; } else { return TableUtils.getResourceText("TBL_NO_DATA"); } }
javascript
function(oTable) { var oNoData = oTable.getNoData(); if (oNoData instanceof Control) { return null; } else if (typeof oNoData === "string" || oTable.getNoData() instanceof String) { return oNoData; } else { return TableUtils.getResourceText("TBL_NO_DATA"); } }
[ "function", "(", "oTable", ")", "{", "var", "oNoData", "=", "oTable", ".", "getNoData", "(", ")", ";", "if", "(", "oNoData", "instanceof", "Control", ")", "{", "return", "null", ";", "}", "else", "if", "(", "typeof", "oNoData", "===", "\"string\"", "||...
Returns the text to be displayed as no data message. If a custom noData control is set null is returned. @param {sap.ui.table.Table} oTable Instance of the table. @returns {String | string | null} The no data text.
[ "Returns", "the", "text", "to", "be", "displayed", "as", "no", "data", "message", ".", "If", "a", "custom", "noData", "control", "is", "set", "null", "is", "returned", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L531-L540
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable) { if (oTable._iHeaderRowCount === undefined) { if (!oTable.getColumnHeaderVisible()) { oTable._iHeaderRowCount = 0; } else { var iHeaderRows = 1; var aColumns = oTable.getColumns(); for (var i = 0; i < aColumns.length; i++) { if (aColumns[i].shouldRender()) { ...
javascript
function(oTable) { if (oTable._iHeaderRowCount === undefined) { if (!oTable.getColumnHeaderVisible()) { oTable._iHeaderRowCount = 0; } else { var iHeaderRows = 1; var aColumns = oTable.getColumns(); for (var i = 0; i < aColumns.length; i++) { if (aColumns[i].shouldRender()) { ...
[ "function", "(", "oTable", ")", "{", "if", "(", "oTable", ".", "_iHeaderRowCount", "===", "undefined", ")", "{", "if", "(", "!", "oTable", ".", "getColumnHeaderVisible", "(", ")", ")", "{", "oTable", ".", "_iHeaderRowCount", "=", "0", ";", "}", "else", ...
Returns the number of header rows. @param {sap.ui.table.Table} oTable Instance of the table. @returns {int} The number of rows in the table header.
[ "Returns", "the", "number", "of", "header", "rows", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L558-L577
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable, iIndex, oEvent) { var oIN = oTable._getItemNavigation(); if (oIN) { oIN.focusItem(iIndex, oEvent); } }
javascript
function(oTable, iIndex, oEvent) { var oIN = oTable._getItemNavigation(); if (oIN) { oIN.focusItem(iIndex, oEvent); } }
[ "function", "(", "oTable", ",", "iIndex", ",", "oEvent", ")", "{", "var", "oIN", "=", "oTable", ".", "_getItemNavigation", "(", ")", ";", "if", "(", "oIN", ")", "{", "oIN", ".", "focusItem", "(", "iIndex", ",", "oEvent", ")", ";", "}", "}" ]
Focus the item with the given index in the item navigation. @param {sap.ui.table.Table} oTable Instance of the table. @param {int} iIndex Index of item in ItemNavigation which shall get the focus. @param {Object} oEvent The event object.
[ "Focus", "the", "item", "with", "the", "given", "index", "in", "the", "item", "navigation", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L687-L692
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable, oElement, bIncludePseudoCells) { bIncludePseudoCells = bIncludePseudoCells === true; if (!oTable || !oElement) { return null; } var $Element = jQuery(oElement); var oTableElement = oTable.getDomRef(); var sSelector = ".sapUiTableCell"; if (!bIncludePseudoCells) { sSelect...
javascript
function(oTable, oElement, bIncludePseudoCells) { bIncludePseudoCells = bIncludePseudoCells === true; if (!oTable || !oElement) { return null; } var $Element = jQuery(oElement); var oTableElement = oTable.getDomRef(); var sSelector = ".sapUiTableCell"; if (!bIncludePseudoCells) { sSelect...
[ "function", "(", "oTable", ",", "oElement", ",", "bIncludePseudoCells", ")", "{", "bIncludePseudoCells", "=", "bIncludePseudoCells", "===", "true", ";", "if", "(", "!", "oTable", "||", "!", "oElement", ")", "{", "return", "null", ";", "}", "var", "$Element",...
Returns the table cell which is either the parent of an element, or returns the element if it is a table cell itself. @param {sap.ui.table.Table} oTable Instance of the table used as the context within which to search for the cell. @param {jQuery | HTMLElement} oElement A table cell or an element inside a table cell. ...
[ "Returns", "the", "table", "cell", "which", "is", "either", "the", "parent", "of", "an", "element", "or", "returns", "the", "element", "if", "it", "is", "a", "table", "cell", "itself", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L861-L883
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable, oElement, bIncludePseudoCells) { bIncludePseudoCells = bIncludePseudoCells === true; var $Element = jQuery(oElement); var $Cell = TableUtils.getCell(oTable, oElement, bIncludePseudoCells); if (!$Cell || $Cell[0] === $Element[0]) { return null; // The element is not inside a table cell...
javascript
function(oTable, oElement, bIncludePseudoCells) { bIncludePseudoCells = bIncludePseudoCells === true; var $Element = jQuery(oElement); var $Cell = TableUtils.getCell(oTable, oElement, bIncludePseudoCells); if (!$Cell || $Cell[0] === $Element[0]) { return null; // The element is not inside a table cell...
[ "function", "(", "oTable", ",", "oElement", ",", "bIncludePseudoCells", ")", "{", "bIncludePseudoCells", "=", "bIncludePseudoCells", "===", "true", ";", "var", "$Element", "=", "jQuery", "(", "oElement", ")", ";", "var", "$Cell", "=", "TableUtils", ".", "getCe...
Returns the table cell which is the parent of an element. @param {sap.ui.table.Table} oTable Instance of the table used as the context within which to search for the parent cell. @param {jQuery | HTMLElement} oElement An element inside a table cell. @param {jQuery | HTMLElement} [bIncludePseudoCells=false] Whether to ...
[ "Returns", "the", "table", "cell", "which", "is", "the", "parent", "of", "an", "element", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L893-L904
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable, sIdSuffix, fnHandler, bRegisterParent) { var oDomRef; if (typeof sIdSuffix == "string") { oDomRef = oTable.getDomRef(sIdSuffix); } else { Log.error("sIdSuffix must be a string", oTable); return undefined; } if (typeof fnHandler !== "function") { Log.error("fnHandler must...
javascript
function(oTable, sIdSuffix, fnHandler, bRegisterParent) { var oDomRef; if (typeof sIdSuffix == "string") { oDomRef = oTable.getDomRef(sIdSuffix); } else { Log.error("sIdSuffix must be a string", oTable); return undefined; } if (typeof fnHandler !== "function") { Log.error("fnHandler must...
[ "function", "(", "oTable", ",", "sIdSuffix", ",", "fnHandler", ",", "bRegisterParent", ")", "{", "var", "oDomRef", ";", "if", "(", "typeof", "sIdSuffix", "==", "\"string\"", ")", "{", "oDomRef", "=", "oTable", ".", "getDomRef", "(", "sIdSuffix", ")", ";", ...
Registers a ResizeHandler for a DOM reference identified by its ID suffix. The ResizeHandler ID is tracked in _mResizeHandlerIds of the table instance. The sIdSuffix is used as key. Existing ResizeHandlers will be de-registered before the new one is registered. @param {sap.ui.table.Table} oTable Instance of the table....
[ "Registers", "a", "ResizeHandler", "for", "a", "DOM", "reference", "identified", "by", "its", "ID", "suffix", ".", "The", "ResizeHandler", "ID", "is", "tracked", "in", "_mResizeHandlerIds", "of", "the", "table", "instance", ".", "The", "sIdSuffix", "is", "used...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L917-L947
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oTable, vIdSuffix) { var aIdSuffix; if (!oTable._mResizeHandlerIds) { // no resize handler registered so far return; } if (typeof vIdSuffix == "string") { aIdSuffix = [vIdSuffix]; } else if (vIdSuffix === undefined) { aIdSuffix = []; // de-register all resize handlers if no ...
javascript
function(oTable, vIdSuffix) { var aIdSuffix; if (!oTable._mResizeHandlerIds) { // no resize handler registered so far return; } if (typeof vIdSuffix == "string") { aIdSuffix = [vIdSuffix]; } else if (vIdSuffix === undefined) { aIdSuffix = []; // de-register all resize handlers if no ...
[ "function", "(", "oTable", ",", "vIdSuffix", ")", "{", "var", "aIdSuffix", ";", "if", "(", "!", "oTable", ".", "_mResizeHandlerIds", ")", "{", "// no resize handler registered so far", "return", ";", "}", "if", "(", "typeof", "vIdSuffix", "==", "\"string\"", "...
De-register ResizeHandler identified by sIdSuffix. If sIdSuffix is undefined, all know ResizeHandlers will be de-registered. @param {sap.ui.table.Table} oTable Instance of the table. @param {string | Array.<string>} [vIdSuffix] ID suffix to identify the ResizeHandler to de-register. If undefined, all will be de-regist...
[ "De", "-", "register", "ResizeHandler", "identified", "by", "sIdSuffix", ".", "If", "sIdSuffix", "is", "undefined", "all", "know", "ResizeHandlers", "will", "be", "de", "-", "registered", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L956-L984
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(vObject, vCall, oThis) { var oObject = typeof vObject === "function" ? vObject() : vObject; if (!oObject || !vCall) { return undefined; } oThis = oThis || oObject; if (typeof vCall === "function") { vCall.call(oThis, oObject); return undefined; } else { var aParameters; ...
javascript
function(vObject, vCall, oThis) { var oObject = typeof vObject === "function" ? vObject() : vObject; if (!oObject || !vCall) { return undefined; } oThis = oThis || oObject; if (typeof vCall === "function") { vCall.call(oThis, oObject); return undefined; } else { var aParameters; ...
[ "function", "(", "vObject", ",", "vCall", ",", "oThis", ")", "{", "var", "oObject", "=", "typeof", "vObject", "===", "\"function\"", "?", "vObject", "(", ")", ":", "vObject", ";", "if", "(", "!", "oObject", "||", "!", "vCall", ")", "{", "return", "un...
Facilitates dynamic calling. @param {function():T | T} vObject The object, or a function returning the object, on which methods will be called. @param {function(this:U, T) | Object<string, Array.<*>>} vCall Called if <code>vObject</code> is, or returns an object. @param {U} [oThis] Context in the function calls, or in...
[ "Facilitates", "dynamic", "calling", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L1197-L1226
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(fn, mOptions) { // Functionality taken from lodash open source library and adapted as needed mOptions = Object.assign({ wait: 0, leading: true }, mOptions); mOptions.maxWait = mOptions.wait; mOptions.trailing = true; mOptions.requestAnimationFrame = false; return TableUtils.debou...
javascript
function(fn, mOptions) { // Functionality taken from lodash open source library and adapted as needed mOptions = Object.assign({ wait: 0, leading: true }, mOptions); mOptions.maxWait = mOptions.wait; mOptions.trailing = true; mOptions.requestAnimationFrame = false; return TableUtils.debou...
[ "function", "(", "fn", ",", "mOptions", ")", "{", "// Functionality taken from lodash open source library and adapted as needed", "mOptions", "=", "Object", ".", "assign", "(", "{", "wait", ":", "0", ",", "leading", ":", "true", "}", ",", "mOptions", ")", ";", "...
Invokes a method in a certain interval, regardless of how many times it was called. @param {Function} fn The method to throttle. @param {Object} [mOptions] The options that influence when the throttled method will be invoked. @param {int} [mOptions.wait=0] The amount of milliseconds to wait until actually invoking the...
[ "Invokes", "a", "method", "in", "a", "certain", "interval", "regardless", "of", "how", "many", "times", "it", "was", "called", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L1238-L1250
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
invoke
function invoke(vContext, vArguments, bAsync, bFinal) { iLastInvocationTime = bFinal === true ? null : Date.now(); if (vArguments == null) { return; } if (bAsync === true) { var oPromise = Promise.resolve().then(function() { if (!oPromise.canceled) { fn.apply(vContext, vArgument...
javascript
function invoke(vContext, vArguments, bAsync, bFinal) { iLastInvocationTime = bFinal === true ? null : Date.now(); if (vArguments == null) { return; } if (bAsync === true) { var oPromise = Promise.resolve().then(function() { if (!oPromise.canceled) { fn.apply(vContext, vArgument...
[ "function", "invoke", "(", "vContext", ",", "vArguments", ",", "bAsync", ",", "bFinal", ")", "{", "iLastInvocationTime", "=", "bFinal", "===", "true", "?", "null", ":", "Date", ".", "now", "(", ")", ";", "if", "(", "vArguments", "==", "null", ")", "{",...
Calls the method. Only calls the method if an arguments object is provided. @param {any} [vContext] The context of the call. @param {Object} [vArguments] The arguments object. @param {boolean} [bAsync=false] Whether the method should be called in a promise. @param {boolean} [bFinal=false] Whether this is the final inv...
[ "Calls", "the", "method", ".", "Only", "calls", "the", "method", "if", "an", "arguments", "object", "is", "provided", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L1299-L1320
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
invokeDebounced
function invokeDebounced(vContext, vArguments) { cancelTimer(); /** * Executes a trailing invocation if it is enabled in the options. * * @param {boolean} [bFinal=true] Whether this is the final invocation. */ function _invoke(bFinal) { bFinal = bFinal !== false; if (bFinal) {...
javascript
function invokeDebounced(vContext, vArguments) { cancelTimer(); /** * Executes a trailing invocation if it is enabled in the options. * * @param {boolean} [bFinal=true] Whether this is the final invocation. */ function _invoke(bFinal) { bFinal = bFinal !== false; if (bFinal) {...
[ "function", "invokeDebounced", "(", "vContext", ",", "vArguments", ")", "{", "cancelTimer", "(", ")", ";", "/**\n\t\t\t\t * Executes a trailing invocation if it is enabled in the options.\n\t\t\t\t *\n\t\t\t\t * @param {boolean} [bFinal=true] Whether this is the final invocation.\n\t\t\t\t *...
Calls the method debounced. Multiple calls within a certain time will be reduced to one call. @param {any} [vContext] The context of the call. @param {Object} [vArguments] The arguments object.
[ "Calls", "the", "method", "debounced", ".", "Multiple", "calls", "within", "a", "certain", "time", "will", "be", "reduced", "to", "one", "call", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L1328-L1376
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
_invoke
function _invoke(bFinal) { bFinal = bFinal !== false; if (bFinal) { cancel(); } if (mOptions.trailing) { invoke(vContext, vArguments, null, bFinal); } }
javascript
function _invoke(bFinal) { bFinal = bFinal !== false; if (bFinal) { cancel(); } if (mOptions.trailing) { invoke(vContext, vArguments, null, bFinal); } }
[ "function", "_invoke", "(", "bFinal", ")", "{", "bFinal", "=", "bFinal", "!==", "false", ";", "if", "(", "bFinal", ")", "{", "cancel", "(", ")", ";", "}", "if", "(", "mOptions", ".", "trailing", ")", "{", "invoke", "(", "vContext", ",", "vArguments",...
Executes a trailing invocation if it is enabled in the options. @param {boolean} [bFinal=true] Whether this is the final invocation.
[ "Executes", "a", "trailing", "invocation", "if", "it", "is", "enabled", "in", "the", "options", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L1336-L1344
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(oCell) { if (!oCell) { return null; } var $Cell = jQuery(oCell); var oCellInfo = TableUtils.getCellInfo($Cell); if (oCellInfo.isOfType(CELLTYPE.ANY | CELLTYPE.PSEUDO)) { var $InteractiveElements = $Cell.find(INTERACTIVE_ELEMENT_SELECTORS); if ($InteractiveElements.length > 0) { ...
javascript
function(oCell) { if (!oCell) { return null; } var $Cell = jQuery(oCell); var oCellInfo = TableUtils.getCellInfo($Cell); if (oCellInfo.isOfType(CELLTYPE.ANY | CELLTYPE.PSEUDO)) { var $InteractiveElements = $Cell.find(INTERACTIVE_ELEMENT_SELECTORS); if ($InteractiveElements.length > 0) { ...
[ "function", "(", "oCell", ")", "{", "if", "(", "!", "oCell", ")", "{", "return", "null", ";", "}", "var", "$Cell", "=", "jQuery", "(", "oCell", ")", ";", "var", "oCellInfo", "=", "TableUtils", ".", "getCellInfo", "(", "$Cell", ")", ";", "if", "(", ...
Returns all interactive elements in a cell. @param {jQuery | HTMLElement} oCell The cell from which to get the interactive elements. @returns {jQuery | null} Returns <code>null</code>, if the passed cell is not a cell or does not contain any interactive elements.
[ "Returns", "all", "interactive", "elements", "in", "a", "cell", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L1430-L1446
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableUtils.js
function(sCSSSize, bWithUnit) { var iPixelValue; if (typeof sCSSSize !== "string") { return null; } if (sCSSSize.endsWith("px")) { iPixelValue = parseInt(sCSSSize); } else if (sCSSSize.endsWith("em") || sCSSSize.endsWith("rem")) { iPixelValue = Math.ceil(parseFloat(sCSSSize) * TableUtils.ge...
javascript
function(sCSSSize, bWithUnit) { var iPixelValue; if (typeof sCSSSize !== "string") { return null; } if (sCSSSize.endsWith("px")) { iPixelValue = parseInt(sCSSSize); } else if (sCSSSize.endsWith("em") || sCSSSize.endsWith("rem")) { iPixelValue = Math.ceil(parseFloat(sCSSSize) * TableUtils.ge...
[ "function", "(", "sCSSSize", ",", "bWithUnit", ")", "{", "var", "iPixelValue", ";", "if", "(", "typeof", "sCSSSize", "!==", "\"string\"", ")", "{", "return", "null", ";", "}", "if", "(", "sCSSSize", ".", "endsWith", "(", "\"px\"", ")", ")", "{", "iPixe...
Converts the CSS size to pixels and returns it with or without unit. Can also be used to parse a pixel value string to an integer. @param {string} sCSSSize The CSSSize to convert. @param {boolean} [bWithUnit=false] Whether the value should be returned as a string with the unit. @returns {string | int | null} The pixel...
[ "Converts", "the", "CSS", "size", "to", "pixels", "and", "returns", "it", "with", "or", "without", "unit", ".", "Can", "also", "be", "used", "to", "parse", "a", "pixel", "value", "string", "to", "an", "integer", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableUtils.js#L1456-L1476
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js
isValidRoundtrip
function isValidRoundtrip(oRequestTiming) { var bComplete, bEmpty, bCached; // if the request has been completed it has complete timing figures) bComplete = oRequestTiming.startTime > 0 && oRequestTiming.startTime <= oRequestTiming.requestStart && oRequestTiming.requestStart <= oRequestTiming.responseEnd; ...
javascript
function isValidRoundtrip(oRequestTiming) { var bComplete, bEmpty, bCached; // if the request has been completed it has complete timing figures) bComplete = oRequestTiming.startTime > 0 && oRequestTiming.startTime <= oRequestTiming.requestStart && oRequestTiming.requestStart <= oRequestTiming.responseEnd; ...
[ "function", "isValidRoundtrip", "(", "oRequestTiming", ")", "{", "var", "bComplete", ",", "bEmpty", ",", "bCached", ";", "// if the request has been completed it has complete timing figures)", "bComplete", "=", "oRequestTiming", ".", "startTime", ">", "0", "&&", "oRequest...
Valid timings are all timings which are completed, not empty and not responded from browser cache. Note: Currently only Chrome and FF support size related properties (body size and transfer size), hence the requests of others not supporting them are counted as complete (in dubio pro reo), as before. @param {object} o...
[ "Valid", "timings", "are", "all", "timings", "which", "are", "completed", "not", "empty", "and", "not", "responded", "from", "browser", "cache", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js#L70-L87
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js
createOwnerComponentInfo
function createOwnerComponentInfo(oSrcElement) { var sId, sVersion; if (oSrcElement) { var Component, oComponent; Component = sap.ui.require("sap/ui/core/Component"); while (Component && oSrcElement && oSrcElement.getParent) { oComponent = Component.getOwnerComponentFor(oSrcElement); if (oComponent...
javascript
function createOwnerComponentInfo(oSrcElement) { var sId, sVersion; if (oSrcElement) { var Component, oComponent; Component = sap.ui.require("sap/ui/core/Component"); while (Component && oSrcElement && oSrcElement.getParent) { oComponent = Component.getOwnerComponentFor(oSrcElement); if (oComponent...
[ "function", "createOwnerComponentInfo", "(", "oSrcElement", ")", "{", "var", "sId", ",", "sVersion", ";", "if", "(", "oSrcElement", ")", "{", "var", "Component", ",", "oComponent", ";", "Component", "=", "sap", ".", "ui", ".", "require", "(", "\"sap/ui/core/...
component determination - heuristic
[ "component", "determination", "-", "heuristic" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js#L173-L194
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js
handleResponse
function handleResponse() { if (this.readyState === 4 && this.pendingInteraction && !this.pendingInteraction.completed) { // enrich interaction with information var sContentLength = this.getResponseHeader("content-length"), bCompressed = this.getResponseHeader("content-encoding") === "gzip", sFesrec = t...
javascript
function handleResponse() { if (this.readyState === 4 && this.pendingInteraction && !this.pendingInteraction.completed) { // enrich interaction with information var sContentLength = this.getResponseHeader("content-length"), bCompressed = this.getResponseHeader("content-encoding") === "gzip", sFesrec = t...
[ "function", "handleResponse", "(", ")", "{", "if", "(", "this", ".", "readyState", "===", "4", "&&", "this", ".", "pendingInteraction", "&&", "!", "this", ".", "pendingInteraction", ".", "completed", ")", "{", "// enrich interaction with information", "var", "sC...
response handler which uses the custom properties we added to the xhr to retrieve information from the response headers
[ "response", "handler", "which", "uses", "the", "custom", "properties", "we", "added", "to", "the", "xhr", "to", "retrieve", "information", "from", "the", "response", "headers" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js#L234-L260
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js
function(fnFilter) { var aFilteredInteractions = []; if (fnFilter) { for (var i = 0, l = aInteractions.length; i < l; i++) { if (fnFilter(aInteractions[i])) { aFilteredInteractions.push(aInteractions[i]); } } } return aFilteredInteractions; }
javascript
function(fnFilter) { var aFilteredInteractions = []; if (fnFilter) { for (var i = 0, l = aInteractions.length; i < l; i++) { if (fnFilter(aInteractions[i])) { aFilteredInteractions.push(aInteractions[i]); } } } return aFilteredInteractions; }
[ "function", "(", "fnFilter", ")", "{", "var", "aFilteredInteractions", "=", "[", "]", ";", "if", "(", "fnFilter", ")", "{", "for", "(", "var", "i", "=", "0", ",", "l", "=", "aInteractions", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", ...
Gets all interaction measurements for which a provided filter function returns a truthy value. To filter for certain categories of measurements a fnFilter can be implemented like this <code> function(InteractionMeasurement) { return InteractionMeasurement.duration > 0 }</code> @param {function} fnFilter a filter funct...
[ "Gets", "all", "interaction", "measurements", "for", "which", "a", "provided", "filter", "function", "returns", "a", "truthy", "value", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js#L313-L323
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js
function(sType, oSrcElement) { var iTime = now(); if (oPendingInteraction) { finalizeInteraction(iTime); } // clear request timings for new interaction if (window.performance.clearResourceTimings) { window.performance.clearResourceTimings(); } var oComponentInfo = createOwnerComponentInf...
javascript
function(sType, oSrcElement) { var iTime = now(); if (oPendingInteraction) { finalizeInteraction(iTime); } // clear request timings for new interaction if (window.performance.clearResourceTimings) { window.performance.clearResourceTimings(); } var oComponentInfo = createOwnerComponentInf...
[ "function", "(", "sType", ",", "oSrcElement", ")", "{", "var", "iTime", "=", "now", "(", ")", ";", "if", "(", "oPendingInteraction", ")", "{", "finalizeInteraction", "(", "iTime", ")", ";", "}", "// clear request timings for new interaction", "if", "(", "windo...
Start an interaction measurements. @param {string} sType type of the event which triggered the interaction @param {object} oSrcElement the control on which the interaction was triggered @static @private
[ "Start", "an", "interaction", "measurements", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js#L352-L376
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js
function(bForce) { if (oPendingInteraction) { // set provisionary processing time from start to end and calculate later if (!bForce) { oPendingInteraction.processing = now() - oPendingInteraction.start; } else { finalizeInteraction(now()); } } }
javascript
function(bForce) { if (oPendingInteraction) { // set provisionary processing time from start to end and calculate later if (!bForce) { oPendingInteraction.processing = now() - oPendingInteraction.start; } else { finalizeInteraction(now()); } } }
[ "function", "(", "bForce", ")", "{", "if", "(", "oPendingInteraction", ")", "{", "// set provisionary processing time from start to end and calculate later", "if", "(", "!", "bForce", ")", "{", "oPendingInteraction", ".", "processing", "=", "now", "(", ")", "-", "oP...
End an interaction measurements. @param {boolean} bForce forces end of interaction now and ignores further re-renderings @static @private
[ "End", "an", "interaction", "measurements", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js#L385-L394
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js
function(oEvent) { if (bInteractionActive) { // notify for a newly started interaction, but not more often than every 250ms. if (!iScrollEventDelayId) { Interaction.notifyEventStart(oEvent); } else { clearTimeout(iScrollEventDelayId); } iScrollEventDelayId = setTimeout(function(){ ...
javascript
function(oEvent) { if (bInteractionActive) { // notify for a newly started interaction, but not more often than every 250ms. if (!iScrollEventDelayId) { Interaction.notifyEventStart(oEvent); } else { clearTimeout(iScrollEventDelayId); } iScrollEventDelayId = setTimeout(function(){ ...
[ "function", "(", "oEvent", ")", "{", "if", "(", "bInteractionActive", ")", "{", "// notify for a newly started interaction, but not more often than every 250ms.", "if", "(", "!", "iScrollEventDelayId", ")", "{", "Interaction", ".", "notifyEventStart", "(", "oEvent", ")", ...
This method notifies if a scroll event has been triggered. Some controls require this special treatment, as the generic detection process via notifyEventStart is not sufficient. @param {Event} oEvent Scroll event whose processing has started @static @private
[ "This", "method", "notifies", "if", "a", "scroll", "event", "has", "been", "triggered", ".", "Some", "controls", "require", "this", "special", "treatment", "as", "the", "generic", "detection", "process", "via", "notifyEventStart", "is", "not", "sufficient", "." ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/Interaction.js#L493-L506
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/util/MockServer.js
function(data, select, currentPath) { var result = {}; // traversed path to get to data: currentPath = currentPath || ''; if (typeof data !== 'object') { return data; } if (typeof data.slice === 'function') { return data.map(function(el, index) { return fnMultiS...
javascript
function(data, select, currentPath) { var result = {}; // traversed path to get to data: currentPath = currentPath || ''; if (typeof data !== 'object') { return data; } if (typeof data.slice === 'function') { return data.map(function(el, index) { return fnMultiS...
[ "function", "(", "data", ",", "select", ",", "currentPath", ")", "{", "var", "result", "=", "{", "}", ";", "// traversed path to get to data:", "currentPath", "=", "currentPath", "||", "''", ";", "if", "(", "typeof", "data", "!==", "'object'", ")", "{", "r...
Add Support for multiple select return 1...n
[ "Add", "Support", "for", "multiple", "select", "return", "1", "...", "n" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/MockServer.js#L976-L1010
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/util/MockServer.js
function(sRole, aAssociation, aAssociationSet, bFrom) { var sEntitySet = jQuery(aAssociationSet).find("End[Role='" + sRole + "']").attr("EntitySet"); var sMultiplicity = jQuery(aAssociation).find("End[Role='" + sRole + "']").attr("Multiplicity"); var aPropRef = []; var aConstraint = jQuery(aAssocia...
javascript
function(sRole, aAssociation, aAssociationSet, bFrom) { var sEntitySet = jQuery(aAssociationSet).find("End[Role='" + sRole + "']").attr("EntitySet"); var sMultiplicity = jQuery(aAssociation).find("End[Role='" + sRole + "']").attr("Multiplicity"); var aPropRef = []; var aConstraint = jQuery(aAssocia...
[ "function", "(", "sRole", ",", "aAssociation", ",", "aAssociationSet", ",", "bFrom", ")", "{", "var", "sEntitySet", "=", "jQuery", "(", "aAssociationSet", ")", ".", "find", "(", "\"End[Role='\"", "+", "sRole", "+", "\"']\"", ")", ".", "attr", "(", "\"Entit...
helper function to find the entity set and property reference for the given role name
[ "helper", "function", "to", "find", "the", "entity", "set", "and", "property", "reference", "for", "the", "given", "role", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/MockServer.js#L1197-L1225
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/util/MockServer.js
function(sEntitySetName, sKeys) { sKeys = decodeURIComponent(sKeys); var oFoundEntry; var oEntitySet = that._mEntitySets[sEntitySetName]; var aKeys = oEntitySet.keys; // split keys var aRequestedKeys = sKeys.split(','); // check number of keys to be equal to the entity keys and valid...
javascript
function(sEntitySetName, sKeys) { sKeys = decodeURIComponent(sKeys); var oFoundEntry; var oEntitySet = that._mEntitySets[sEntitySetName]; var aKeys = oEntitySet.keys; // split keys var aRequestedKeys = sKeys.split(','); // check number of keys to be equal to the entity keys and valid...
[ "function", "(", "sEntitySetName", ",", "sKeys", ")", "{", "sKeys", "=", "decodeURIComponent", "(", "sKeys", ")", ";", "var", "oFoundEntry", ";", "var", "oEntitySet", "=", "that", ".", "_mEntitySets", "[", "sEntitySetName", "]", ";", "var", "aKeys", "=", "...
helper to find the entity set entry for a given entity set name and the keys of the entry
[ "helper", "to", "find", "the", "entity", "set", "entry", "for", "a", "given", "entity", "set", "name", "and", "the", "keys", "of", "the", "entry" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/MockServer.js#L1985-L2063
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/util/MockServer.js
function(aUrlParams) { var aUrlParamsNormalized = []; var fnStartsWith = function(sValue) { var apostLocation = sValue.indexOf("'"); var doubleQuotesLocation = sValue.indexOf("\""); if (apostLocation === -1 && doubleQuotesLocation === -1) { return null; } else { if (apo...
javascript
function(aUrlParams) { var aUrlParamsNormalized = []; var fnStartsWith = function(sValue) { var apostLocation = sValue.indexOf("'"); var doubleQuotesLocation = sValue.indexOf("\""); if (apostLocation === -1 && doubleQuotesLocation === -1) { return null; } else { if (apo...
[ "function", "(", "aUrlParams", ")", "{", "var", "aUrlParamsNormalized", "=", "[", "]", ";", "var", "fnStartsWith", "=", "function", "(", "sValue", ")", "{", "var", "apostLocation", "=", "sValue", ".", "indexOf", "(", "\"'\"", ")", ";", "var", "doubleQuotes...
helper to handle url param value with '&'
[ "helper", "to", "handle", "url", "param", "value", "with", "&" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/MockServer.js#L2083-L2150
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_showDayPicker
function _showDayPicker(){ if (this._iMode == 3) { _hideYearPicker.call(this, true); }else if (this._iMode == 2) { _hideMonthPicker.call(this, true); } var oDate = this._getFocusedDate(); var iItems = this._getItems(); var oDatesRow = this.getAggregation("datesRow"); var oDateRange = oDatesRow.get...
javascript
function _showDayPicker(){ if (this._iMode == 3) { _hideYearPicker.call(this, true); }else if (this._iMode == 2) { _hideMonthPicker.call(this, true); } var oDate = this._getFocusedDate(); var iItems = this._getItems(); var oDatesRow = this.getAggregation("datesRow"); var oDateRange = oDatesRow.get...
[ "function", "_showDayPicker", "(", ")", "{", "if", "(", "this", ".", "_iMode", "==", "3", ")", "{", "_hideYearPicker", ".", "call", "(", "this", ",", "true", ")", ";", "}", "else", "if", "(", "this", ".", "_iMode", "==", "2", ")", "{", "_hideMonthP...
Shows an embedded day Picker. This function assumes there is a "datesRow" aggregation. So callers must take care. @return {void} @private
[ "Shows", "an", "embedded", "day", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "datesRow", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1367-L1419
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_hideDayPicker
function _hideDayPicker(bSkipFocus){ this._iMode = 0; var oDatesRow = this.getAggregation("datesRow"); oDatesRow.$().css("display", "none"); this._hideOverlay(); if (!bSkipFocus) { _renderTimesRow.call(this); // to focus date // restore tabindex because if date not changed in _renderTimesRow only t...
javascript
function _hideDayPicker(bSkipFocus){ this._iMode = 0; var oDatesRow = this.getAggregation("datesRow"); oDatesRow.$().css("display", "none"); this._hideOverlay(); if (!bSkipFocus) { _renderTimesRow.call(this); // to focus date // restore tabindex because if date not changed in _renderTimesRow only t...
[ "function", "_hideDayPicker", "(", "bSkipFocus", ")", "{", "this", ".", "_iMode", "=", "0", ";", "var", "oDatesRow", "=", "this", ".", "getAggregation", "(", "\"datesRow\"", ")", ";", "oDatesRow", ".", "$", "(", ")", ".", "css", "(", "\"display\"", ",", ...
Hides an embedded day Picker. This function assumes there is a "datesRow" aggregation. So callers must take care. @return {void} @private
[ "Hides", "an", "embedded", "day", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "datesRow", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1428-L1445
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_showMonthPicker
function _showMonthPicker(){ if (this._iMode == 1) { _hideDayPicker.call(this, true); }else if (this._iMode == 3) { _hideYearPicker.call(this, true); } var oDate = this._getFocusedDate(); var oMonthPicker = this.getAggregation("monthPicker"); if (oMonthPicker.getDomRef()) { // already rendered ...
javascript
function _showMonthPicker(){ if (this._iMode == 1) { _hideDayPicker.call(this, true); }else if (this._iMode == 3) { _hideYearPicker.call(this, true); } var oDate = this._getFocusedDate(); var oMonthPicker = this.getAggregation("monthPicker"); if (oMonthPicker.getDomRef()) { // already rendered ...
[ "function", "_showMonthPicker", "(", ")", "{", "if", "(", "this", ".", "_iMode", "==", "1", ")", "{", "_hideDayPicker", ".", "call", "(", "this", ",", "true", ")", ";", "}", "else", "if", "(", "this", ".", "_iMode", "==", "3", ")", "{", "_hideYearP...
Shows an embedded month Picker. This function assumes there is a "monthPicker" aggregation. So callers must take care. @return {void} @private
[ "Shows", "an", "embedded", "month", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "monthPicker", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1454-L1492
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_hideMonthPicker
function _hideMonthPicker(bSkipFocus){ this._iMode = 0; var oMonthPicker = this.getAggregation("monthPicker"); oMonthPicker.$().css("display", "none"); this._hideOverlay(); if (!bSkipFocus) { _renderTimesRow.call(this); // to focus date // restore tabindex because if date not changed in _renderTime...
javascript
function _hideMonthPicker(bSkipFocus){ this._iMode = 0; var oMonthPicker = this.getAggregation("monthPicker"); oMonthPicker.$().css("display", "none"); this._hideOverlay(); if (!bSkipFocus) { _renderTimesRow.call(this); // to focus date // restore tabindex because if date not changed in _renderTime...
[ "function", "_hideMonthPicker", "(", "bSkipFocus", ")", "{", "this", ".", "_iMode", "=", "0", ";", "var", "oMonthPicker", "=", "this", ".", "getAggregation", "(", "\"monthPicker\"", ")", ";", "oMonthPicker", ".", "$", "(", ")", ".", "css", "(", "\"display\...
Hides an embedded month Picker. This function assumes there is a "monthPicker" aggregation. So callers must take care. @return {void} @private
[ "Hides", "an", "embedded", "month", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "monthPicker", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1501-L1518
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_hideYearPicker
function _hideYearPicker(bSkipFocus){ this._iMode = 0; var oYearPicker = this.getAggregation("yearPicker"); oYearPicker.$().css("display", "none"); this._hideOverlay(); if (!bSkipFocus) { _renderTimesRow.call(this); // to focus date // restore tabindex because if date not changed in _renderTimesRow...
javascript
function _hideYearPicker(bSkipFocus){ this._iMode = 0; var oYearPicker = this.getAggregation("yearPicker"); oYearPicker.$().css("display", "none"); this._hideOverlay(); if (!bSkipFocus) { _renderTimesRow.call(this); // to focus date // restore tabindex because if date not changed in _renderTimesRow...
[ "function", "_hideYearPicker", "(", "bSkipFocus", ")", "{", "this", ".", "_iMode", "=", "0", ";", "var", "oYearPicker", "=", "this", ".", "getAggregation", "(", "\"yearPicker\"", ")", ";", "oYearPicker", ".", "$", "(", ")", ".", "css", "(", "\"display\"", ...
Hides an embedded year Picker. This function assumes there is a "yearPicker" aggregation. So callers must take care. @return {void} @private
[ "Hides", "an", "embedded", "year", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "yearPicker", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1573-L1590
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_handleDateFocus
function _handleDateFocus(oEvent){ var oFocusedDate = new UniversalDate(this._getFocusedDate().getTime()); var oDate = CalendarUtils._createUniversalUTCDate(oEvent.getParameter("date"), undefined, true); var bNotVisible = oEvent.getParameter("otherMonth"); if (bNotVisible && oDate.getUTCMonth() == oFocuse...
javascript
function _handleDateFocus(oEvent){ var oFocusedDate = new UniversalDate(this._getFocusedDate().getTime()); var oDate = CalendarUtils._createUniversalUTCDate(oEvent.getParameter("date"), undefined, true); var bNotVisible = oEvent.getParameter("otherMonth"); if (bNotVisible && oDate.getUTCMonth() == oFocuse...
[ "function", "_handleDateFocus", "(", "oEvent", ")", "{", "var", "oFocusedDate", "=", "new", "UniversalDate", "(", "this", ".", "_getFocusedDate", "(", ")", ".", "getTime", "(", ")", ")", ";", "var", "oDate", "=", "CalendarUtils", ".", "_createUniversalUTCDate"...
Handles day focus from the embedded day Picker. This function assumes there is a "datesRow" aggregation. So callers must take care. @return {void} @private
[ "Handles", "day", "focus", "from", "the", "embedded", "day", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "datesRow", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1904-L1918
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_handleSelectMonth
function _handleSelectMonth(oEvent){ var oFocusedDate = new UniversalDate(this._getFocusedDate().getTime()); var oMonthPicker = this.getAggregation("monthPicker"); var iMonth = oMonthPicker.getMonth(); oFocusedDate.setUTCMonth(iMonth); if (iMonth != oFocusedDate.getUTCMonth() ) { // day did not exist in...
javascript
function _handleSelectMonth(oEvent){ var oFocusedDate = new UniversalDate(this._getFocusedDate().getTime()); var oMonthPicker = this.getAggregation("monthPicker"); var iMonth = oMonthPicker.getMonth(); oFocusedDate.setUTCMonth(iMonth); if (iMonth != oFocusedDate.getUTCMonth() ) { // day did not exist in...
[ "function", "_handleSelectMonth", "(", "oEvent", ")", "{", "var", "oFocusedDate", "=", "new", "UniversalDate", "(", "this", ".", "_getFocusedDate", "(", ")", ".", "getTime", "(", ")", ")", ";", "var", "oMonthPicker", "=", "this", ".", "getAggregation", "(", ...
Handles user selection of a month from the Month Picker. This function assumes there is a "monthPicker" aggregation. So callers must take care. @return {void} @private
[ "Handles", "user", "selection", "of", "a", "month", "from", "the", "Month", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "monthPicker", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1927-L1944
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_handleSelectYear
function _handleSelectYear(oEvent){ var oFocusedDate = new UniversalDate(this._getFocusedDate().getTime()); var oYearPicker = this.getAggregation("yearPicker"); var oDate = CalendarUtils._createUniversalUTCDate(oYearPicker.getDate()); var iMonth = oFocusedDate.getUTCMonth(); oDate.setUTCMonth(oFocusedDate.g...
javascript
function _handleSelectYear(oEvent){ var oFocusedDate = new UniversalDate(this._getFocusedDate().getTime()); var oYearPicker = this.getAggregation("yearPicker"); var oDate = CalendarUtils._createUniversalUTCDate(oYearPicker.getDate()); var iMonth = oFocusedDate.getUTCMonth(); oDate.setUTCMonth(oFocusedDate.g...
[ "function", "_handleSelectYear", "(", "oEvent", ")", "{", "var", "oFocusedDate", "=", "new", "UniversalDate", "(", "this", ".", "_getFocusedDate", "(", ")", ".", "getTime", "(", ")", ")", ";", "var", "oYearPicker", "=", "this", ".", "getAggregation", "(", ...
Handles the user year selection. This function assumes there is a "yearPicker" aggregation. So callers must take care. @return {void} @private
[ "Handles", "the", "user", "year", "selection", ".", "This", "function", "assumes", "there", "is", "a", "yearPicker", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L1953-L1974
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
_setDateInDatesRow
function _setDateInDatesRow(oDate) { var oDatesRow = this.getAggregation("datesRow"); var oHeader = this.getAggregation("header"); if (!this.getPickerPopup()) { // set number of days - but max number of days of this month var oLastDayOfMonth = new UniversalDate(oDate.getTime()); oLastDayOfMonth.setUTCD...
javascript
function _setDateInDatesRow(oDate) { var oDatesRow = this.getAggregation("datesRow"); var oHeader = this.getAggregation("header"); if (!this.getPickerPopup()) { // set number of days - but max number of days of this month var oLastDayOfMonth = new UniversalDate(oDate.getTime()); oLastDayOfMonth.setUTCD...
[ "function", "_setDateInDatesRow", "(", "oDate", ")", "{", "var", "oDatesRow", "=", "this", ".", "getAggregation", "(", "\"datesRow\"", ")", ";", "var", "oHeader", "=", "this", ".", "getAggregation", "(", "\"header\"", ")", ";", "if", "(", "!", "this", ".",...
Sets date in the embedded day Picker. This function assumes there is a "datesRow" aggregation. So callers must take care. @param oDate @return {void} @private
[ "Sets", "date", "in", "the", "embedded", "day", "Picker", ".", "This", "function", "assumes", "there", "is", "a", "datesRow", "aggregation", ".", "So", "callers", "must", "take", "care", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js#L2012-L2061
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/format/DateFormat.js
function(oField, oDate, bUTC, oFormat) { var iDay = bUTC ? oDate.getUTCDay() : oDate.getDay(); if (oField.digits < 4) { return oFormat.aDaysAbbrev[iDay]; } else if (oField.digits == 4) { return oFormat.aDaysWide[iDay]; } else if (oField.digits == 5) { return oFormat.aDaysNarrow[iDay]; ...
javascript
function(oField, oDate, bUTC, oFormat) { var iDay = bUTC ? oDate.getUTCDay() : oDate.getDay(); if (oField.digits < 4) { return oFormat.aDaysAbbrev[iDay]; } else if (oField.digits == 4) { return oFormat.aDaysWide[iDay]; } else if (oField.digits == 5) { return oFormat.aDaysNarrow[iDay]; ...
[ "function", "(", "oField", ",", "oDate", ",", "bUTC", ",", "oFormat", ")", "{", "var", "iDay", "=", "bUTC", "?", "oDate", ".", "getUTCDay", "(", ")", ":", "oDate", ".", "getDay", "(", ")", ";", "if", "(", "oField", ".", "digits", "<", "4", ")", ...
Day of week name, format style.
[ "Day", "of", "week", "name", "format", "style", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/format/DateFormat.js#L996-L1007
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/format/DateFormat.js
mergeWithoutOverwrite
function mergeWithoutOverwrite(object1, object2) { if (object1 === object2) { return object1; } var oMergedObject = {}; // Clone object1 Object.keys(object1).forEach(function(sKey) { oMergedObject[sKey] = object1[sKey]; }); // merge Object.keys(object2).forEach(function(sKey) { if (!oMergedO...
javascript
function mergeWithoutOverwrite(object1, object2) { if (object1 === object2) { return object1; } var oMergedObject = {}; // Clone object1 Object.keys(object1).forEach(function(sKey) { oMergedObject[sKey] = object1[sKey]; }); // merge Object.keys(object2).forEach(function(sKey) { if (!oMergedO...
[ "function", "mergeWithoutOverwrite", "(", "object1", ",", "object2", ")", "{", "if", "(", "object1", "===", "object2", ")", "{", "return", "object1", ";", "}", "var", "oMergedObject", "=", "{", "}", ";", "// Clone object1", "Object", ".", "keys", "(", "obj...
Copy the properties of object2 into object1 without overwriting the existing properties in object1
[ "Copy", "the", "properties", "of", "object2", "into", "object1", "without", "overwriting", "the", "existing", "properties", "in", "object1" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/format/DateFormat.js#L1794-L1814
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js
function(oControl) { var oAppComponent = Utils.getAppComponentForControl(oControl); var oFlexController = FlexControllerFactory.createForControl(oAppComponent); var oRootControl = oAppComponent.getRootControl(); var oView = Utils.getViewForControl(oControl); var oVariantModel = oAppComponent.getModel("$F...
javascript
function(oControl) { var oAppComponent = Utils.getAppComponentForControl(oControl); var oFlexController = FlexControllerFactory.createForControl(oAppComponent); var oRootControl = oAppComponent.getRootControl(); var oView = Utils.getViewForControl(oControl); var oVariantModel = oAppComponent.getModel("$F...
[ "function", "(", "oControl", ")", "{", "var", "oAppComponent", "=", "Utils", ".", "getAppComponentForControl", "(", "oControl", ")", ";", "var", "oFlexController", "=", "FlexControllerFactory", ".", "createForControl", "(", "oAppComponent", ")", ";", "var", "oRoot...
Returns a map of parameters used in public functions. @param {sap.ui.core.Element} oControl - The control for which a variant management control has to be evaluated @returns {object} Returns a map with needed parameters @private
[ "Returns", "a", "map", "of", "parameters", "used", "in", "public", "functions", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js#L66-L94
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js
function(oControl, mParams) { mParams = mParams || this._determineParameters(oControl); var fnCheckForControl = function (oControl) { if (!mParams.variantManagement[oControl.getId()] && oControl.getParent() && oControl.getId() !== mParams.rootControl.getId()) { return fnCheckForControl(oControl.getParent...
javascript
function(oControl, mParams) { mParams = mParams || this._determineParameters(oControl); var fnCheckForControl = function (oControl) { if (!mParams.variantManagement[oControl.getId()] && oControl.getParent() && oControl.getId() !== mParams.rootControl.getId()) { return fnCheckForControl(oControl.getParent...
[ "function", "(", "oControl", ",", "mParams", ")", "{", "mParams", "=", "mParams", "||", "this", ".", "_determineParameters", "(", "oControl", ")", ";", "var", "fnCheckForControl", "=", "function", "(", "oControl", ")", "{", "if", "(", "!", "mParams", ".", ...
Returns the local ID of the encompassing variant management control. @param {sap.ui.core.Element} oControl - The control for which a variant management control has to be evaluated @returns {object} Returns a map with needed parameters @private
[ "Returns", "the", "local", "ID", "of", "the", "encompassing", "variant", "management", "control", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js#L103-L116
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js
function(aControls, aChangeTypes) { if (!aControls || aControls.length === 0) { return this._reject("At least one control ID has to be provided as a parameter"); } var oAppComponent = aControls[0].appComponent || Utils.getAppComponentForControl(aControls[0]); if (!oAppComponent) { return this._rej...
javascript
function(aControls, aChangeTypes) { if (!aControls || aControls.length === 0) { return this._reject("At least one control ID has to be provided as a parameter"); } var oAppComponent = aControls[0].appComponent || Utils.getAppComponentForControl(aControls[0]); if (!oAppComponent) { return this._rej...
[ "function", "(", "aControls", ",", "aChangeTypes", ")", "{", "if", "(", "!", "aControls", "||", "aControls", ".", "length", "===", "0", ")", "{", "return", "this", ".", "_reject", "(", "\"At least one control ID has to be provided as a parameter\"", ")", ";", "}...
Checks if personalization changes exists for control. @param {sap.ui.core.Element[] | map[]} aControls - an array of instances of controls, a map with control IDs including a app component or a mixture for which personalization exists @param {array} [aChangeTypes] - Types of changes that have existing personalization....
[ "Checks", "if", "personalization", "changes", "exists", "for", "control", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js#L316-L339
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js
function(oControl) { try { return !!this._getVariantManagement(oControl); } catch (oError) { Utils.log.error(oError.message); return false; } }
javascript
function(oControl) { try { return !!this._getVariantManagement(oControl); } catch (oError) { Utils.log.error(oError.message); return false; } }
[ "function", "(", "oControl", ")", "{", "try", "{", "return", "!", "!", "this", ".", "_getVariantManagement", "(", "oControl", ")", ";", "}", "catch", "(", "oError", ")", "{", "Utils", ".", "log", ".", "error", "(", "oError", ".", "message", ")", ";",...
Determines the availability of an encompassing variant management control. @param {sap.ui.core.Element} oControl - The control which should be tested for an encompassing variant management control @returns {boolean} Returns true if a variant management control is encompassing the given control, else false @method sa...
[ "Determines", "the", "availability", "of", "an", "encompassing", "variant", "management", "control", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js#L433-L440
train
SAP/openui5
src/sap.m/src/sap/m/MaskInputRule.js
validateRegex
function validateRegex(sRegex) { if (/.+/i.test(sRegex)) { return true; } Log.error("The regex value '" + sRegex + "' is not valid"); return false; }
javascript
function validateRegex(sRegex) { if (/.+/i.test(sRegex)) { return true; } Log.error("The regex value '" + sRegex + "' is not valid"); return false; }
[ "function", "validateRegex", "(", "sRegex", ")", "{", "if", "(", "/", ".+", "/", "i", ".", "test", "(", "sRegex", ")", ")", "{", "return", "true", ";", "}", "Log", ".", "error", "(", "\"The regex value '\"", "+", "sRegex", "+", "\"' is not valid\"", ")...
Checks if the specified regular expression is valid. @param {String} sRegex The regular expression string to be validated @returns {boolean} True of the specified regular expression string is valid, false otherwise @private
[ "Checks", "if", "the", "specified", "regular", "expression", "is", "valid", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/MaskInputRule.js#L108-L114
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oAtt, aResult){ if (!oAtt.getSelected()) { return; } aResult.push(oAtt); var aValues = oAtt.getAttributesInternal(); for (var idx = 0; idx < aValues.length; idx++) { _computeSelectedAttributes(aValues[idx], aResult); } }
javascript
function(oAtt, aResult){ if (!oAtt.getSelected()) { return; } aResult.push(oAtt); var aValues = oAtt.getAttributesInternal(); for (var idx = 0; idx < aValues.length; idx++) { _computeSelectedAttributes(aValues[idx], aResult); } }
[ "function", "(", "oAtt", ",", "aResult", ")", "{", "if", "(", "!", "oAtt", ".", "getSelected", "(", ")", ")", "{", "return", ";", "}", "aResult", ".", "push", "(", "oAtt", ")", ";", "var", "aValues", "=", "oAtt", ".", "getAttributesInternal", "(", ...
Computes recursivly all selected attributes and adds them to the given result list
[ "Computes", "recursivly", "all", "selected", "attributes", "and", "adds", "them", "to", "the", "given", "result", "list" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L861-L870
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList, bArrow){ function getNextOnSameLevel(oLst){ var oParent = oLst.getParent(); var aParentSubLists = oParent.getSubLists(); var idx = oParent.indexOfSubList(oLst) + 1; if (idx < aParentSubLists.length) { return aParentSubLists[idx]; } return null; } function getFirstChild(oLst)...
javascript
function(oList, bArrow){ function getNextOnSameLevel(oLst){ var oParent = oLst.getParent(); var aParentSubLists = oParent.getSubLists(); var idx = oParent.indexOfSubList(oLst) + 1; if (idx < aParentSubLists.length) { return aParentSubLists[idx]; } return null; } function getFirstChild(oLst)...
[ "function", "(", "oList", ",", "bArrow", ")", "{", "function", "getNextOnSameLevel", "(", "oLst", ")", "{", "var", "oParent", "=", "oLst", ".", "getParent", "(", ")", ";", "var", "aParentSubLists", "=", "oParent", ".", "getSubLists", "(", ")", ";", "var"...
Returns the successor of the given list based on the level and whether TAB or the arrow keys are used
[ "Returns", "the", "successor", "of", "the", "given", "list", "based", "on", "the", "level", "and", "whether", "TAB", "or", "the", "arrow", "keys", "are", "used" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L960-L1005
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList, oAttr){ if (oList._getAtt().getListOrder() != ExactOrder.Fixed /*Select*/) { return -1; } var aAttributes = oList._getAtt().getAttributes(); var idx = 0; for (var i = 0; i < aAttributes.length; i++) { if (aAttributes[i] === oAttr) { break; } if (aAttributes[i].getChangeListene...
javascript
function(oList, oAttr){ if (oList._getAtt().getListOrder() != ExactOrder.Fixed /*Select*/) { return -1; } var aAttributes = oList._getAtt().getAttributes(); var idx = 0; for (var i = 0; i < aAttributes.length; i++) { if (aAttributes[i] === oAttr) { break; } if (aAttributes[i].getChangeListene...
[ "function", "(", "oList", ",", "oAttr", ")", "{", "if", "(", "oList", ".", "_getAtt", "(", ")", ".", "getListOrder", "(", ")", "!=", "ExactOrder", ".", "Fixed", "/*Select*/", ")", "{", "return", "-", "1", ";", "}", "var", "aAttributes", "=", "oList",...
Returns the index in the sublists of the given list for a new list of the given attribute
[ "Returns", "the", "index", "in", "the", "sublists", "of", "the", "given", "list", "for", "a", "new", "list", "of", "the", "given", "attribute" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1024-L1040
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(jRef, bWidth, iValue, fDoBefore, fDoAfter){ if (fDoBefore) { var iVal = fDoBefore(jRef); if (iVal != undefined) { iValue = iVal; } } var _fDoAfter = fDoAfter ? function(){fDoAfter(jRef);} : function(){}; if (jQuery.fx.off) { if (bWidth) { jRef.width(iValue); } else { jRef.hei...
javascript
function(jRef, bWidth, iValue, fDoBefore, fDoAfter){ if (fDoBefore) { var iVal = fDoBefore(jRef); if (iVal != undefined) { iValue = iVal; } } var _fDoAfter = fDoAfter ? function(){fDoAfter(jRef);} : function(){}; if (jQuery.fx.off) { if (bWidth) { jRef.width(iValue); } else { jRef.hei...
[ "function", "(", "jRef", ",", "bWidth", ",", "iValue", ",", "fDoBefore", ",", "fDoAfter", ")", "{", "if", "(", "fDoBefore", ")", "{", "var", "iVal", "=", "fDoBefore", "(", "jRef", ")", ";", "if", "(", "iVal", "!=", "undefined", ")", "{", "iValue", ...
Animates the width or height of the given jRef to the given target value Optional callbacks are possible which are called before and after the animation
[ "Animates", "the", "width", "or", "height", "of", "the", "given", "jRef", "to", "the", "given", "target", "value", "Optional", "callbacks", "are", "possible", "which", "are", "called", "before", "and", "after", "the", "animation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1138-L1157
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oEvent){ var iCurrentX = oEvent.pageX; var iDiff = this._bRTL ? (this._iStartDragX - iCurrentX) : (iCurrentX - this._iStartDragX); setWidth(this, this._iStartWidth + iDiff); }
javascript
function(oEvent){ var iCurrentX = oEvent.pageX; var iDiff = this._bRTL ? (this._iStartDragX - iCurrentX) : (iCurrentX - this._iStartDragX); setWidth(this, this._iStartWidth + iDiff); }
[ "function", "(", "oEvent", ")", "{", "var", "iCurrentX", "=", "oEvent", ".", "pageX", ";", "var", "iDiff", "=", "this", ".", "_bRTL", "?", "(", "this", ".", "_iStartDragX", "-", "iCurrentX", ")", ":", "(", "iCurrentX", "-", "this", ".", "_iStartDragX",...
Handles the MouseMove event during resizing @see sap.ui.ux3.ExactList.prototype.onmousedown
[ "Handles", "the", "MouseMove", "event", "during", "resizing" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1171-L1175
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oEvent){ jQuery(document.body).unbind("selectstart." + this.getId()).unbind("mouseup." + this.getId()).unbind("mousemove." + this.getId()); this.$("ghost").remove(); this.$("rsz").removeClass("sapUiUx3ExactLstRSzDrag"); this._iStartWidth = undefined; this._iStartDragX = undefined; this.focus(); }
javascript
function(oEvent){ jQuery(document.body).unbind("selectstart." + this.getId()).unbind("mouseup." + this.getId()).unbind("mousemove." + this.getId()); this.$("ghost").remove(); this.$("rsz").removeClass("sapUiUx3ExactLstRSzDrag"); this._iStartWidth = undefined; this._iStartDragX = undefined; this.focus(); }
[ "function", "(", "oEvent", ")", "{", "jQuery", "(", "document", ".", "body", ")", ".", "unbind", "(", "\"selectstart.\"", "+", "this", ".", "getId", "(", ")", ")", ".", "unbind", "(", "\"mouseup.\"", "+", "this", ".", "getId", "(", ")", ")", ".", "...
Handles the MouseUp event during resizing @see sap.ui.ux3.ExactList.prototype.onmousedown
[ "Handles", "the", "MouseUp", "event", "during", "resizing" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1180-L1187
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList, iWidth){ iWidth = ExactAttribute._checkWidth(iWidth); var sPos = oList._bRTL ? "right" : "left"; oList._iCurrentWidth = iWidth; oList._getAtt()._setWidth(oList._iCurrentWidth); oList.$("lst").css("width", iWidth + "px"); oList.$("rsz").css(sPos, (iWidth - 4) + "px"); if (oList._isTop()) { ...
javascript
function(oList, iWidth){ iWidth = ExactAttribute._checkWidth(iWidth); var sPos = oList._bRTL ? "right" : "left"; oList._iCurrentWidth = iWidth; oList._getAtt()._setWidth(oList._iCurrentWidth); oList.$("lst").css("width", iWidth + "px"); oList.$("rsz").css(sPos, (iWidth - 4) + "px"); if (oList._isTop()) { ...
[ "function", "(", "oList", ",", "iWidth", ")", "{", "iWidth", "=", "ExactAttribute", ".", "_checkWidth", "(", "iWidth", ")", ";", "var", "sPos", "=", "oList", ".", "_bRTL", "?", "\"right\"", ":", "\"left\"", ";", "oList", ".", "_iCurrentWidth", "=", "iWid...
Sets the width of the list to the given width (maybe the width is adapted to the allowed range (@see checkWidth))
[ "Sets", "the", "width", "of", "the", "list", "to", "the", "given", "width", "(", "maybe", "the", "width", "is", "adapted", "to", "the", "allowed", "range", "(" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1191-L1209
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList){ var oAtt = oList._getAtt(); if (oAtt && !oList._isTop()) { oList.$("head-txt").html(encodeXML(oAtt.getText()) + "<span class=\"sapUiUx3ExactLstHeadInfo\">&nbsp;(" + oList._lb.getSelectedIndices().length + "/" + oList._lb.getItems().length + ")</span>"); } }
javascript
function(oList){ var oAtt = oList._getAtt(); if (oAtt && !oList._isTop()) { oList.$("head-txt").html(encodeXML(oAtt.getText()) + "<span class=\"sapUiUx3ExactLstHeadInfo\">&nbsp;(" + oList._lb.getSelectedIndices().length + "/" + oList._lb.getItems().length + ")</span>"); } }
[ "function", "(", "oList", ")", "{", "var", "oAtt", "=", "oList", ".", "_getAtt", "(", ")", ";", "if", "(", "oAtt", "&&", "!", "oList", ".", "_isTop", "(", ")", ")", "{", "oList", ".", "$", "(", "\"head-txt\"", ")", ".", "html", "(", "encodeXML", ...
Refresh the header text of the list
[ "Refresh", "the", "header", "text", "of", "the", "list" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1213-L1219
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList, iLevel){ oList._iLevel = iLevel; var aLists = oList.getSubLists(); for (var i = 0; i < aLists.length; i++) { setLevel(aLists[i], iLevel + 1); } }
javascript
function(oList, iLevel){ oList._iLevel = iLevel; var aLists = oList.getSubLists(); for (var i = 0; i < aLists.length; i++) { setLevel(aLists[i], iLevel + 1); } }
[ "function", "(", "oList", ",", "iLevel", ")", "{", "oList", ".", "_iLevel", "=", "iLevel", ";", "var", "aLists", "=", "oList", ".", "getSubLists", "(", ")", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "aLists", ".", "length", ";", "i", ...
Sets the level of the list and its sublists
[ "Sets", "the", "level", "of", "the", "list", "and", "its", "sublists" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1223-L1229
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList){ if (oList._lb) { var jListRef = jQuery(oList._lb.getDomRef()); oList.$("lst").removeClass("sapUiUx3ExactLstScroll"); if (jListRef.length > 0 && jListRef.outerHeight() < jListRef[0].scrollHeight) { oList.$("lst").addClass("sapUiUx3ExactLstScroll"); return true; } } return false...
javascript
function(oList){ if (oList._lb) { var jListRef = jQuery(oList._lb.getDomRef()); oList.$("lst").removeClass("sapUiUx3ExactLstScroll"); if (jListRef.length > 0 && jListRef.outerHeight() < jListRef[0].scrollHeight) { oList.$("lst").addClass("sapUiUx3ExactLstScroll"); return true; } } return false...
[ "function", "(", "oList", ")", "{", "if", "(", "oList", ".", "_lb", ")", "{", "var", "jListRef", "=", "jQuery", "(", "oList", ".", "_lb", ".", "getDomRef", "(", ")", ")", ";", "oList", ".", "$", "(", "\"lst\"", ")", ".", "removeClass", "(", "\"sa...
Adapt the scrolling behavior when not all list items can be shown and return whether adaptation was done or not.
[ "Adapt", "the", "scrolling", "behavior", "when", "not", "all", "list", "items", "can", "be", "shown", "and", "return", "whether", "adaptation", "was", "done", "or", "not", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1233-L1243
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList) { if (oList._bCollapsed) { var iWidth = oList.$("cntnt").height() - 50/*Space for Header Action Buttons - Maybe provide theme parameter in future*/; var $txt = oList.$("head-txt"); $txt.css("width", iWidth + "px"); } var aSubLists = oList.getSubLists(); for (var i = 0; i < aSubLists.len...
javascript
function(oList) { if (oList._bCollapsed) { var iWidth = oList.$("cntnt").height() - 50/*Space for Header Action Buttons - Maybe provide theme parameter in future*/; var $txt = oList.$("head-txt"); $txt.css("width", iWidth + "px"); } var aSubLists = oList.getSubLists(); for (var i = 0; i < aSubLists.len...
[ "function", "(", "oList", ")", "{", "if", "(", "oList", ".", "_bCollapsed", ")", "{", "var", "iWidth", "=", "oList", ".", "$", "(", "\"cntnt\"", ")", ".", "height", "(", ")", "-", "50", "/*Space for Header Action Buttons - Maybe provide theme parameter in future...
Refreshs the header text width of all collapsed lists
[ "Refreshs", "the", "header", "text", "width", "of", "all", "collapsed", "lists" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1348-L1358
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList){ var jListContRef = oList.$("lst"); if (jListContRef.hasClass("sapUiUx3ExactLstExpanded")) { //collapse oList._oPopup.close(); } else { //expand oList._oPopup.open(); } }
javascript
function(oList){ var jListContRef = oList.$("lst"); if (jListContRef.hasClass("sapUiUx3ExactLstExpanded")) { //collapse oList._oPopup.close(); } else { //expand oList._oPopup.open(); } }
[ "function", "(", "oList", ")", "{", "var", "jListContRef", "=", "oList", ".", "$", "(", "\"lst\"", ")", ";", "if", "(", "jListContRef", ".", "hasClass", "(", "\"sapUiUx3ExactLstExpanded\"", ")", ")", "{", "//collapse", "oList", ".", "_oPopup", ".", "close"...
Toggles the vertical Collapse State
[ "Toggles", "the", "vertical", "Collapse", "State" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1362-L1371
train