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/Core.js
preloadLibrarySync
function preloadLibrarySync(libConfig) { libConfig = evalLibConfig(libConfig); var lib = libConfig.name, fileType = libConfig.fileType, libPackage = lib.replace(/\./g, '/'), libLoaded = !!sap.ui.loader._.getModuleState(libPackage + '/library.js'); if ( fileType === 'none' || libLoaded ) { return; ...
javascript
function preloadLibrarySync(libConfig) { libConfig = evalLibConfig(libConfig); var lib = libConfig.name, fileType = libConfig.fileType, libPackage = lib.replace(/\./g, '/'), libLoaded = !!sap.ui.loader._.getModuleState(libPackage + '/library.js'); if ( fileType === 'none' || libLoaded ) { return; ...
[ "function", "preloadLibrarySync", "(", "libConfig", ")", "{", "libConfig", "=", "evalLibConfig", "(", "libConfig", ")", ";", "var", "lib", "=", "libConfig", ".", "name", ",", "fileType", "=", "libConfig", ".", "fileType", ",", "libPackage", "=", "lib", ".", ...
Preloads a library synchronously. @param {string|object} libConfig Name of the library to preload or settings object describing library. @param {string} [libConfig.name] Name of the library to preload @param {boolean|undefined} [libConfig.json] Whether library supports only JSON (<code>true</code>) or only JS (<code>f...
[ "Preloads", "a", "library", "synchronously", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Core.js#L1777-L1840
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Core.js
getModulePath
function getModulePath(sModuleName, sSuffix){ return sap.ui.require.toUrl(sModuleName.replace(/\./g, "/") + sSuffix); }
javascript
function getModulePath(sModuleName, sSuffix){ return sap.ui.require.toUrl(sModuleName.replace(/\./g, "/") + sSuffix); }
[ "function", "getModulePath", "(", "sModuleName", ",", "sSuffix", ")", "{", "return", "sap", ".", "ui", ".", "require", ".", "toUrl", "(", "sModuleName", ".", "replace", "(", "/", "\\.", "/", "g", ",", "\"/\"", ")", "+", "sSuffix", ")", ";", "}" ]
Retrieves the module path. @param {string} sModuleName module name. @param {string} sSuffix is used untouched (dots are not replaced with slashes). @returns {string} module path.
[ "Retrieves", "the", "module", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Core.js#L1870-L1872
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/appVariant/Feature.js
function(bAsKeyUser) { var oDescriptor = fnGetDescriptor(); return new Promise(function(resolve) { var fnCancel = function() { AppVariantUtils.closeOverviewDialog(); }; sap.ui.require(["sap/ui/rta/appVariant/AppVariantOverviewDialog"], function(AppVariantOverviewDialog) { if (!oAppVariantOv...
javascript
function(bAsKeyUser) { var oDescriptor = fnGetDescriptor(); return new Promise(function(resolve) { var fnCancel = function() { AppVariantUtils.closeOverviewDialog(); }; sap.ui.require(["sap/ui/rta/appVariant/AppVariantOverviewDialog"], function(AppVariantOverviewDialog) { if (!oAppVariantOv...
[ "function", "(", "bAsKeyUser", ")", "{", "var", "oDescriptor", "=", "fnGetDescriptor", "(", ")", ";", "return", "new", "Promise", "(", "function", "(", "resolve", ")", "{", "var", "fnCancel", "=", "function", "(", ")", "{", "AppVariantUtils", ".", "closeOv...
To see the overview of app variants, a key user has created from an app
[ "To", "see", "the", "overview", "of", "app", "variants", "a", "key", "user", "has", "created", "from", "an", "app" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/appVariant/Feature.js#L98-L122
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/appVariant/Feature.js
processArray
function processArray(aPromises) { return aPromises.reduce(function(pacc, fn) { return pacc.then(fn); }, Promise.resolve()) .catch(function() { return Promise.resolve(false); }); }
javascript
function processArray(aPromises) { return aPromises.reduce(function(pacc, fn) { return pacc.then(fn); }, Promise.resolve()) .catch(function() { return Promise.resolve(false); }); }
[ "function", "processArray", "(", "aPromises", ")", "{", "return", "aPromises", ".", "reduce", "(", "function", "(", "pacc", ",", "fn", ")", "{", "return", "pacc", ".", "then", "(", "fn", ")", ";", "}", ",", "Promise", ".", "resolve", "(", ")", ")", ...
Execute a list of Promises
[ "Execute", "a", "list", "of", "Promises" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/appVariant/Feature.js#L263-L270
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js
_stringify
function _stringify(vObject) { var sData = "", sProp; var type = typeof vObject; if (vObject == null || (type != "object" && type != "function")) { sData = vObject; } else if (isPlainObject(vObject)) { sData = JSON.stringify(vObject); } else if (vObject instanceof ManagedObject) { sData = vObject.ge...
javascript
function _stringify(vObject) { var sData = "", sProp; var type = typeof vObject; if (vObject == null || (type != "object" && type != "function")) { sData = vObject; } else if (isPlainObject(vObject)) { sData = JSON.stringify(vObject); } else if (vObject instanceof ManagedObject) { sData = vObject.ge...
[ "function", "_stringify", "(", "vObject", ")", "{", "var", "sData", "=", "\"\"", ",", "sProp", ";", "var", "type", "=", "typeof", "vObject", ";", "if", "(", "vObject", "==", "null", "||", "(", "type", "!=", "\"object\"", "&&", "type", "!=", "\"function...
Serialize the object to a string to support change detection @param vObject @returns {string} a serialization of the object to a string @private
[ "Serialize", "the", "object", "to", "a", "string", "to", "support", "change", "detection" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js#L98-L121
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js
function(oContext) { // use the id of the ManagedObject instance as the identifier // for the extended change detection var oObject = oContext.getObject(); if (oObject instanceof ManagedObject) { return oObject.getId(); } return JSONListBinding.prototype.getEntryKey.apply(this, arguments); }
javascript
function(oContext) { // use the id of the ManagedObject instance as the identifier // for the extended change detection var oObject = oContext.getObject(); if (oObject instanceof ManagedObject) { return oObject.getId(); } return JSONListBinding.prototype.getEntryKey.apply(this, arguments); }
[ "function", "(", "oContext", ")", "{", "// use the id of the ManagedObject instance as the identifier", "// for the extended change detection", "var", "oObject", "=", "oContext", ".", "getObject", "(", ")", ";", "if", "(", "oObject", "instanceof", "ManagedObject", ")", "{...
Use the id of the ManagedObject instance as the unique key to identify the entry in the extended change detection. The default implementation in the parent class which uses JSON.stringify to serialize the instance doesn't fit here because none of the ManagedObject instance can be Serialized. @param {sap.ui.model.Conte...
[ "Use", "the", "id", "of", "the", "ManagedObject", "instance", "as", "the", "unique", "key", "to", "identify", "the", "entry", "in", "the", "extended", "change", "detection", ".", "The", "default", "implementation", "in", "the", "parent", "class", "which", "u...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js#L140-L149
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js
function(iStartIndex, iLength) { var iSizeLimit; if (this._oAggregation) { var oInnerListBinding = this._oOriginMO.getBinding(this._sMember); //check if the binding is a list binding if (oInnerListBinding) { var oModel = oInnerListBinding.getModel(); iSizeLimit = oModel.iSizeLimit; } ...
javascript
function(iStartIndex, iLength) { var iSizeLimit; if (this._oAggregation) { var oInnerListBinding = this._oOriginMO.getBinding(this._sMember); //check if the binding is a list binding if (oInnerListBinding) { var oModel = oInnerListBinding.getModel(); iSizeLimit = oModel.iSizeLimit; } ...
[ "function", "(", "iStartIndex", ",", "iLength", ")", "{", "var", "iSizeLimit", ";", "if", "(", "this", ".", "_oAggregation", ")", "{", "var", "oInnerListBinding", "=", "this", ".", "_oOriginMO", ".", "getBinding", "(", "this", ".", "_sMember", ")", ";", ...
In order to be able to page from an outer control an inner aggregation binding must be forced to page also @override
[ "In", "order", "to", "be", "able", "to", "page", "from", "an", "outer", "control", "an", "inner", "aggregation", "binding", "must", "be", "forced", "to", "page", "also" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js#L166-L201
train
SAP/openui5
src/sap.f/src/sap/f/shellBar/Accessibility.js
function (oContext) { if (oContext) { oControl = oContext; oControl.addDelegate(this._controlDelegate, false, this); } this.oRb = Core.getLibraryResourceBundle("sap.f"); }
javascript
function (oContext) { if (oContext) { oControl = oContext; oControl.addDelegate(this._controlDelegate, false, this); } this.oRb = Core.getLibraryResourceBundle("sap.f"); }
[ "function", "(", "oContext", ")", "{", "if", "(", "oContext", ")", "{", "oControl", "=", "oContext", ";", "oControl", ".", "addDelegate", "(", "this", ".", "_controlDelegate", ",", "false", ",", "this", ")", ";", "}", "this", ".", "oRb", "=", "Core", ...
This class is used to maintain all the accessibility roles, tooltips, etc., needed for the ShellBar control life cycle. @alias sap/f/shellBar/Accessibility @since 1.64 @private
[ "This", "class", "is", "used", "to", "maintain", "all", "the", "accessibility", "roles", "tooltips", "etc", ".", "needed", "for", "the", "ShellBar", "control", "life", "cycle", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/shellBar/Accessibility.js#L19-L26
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Batch.js
function (aRequests) { var oBatchRequest = _serializeBatchRequest(aRequests); return { body : oBatchRequest.body.join(""), headers : { "Content-Type" : "multipart/mixed; boundary=" + oBatchRequest.batchBoundary, "MIME-Version" : "1.0" } }; }
javascript
function (aRequests) { var oBatchRequest = _serializeBatchRequest(aRequests); return { body : oBatchRequest.body.join(""), headers : { "Content-Type" : "multipart/mixed; boundary=" + oBatchRequest.batchBoundary, "MIME-Version" : "1.0" } }; }
[ "function", "(", "aRequests", ")", "{", "var", "oBatchRequest", "=", "_serializeBatchRequest", "(", "aRequests", ")", ";", "return", "{", "body", ":", "oBatchRequest", ".", "body", ".", "join", "(", "\"\"", ")", ",", "headers", ":", "{", "\"Content-Type\"", ...
Serializes an array of requests to an object containing the batch request body and mandatory headers for the batch request. @param {object[]} aRequests An array consisting of request objects <code>oRequest</code> or out of array(s) of request objects <code>oRequest</code>, in case requests need to be sent in scope of ...
[ "Serializes", "an", "array", "of", "requests", "to", "an", "object", "containing", "the", "batch", "request", "body", "and", "mandatory", "headers", "for", "the", "batch", "request", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Batch.js#L395-L405
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js
function(aEnum, oEnumComparison) { if (aEnum && Array.isArray(aEnum) && aEnum.length) { for (var i = 0; i < aEnum.length; i++) { if (oEnumComparison.hasOwnProperty(aEnum[i])) { continue; } else { return false; } } return true; } return false; }
javascript
function(aEnum, oEnumComparison) { if (aEnum && Array.isArray(aEnum) && aEnum.length) { for (var i = 0; i < aEnum.length; i++) { if (oEnumComparison.hasOwnProperty(aEnum[i])) { continue; } else { return false; } } return true; } return false; }
[ "function", "(", "aEnum", ",", "oEnumComparison", ")", "{", "if", "(", "aEnum", "&&", "Array", ".", "isArray", "(", "aEnum", ")", "&&", "aEnum", ".", "length", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "aEnum", ".", "length", ";"...
Validates any given collection. Basically you can validate Audiences, Categories, Severity etc - everything that meets the criteria Positive cases : - "Capitalcase" @private @param {array} aEnum Enum to be validated. @param {array} oEnumComparison Enum comparison. @returns {boolean} Boolean response if the provided c...
[ "Validates", "any", "given", "collection", ".", "Basically", "you", "can", "validate", "Audiences", "Categories", "Severity", "etc", "-", "everything", "that", "meets", "the", "criteria" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js#L64-L82
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js
function(sId) { //Match camelCase - case sensitive var idRegEx = /^[a-z][a-zA-Z]+$/; if ( !sId || typeof sId !== 'string') { return false; } if (sId.match(idRegEx) && this.validateStringLength(sId, 6, 50)) { return true; } return false; }
javascript
function(sId) { //Match camelCase - case sensitive var idRegEx = /^[a-z][a-zA-Z]+$/; if ( !sId || typeof sId !== 'string') { return false; } if (sId.match(idRegEx) && this.validateStringLength(sId, 6, 50)) { return true; } return false; }
[ "function", "(", "sId", ")", "{", "//Match camelCase - case sensitive", "var", "idRegEx", "=", "/", "^[a-z][a-zA-Z]+$", "/", ";", "if", "(", "!", "sId", "||", "typeof", "sId", "!==", "'string'", ")", "{", "return", "false", ";", "}", "if", "(", "sId", "....
Validates the id of a rule each id. The Id has to be of type string, and needs to be camelCase. Positive cases : - "validId" @private @param {string} sId Id in string format. @returns {boolean} Boolean response if the provided id is valid.
[ "Validates", "the", "id", "of", "a", "rule", "each", "id", ".", "The", "Id", "has", "to", "be", "of", "type", "string", "and", "needs", "to", "be", "camelCase", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js#L94-L109
train
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/MessageBox.js
cell
function cell(oContent) { return new MatrixLayoutCell({ padding: Padding.None, vAlign: VAlign.Top, content: oContent }); }
javascript
function cell(oContent) { return new MatrixLayoutCell({ padding: Padding.None, vAlign: VAlign.Top, content: oContent }); }
[ "function", "cell", "(", "oContent", ")", "{", "return", "new", "MatrixLayoutCell", "(", "{", "padding", ":", "Padding", ".", "None", ",", "vAlign", ":", "VAlign", ".", "Top", ",", "content", ":", "oContent", "}", ")", ";", "}" ]
wraps the given control in a top aligned MatrixLayoutCell with no padding
[ "wraps", "the", "given", "control", "in", "a", "top", "aligned", "MatrixLayoutCell", "with", "no", "padding" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/MessageBox.js#L234-L240
train
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/MessageBox.js
image
function image(oIcon) { var oImage = new Image({ id: sDialogId + "--icon", tooltip: rb && rb.getText("MSGBOX_ICON_" + oIcon), decorative: true }); oImage.addStyleClass("sapUiMboxIcon"); oImage.addStyleClass(mIconClass[oIcon]); return oImage; }
javascript
function image(oIcon) { var oImage = new Image({ id: sDialogId + "--icon", tooltip: rb && rb.getText("MSGBOX_ICON_" + oIcon), decorative: true }); oImage.addStyleClass("sapUiMboxIcon"); oImage.addStyleClass(mIconClass[oIcon]); return oImage; }
[ "function", "image", "(", "oIcon", ")", "{", "var", "oImage", "=", "new", "Image", "(", "{", "id", ":", "sDialogId", "+", "\"--icon\"", ",", "tooltip", ":", "rb", "&&", "rb", ".", "getText", "(", "\"MSGBOX_ICON_\"", "+", "oIcon", ")", ",", "decorative"...
creates an Image for the given icon type
[ "creates", "an", "Image", "for", "the", "given", "icon", "type" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/MessageBox.js#L243-L252
train
SAP/openui5
src/sap.m/src/sap/m/library.js
function(sEmail, sSubject, sBody, sCC, sBCC) { var aParams = [], sURL = "mailto:", encode = encodeURIComponent; // Within mailto URLs, the characters "?", "=", "&" are reserved isValidString(sEmail) && (sURL += encode(jQuery.trim(sEmail))); isValidString(sSubject) && aParams.push("subject=" +...
javascript
function(sEmail, sSubject, sBody, sCC, sBCC) { var aParams = [], sURL = "mailto:", encode = encodeURIComponent; // Within mailto URLs, the characters "?", "=", "&" are reserved isValidString(sEmail) && (sURL += encode(jQuery.trim(sEmail))); isValidString(sSubject) && aParams.push("subject=" +...
[ "function", "(", "sEmail", ",", "sSubject", ",", "sBody", ",", "sCC", ",", "sBCC", ")", "{", "var", "aParams", "=", "[", "]", ",", "sURL", "=", "\"mailto:\"", ",", "encode", "=", "encodeURIComponent", ";", "// Within mailto URLs, the characters \"?\", \"=\", \"&...
Builds Email URI from given parameter. Trims spaces from email addresses. @param {string} [sEmail] Destination email address @param {string} [sSubject] Subject of the email address @param {string} [sBody] Default message text @param {string} [sCC] Carbon Copy email address @param {string} [sBCC] Blind carbon copy emai...
[ "Builds", "Email", "URI", "from", "given", "parameter", ".", "Trims", "spaces", "from", "email", "addresses", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/library.js#L4050-L4066
train
SAP/openui5
src/sap.m/src/sap/m/library.js
function (sURL, bNewWindow) { assert(isValidString(sURL), this + "#redirect: URL must be a string" ); this.fireEvent("redirect", sURL); if (!bNewWindow) { window.location.href = sURL; } else { var oWindow = window.open(sURL, "_blank"); if (!oWindow) { Log.error(this + "#redirect: Co...
javascript
function (sURL, bNewWindow) { assert(isValidString(sURL), this + "#redirect: URL must be a string" ); this.fireEvent("redirect", sURL); if (!bNewWindow) { window.location.href = sURL; } else { var oWindow = window.open(sURL, "_blank"); if (!oWindow) { Log.error(this + "#redirect: Co...
[ "function", "(", "sURL", ",", "bNewWindow", ")", "{", "assert", "(", "isValidString", "(", "sURL", ")", ",", "this", "+", "\"#redirect: URL must be a string\"", ")", ";", "this", ".", "fireEvent", "(", "\"redirect\"", ",", "sURL", ")", ";", "if", "(", "!",...
Redirects to the given URL. This method fires "redirect" event before opening the URL. @param {string} sURL Uniform resource locator @param {boolean} [bNewWindow] Opens URL in a new browser window or tab. Please note that, opening a new window/tab can be ignored by browsers (e.g. on Windows Phone) or by popup blocker...
[ "Redirects", "to", "the", "given", "URL", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/library.js#L4079-L4094
train
SAP/openui5
src/sap.m/src/sap/m/library.js
checkAndSetProperty
function checkAndSetProperty(oControl, property, value) { if (value !== undefined) { var fSetter = oControl['set' + capitalize(property)]; if (typeof (fSetter) === "function") { fSetter.call(oControl, value); return true; } } return false; }
javascript
function checkAndSetProperty(oControl, property, value) { if (value !== undefined) { var fSetter = oControl['set' + capitalize(property)]; if (typeof (fSetter) === "function") { fSetter.call(oControl, value); return true; } } return false; }
[ "function", "checkAndSetProperty", "(", "oControl", ",", "property", ",", "value", ")", "{", "if", "(", "value", "!==", "undefined", ")", "{", "var", "fSetter", "=", "oControl", "[", "'set'", "+", "capitalize", "(", "property", ")", "]", ";", "if", "(", ...
Checks if value is not undefined, in which case the setter function for a given property is called. Returns true if value is set, false otherwise. @private
[ "Checks", "if", "value", "is", "not", "undefined", "in", "which", "case", "the", "setter", "function", "for", "a", "given", "property", "is", "called", ".", "Returns", "true", "if", "value", "is", "set", "false", "otherwise", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/library.js#L4289-L4298
train
SAP/openui5
src/sap.m/src/sap/m/library.js
function(sPercentage, fBaseSize){ if (typeof sPercentage !== "string") { Log.warning("sap.m.PopupHelper: calcPercentageSize, the first parameter" + sPercentage + "isn't with type string"); return null; } if (sPercentage.indexOf("%") <= 0) { Log.warning("sap.m.PopupHelper: calcPercentageSize, the f...
javascript
function(sPercentage, fBaseSize){ if (typeof sPercentage !== "string") { Log.warning("sap.m.PopupHelper: calcPercentageSize, the first parameter" + sPercentage + "isn't with type string"); return null; } if (sPercentage.indexOf("%") <= 0) { Log.warning("sap.m.PopupHelper: calcPercentageSize, the f...
[ "function", "(", "sPercentage", ",", "fBaseSize", ")", "{", "if", "(", "typeof", "sPercentage", "!==", "\"string\"", ")", "{", "Log", ".", "warning", "(", "\"sap.m.PopupHelper: calcPercentageSize, the first parameter\"", "+", "sPercentage", "+", "\"isn't with type strin...
Converts the given percentage value to an absolute number based on the given base size. @param {string} sPercentage A percentage value in string format, for example "25%" @param {float} fBaseSize A float number which the calculation is based on. @returns {int} The calculated size string with "px" as unit or null when ...
[ "Converts", "the", "given", "percentage", "value", "to", "an", "absolute", "number", "based", "on", "the", "given", "base", "size", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/library.js#L4377-L4392
train
SAP/openui5
src/sap.f/src/sap/f/GridContainer.js
isGridSupportedByBrowser
function isGridSupportedByBrowser() { return !Device.browser.msie && !(Device.browser.edge && Device.browser.version < EDGE_VERSION_WITH_GRID_SUPPORT); }
javascript
function isGridSupportedByBrowser() { return !Device.browser.msie && !(Device.browser.edge && Device.browser.version < EDGE_VERSION_WITH_GRID_SUPPORT); }
[ "function", "isGridSupportedByBrowser", "(", ")", "{", "return", "!", "Device", ".", "browser", ".", "msie", "&&", "!", "(", "Device", ".", "browser", ".", "edge", "&&", "Device", ".", "browser", ".", "version", "<", "EDGE_VERSION_WITH_GRID_SUPPORT", ")", ";...
Indicates whether the grid is supported by the browser. @private @returns {boolean} If native grid is supported by the browser
[ "Indicates", "whether", "the", "grid", "is", "supported", "by", "the", "browser", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/GridContainer.js#L35-L37
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (oEvent) { if (this._oView) { this._oView.destroy(); // If we had a view that means this is a navigation so we need to init the busy state this._oContainerPage.setBusy(true); } var oComponent = this.getOwnerComponent(); this._sTopicid = decodeURIComponent(oEvent.getParameter("a...
javascript
function (oEvent) { if (this._oView) { this._oView.destroy(); // If we had a view that means this is a navigation so we need to init the busy state this._oContainerPage.setBusy(true); } var oComponent = this.getOwnerComponent(); this._sTopicid = decodeURIComponent(oEvent.getParameter("a...
[ "function", "(", "oEvent", ")", "{", "if", "(", "this", ".", "_oView", ")", "{", "this", ".", "_oView", ".", "destroy", "(", ")", ";", "// If we had a view that means this is a navigation so we need to init the busy state", "this", ".", "_oContainerPage", ".", "setB...
Binds the view to the object path and expands the aggregated line items. @function @param {sap.ui.base.Event} oEvent pattern match event in route 'api' @private
[ "Binds", "the", "view", "to", "the", "object", "path", "and", "expands", "the", "aggregated", "line", "items", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L55-L93
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (oView) { var oController = oView.getController(); // Add the sub view to the current one this._oContainerPage.addContent(oView); this._oContainerPage.setBusy(false); // Init the sub view and controller with the needed references.The view's are nested and work in a // mimic way so the...
javascript
function (oView) { var oController = oView.getController(); // Add the sub view to the current one this._oContainerPage.addContent(oView); this._oContainerPage.setBusy(false); // Init the sub view and controller with the needed references.The view's are nested and work in a // mimic way so the...
[ "function", "(", "oView", ")", "{", "var", "oController", "=", "oView", ".", "getController", "(", ")", ";", "// Add the sub view to the current one", "this", ".", "_oContainerPage", ".", "addContent", "(", "oView", ")", ";", "this", ".", "_oContainerPage", ".",...
Init the Sub View and controller @param {sap.ui.view} oView the pre-processed sub view @private
[ "Init", "the", "Sub", "View", "and", "controller" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L100-L121
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (oBorrowedData) { // Attach resolved borrowed data this._oControlData.borrowed = oBorrowedData; // Pre-process data and create model this._bindData(this._sTopicid); // Create the sub-view and controller this._oView = sap.ui.view({ height: "100%", viewName: "sap.ui.documentat...
javascript
function (oBorrowedData) { // Attach resolved borrowed data this._oControlData.borrowed = oBorrowedData; // Pre-process data and create model this._bindData(this._sTopicid); // Create the sub-view and controller this._oView = sap.ui.view({ height: "100%", viewName: "sap.ui.documentat...
[ "function", "(", "oBorrowedData", ")", "{", "// Attach resolved borrowed data", "this", ".", "_oControlData", ".", "borrowed", "=", "oBorrowedData", ";", "// Pre-process data and create model", "this", ".", "_bindData", "(", "this", ".", "_sTopicid", ")", ";", "// Cre...
Create the JSON model and the Sub View. The model will be used in both lifecycle phases of the sub view by the preprocessor and by the view initiation afterwards. @param {object} oBorrowedData the data extracted by the borrowed methods promise @return {Promise} sap.ui.view.loaded promise @private
[ "Create", "the", "JSON", "model", "and", "the", "Sub", "View", ".", "The", "model", "will", "be", "used", "in", "both", "lifecycle", "phases", "of", "the", "sub", "view", "by", "the", "preprocessor", "and", "by", "the", "view", "initiation", "afterwards", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L130-L154
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (aLibsData) { var oLibItem, iLen, i; // Find entity in loaded libs data for (i = 0, iLen = aLibsData.length; i < iLen; i++) { oLibItem = aLibsData[i]; if (oLibItem.name === this._sTopicid) { // Check if we are allowed to display the requested symbol // BCP: 18702690...
javascript
function (aLibsData) { var oLibItem, iLen, i; // Find entity in loaded libs data for (i = 0, iLen = aLibsData.length; i < iLen; i++) { oLibItem = aLibsData[i]; if (oLibItem.name === this._sTopicid) { // Check if we are allowed to display the requested symbol // BCP: 18702690...
[ "function", "(", "aLibsData", ")", "{", "var", "oLibItem", ",", "iLen", ",", "i", ";", "// Find entity in loaded libs data", "for", "(", "i", "=", "0", ",", "iLen", "=", "aLibsData", ".", "length", ";", "i", "<", "iLen", ";", "i", "++", ")", "{", "oL...
Extract current symbol data from api.json file for the current library @param {array} aLibsData data from api.json file for the current library @returns {object} current symbol data @private
[ "Extract", "current", "symbol", "data", "from", "api", ".", "json", "file", "for", "the", "current", "library" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L176-L198
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (aData) { var oEntityData, oMasterController, sTopicId = this._sTopicid; // Cache api-index data this._aApiIndex = aData; // Find symbol function findSymbol (a) { return a.some(function (o) { var bFound = o.name === sTopicId; if (!bFound && o.nodes) { ret...
javascript
function (aData) { var oEntityData, oMasterController, sTopicId = this._sTopicid; // Cache api-index data this._aApiIndex = aData; // Find symbol function findSymbol (a) { return a.some(function (o) { var bFound = o.name === sTopicId; if (!bFound && o.nodes) { ret...
[ "function", "(", "aData", ")", "{", "var", "oEntityData", ",", "oMasterController", ",", "sTopicId", "=", "this", ".", "_sTopicid", ";", "// Cache api-index data", "this", ".", "_aApiIndex", "=", "aData", ";", "// Find symbol", "function", "findSymbol", "(", "a"...
Process data from api-index file and if symbol is found load the corresponding api.json file for the symbol library. If the symbol is not resolved this method returns a rejected promise which triggers navigation to not found page. @param {array} aData data from api-index file @return {Promise} resolved or rejected prom...
[ "Process", "data", "from", "api", "-", "index", "file", "and", "if", "symbol", "is", "found", "load", "the", "corresponding", "api", ".", "json", "file", "for", "the", "symbol", "library", ".", "If", "the", "symbol", "is", "not", "resolved", "this", "met...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L208-L249
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (aElements, fnFilter, fnFormat) { var i, iLength = aElements.length, aNewElements = [], oElement; for (i = 0; i < iLength; i++) { oElement = aElements[i]; if (fnFilter && !fnFilter(oElement)) { continue; } if (fnFormat) { fnFormat(oElement); } ...
javascript
function (aElements, fnFilter, fnFormat) { var i, iLength = aElements.length, aNewElements = [], oElement; for (i = 0; i < iLength; i++) { oElement = aElements[i]; if (fnFilter && !fnFilter(oElement)) { continue; } if (fnFormat) { fnFormat(oElement); } ...
[ "function", "(", "aElements", ",", "fnFilter", ",", "fnFormat", ")", "{", "var", "i", ",", "iLength", "=", "aElements", ".", "length", ",", "aNewElements", "=", "[", "]", ",", "oElement", ";", "for", "(", "i", "=", "0", ";", "i", "<", "iLength", ";...
Filter and format elements @param {array} aElements list of elements @param {function} fnFilter filtering function @param {function} fnFormat formatting function @returns {array} transformed elements list
[ "Filter", "and", "format", "elements" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L603-L621
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js
preloadModules
function preloadModules (oData) { // prealod the modules from the live-edited src sap.ui.require.preload(oData.src); // require the init module sap.ui.require([oData.moduleNameToRequire]); }
javascript
function preloadModules (oData) { // prealod the modules from the live-edited src sap.ui.require.preload(oData.src); // require the init module sap.ui.require([oData.moduleNameToRequire]); }
[ "function", "preloadModules", "(", "oData", ")", "{", "// prealod the modules from the live-edited src", "sap", ".", "ui", ".", "require", ".", "preload", "(", "oData", ".", "src", ")", ";", "// require the init module", "sap", ".", "ui", ".", "require", "(", "[...
Preload the modules of the live-edited sample so that the framework obtains the module content from the editor-supplied src, insted of making a network request to obtain them @param oData the editor-supplied src
[ "Preload", "the", "modules", "of", "the", "live", "-", "edited", "sample", "so", "that", "the", "framework", "obtains", "the", "module", "content", "from", "the", "editor", "-", "supplied", "src", "insted", "of", "making", "a", "network", "request", "to", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js#L38-L45
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js
addOnErrorHook
function addOnErrorHook () { window.addEventListener("error", function(error) { error.preventDefault(); var oErrorOutput = document.createElement("span"); oErrorOutput.innerText = error.message; // use save API oErrorOutput.style.cssText = "position:absolute; top:1rem; left:1rem"; if (!document.body) ...
javascript
function addOnErrorHook () { window.addEventListener("error", function(error) { error.preventDefault(); var oErrorOutput = document.createElement("span"); oErrorOutput.innerText = error.message; // use save API oErrorOutput.style.cssText = "position:absolute; top:1rem; left:1rem"; if (!document.body) ...
[ "function", "addOnErrorHook", "(", ")", "{", "window", ".", "addEventListener", "(", "\"error\"", ",", "function", "(", "error", ")", "{", "error", ".", "preventDefault", "(", ")", ";", "var", "oErrorOutput", "=", "document", ".", "createElement", "(", "\"sp...
Listen for errors and display them in the DOM, so that the user does not need to open the console
[ "Listen", "for", "errors", "and", "display", "them", "in", "the", "DOM", "so", "that", "the", "user", "does", "not", "need", "to", "open", "the", "console" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js#L51-L63
train
SAP/openui5
src/sap.ui.core/src/sap/base/util/Version.js
Version
function Version(vMajor, iMinor, iPatch, sSuffix) { if ( vMajor instanceof Version ) { // note: even a constructor may return a value different from 'this' return vMajor; } if ( !(this instanceof Version) ) { // act as a cast operator when called as function (not as a constructor) return new Version(v...
javascript
function Version(vMajor, iMinor, iPatch, sSuffix) { if ( vMajor instanceof Version ) { // note: even a constructor may return a value different from 'this' return vMajor; } if ( !(this instanceof Version) ) { // act as a cast operator when called as function (not as a constructor) return new Version(v...
[ "function", "Version", "(", "vMajor", ",", "iMinor", ",", "iPatch", ",", "sSuffix", ")", "{", "if", "(", "vMajor", "instanceof", "Version", ")", "{", "// note: even a constructor may return a value different from 'this'", "return", "vMajor", ";", "}", "if", "(", "...
Returns a Version instance created from the given parameters. This function can either be called as a constructor (using <code>new</code>) or as a normal function. It always returns an immutable Version instance. The parts of the version number (major, minor, patch, suffix) can be provided in several ways: <ul> <li>V...
[ "Returns", "a", "Version", "instance", "created", "from", "the", "given", "parameters", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/base/util/Version.js#L46-L146
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(sLogType, aMessageComponents, aValuesToInsert, sCallStack) { var sLogMessage = aMessageComponents.join(' '); sLogMessage = formatMessage(sLogMessage, aValuesToInsert); this.log[sLogType](sLogMessage, sCallStack || ""); }
javascript
function(sLogType, aMessageComponents, aValuesToInsert, sCallStack) { var sLogMessage = aMessageComponents.join(' '); sLogMessage = formatMessage(sLogMessage, aValuesToInsert); this.log[sLogType](sLogMessage, sCallStack || ""); }
[ "function", "(", "sLogType", ",", "aMessageComponents", ",", "aValuesToInsert", ",", "sCallStack", ")", "{", "var", "sLogMessage", "=", "aMessageComponents", ".", "join", "(", "' '", ")", ";", "sLogMessage", "=", "formatMessage", "(", "sLogMessage", ",", "aValue...
Formats the log message by replacing placeholders with values and logging the message. @param {string} sLogType - Logging type to be used. Possible values: info | warning | debug | error @param {array.<string>} aMessageComponents - Individual parts of the message text @param {array.<any>} aValuesToInsert - The values ...
[ "Formats", "the", "log", "message", "by", "replacing", "placeholders", "with", "values", "and", "logging", "the", "message", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L90-L94
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oModel; if (!oControl) { return ""; } // Get Model if (oControl && typeof oControl.getModel === "function") { oModel = oControl.getModel(); return Utils._getXSRFTokenFromModel(oModel); } return ""; }
javascript
function (oControl) { var oModel; if (!oControl) { return ""; } // Get Model if (oControl && typeof oControl.getModel === "function") { oModel = oControl.getModel(); return Utils._getXSRFTokenFromModel(oModel); } return ""; }
[ "function", "(", "oControl", ")", "{", "var", "oModel", ";", "if", "(", "!", "oControl", ")", "{", "return", "\"\"", ";", "}", "// Get Model", "if", "(", "oControl", "&&", "typeof", "oControl", ".", "getModel", "===", "\"function\"", ")", "{", "oModel", ...
Tries to retrieve the xsrf token from the controls OData Model. Returns empty string if retrieval failed. @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {String} XSRF Token @public @function @name sap.ui.fl.Utils.getXSRFTokenFromControl
[ "Tries", "to", "retrieve", "the", "xsrf", "token", "from", "the", "controls", "OData", "Model", ".", "Returns", "empty", "string", "if", "retrieval", "failed", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L105-L117
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oModel) { var mHeaders; if (!oModel) { return ""; } if (typeof oModel.getHeaders === "function") { mHeaders = oModel.getHeaders(); if (mHeaders) { return mHeaders["x-csrf-token"]; } } return ""; }
javascript
function (oModel) { var mHeaders; if (!oModel) { return ""; } if (typeof oModel.getHeaders === "function") { mHeaders = oModel.getHeaders(); if (mHeaders) { return mHeaders["x-csrf-token"]; } } return ""; }
[ "function", "(", "oModel", ")", "{", "var", "mHeaders", ";", "if", "(", "!", "oModel", ")", "{", "return", "\"\"", ";", "}", "if", "(", "typeof", "oModel", ".", "getHeaders", "===", "\"function\"", ")", "{", "mHeaders", "=", "oModel", ".", "getHeaders"...
Returns XSRF Token from the Odata Model. Returns empty string if retrieval failed @param {sap.ui.model.odata.ODataModel} oModel - OData Model @returns {String} XSRF Token @private
[ "Returns", "XSRF", "Token", "from", "the", "Odata", "Model", ".", "Returns", "empty", "string", "if", "retrieval", "failed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L126-L138
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oAppComponent; // determine UI5 component out of given control if (oControl) { // always return the app component oAppComponent = this.getAppComponentForControl(oControl); // check if the component is an application variant and assigned an application descriptor then use...
javascript
function (oControl) { var oAppComponent; // determine UI5 component out of given control if (oControl) { // always return the app component oAppComponent = this.getAppComponentForControl(oControl); // check if the component is an application variant and assigned an application descriptor then use...
[ "function", "(", "oControl", ")", "{", "var", "oAppComponent", ";", "// determine UI5 component out of given control", "if", "(", "oControl", ")", "{", "// always return the app component", "oAppComponent", "=", "this", ".", "getAppComponentForControl", "(", "oControl", "...
Returns the class name of the component the given control belongs to. @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {String} The component class name, ending with ".Component" @see sap.ui.core.Component.getOwnerIdFor @public @function @name sap.ui.fl.Utils.getComponentClassName
[ "Returns", "the", "class", "name", "of", "the", "component", "the", "given", "control", "belongs", "to", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L151-L173
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oManifest = null, oComponent = null, oComponentMetaData = null; // determine UI5 component out of given control if (oControl) { oComponent = this.getAppComponentForControl(oControl); // determine manifest out of found component if (oComponent && oComponent.getMetadata) {...
javascript
function (oControl) { var oManifest = null, oComponent = null, oComponentMetaData = null; // determine UI5 component out of given control if (oControl) { oComponent = this.getAppComponentForControl(oControl); // determine manifest out of found component if (oComponent && oComponent.getMetadata) {...
[ "function", "(", "oControl", ")", "{", "var", "oManifest", "=", "null", ",", "oComponent", "=", "null", ",", "oComponentMetaData", "=", "null", ";", "// determine UI5 component out of given control", "if", "(", "oControl", ")", "{", "oComponent", "=", "this", "....
Returns the appDescriptor of the component for the given control @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {object} that represent the appDescriptor @public @function @name sap.ui.fl.Utils.getAppDescriptor
[ "Returns", "the", "appDescriptor", "of", "the", "component", "for", "the", "given", "control" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L226-L243
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var sSiteId = null, oAppComponent = null; // determine UI5 component out of given control if (oControl) { oAppComponent = this.getAppComponentForControl(oControl); // determine siteId from ComponentData if (oAppComponent) { //Workaround for back-end check: isApplicatio...
javascript
function (oControl) { var sSiteId = null, oAppComponent = null; // determine UI5 component out of given control if (oControl) { oAppComponent = this.getAppComponentForControl(oControl); // determine siteId from ComponentData if (oAppComponent) { //Workaround for back-end check: isApplicatio...
[ "function", "(", "oControl", ")", "{", "var", "sSiteId", "=", "null", ",", "oAppComponent", "=", "null", ";", "// determine UI5 component out of given control", "if", "(", "oControl", ")", "{", "oAppComponent", "=", "this", ".", "getAppComponentForControl", "(", "...
Returns the siteId of a component @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {string} siteId - that represent the found siteId @public @function @name sap.ui.fl.Utils.getSiteId
[ "Returns", "the", "siteId", "of", "a", "component" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L254-L275
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (sPropertyValue) { var bIsBinding = false; if (sPropertyValue && typeof sPropertyValue === "string" && sPropertyValue.substring(0, 1) === "{" && sPropertyValue.slice(-1) === "}") { bIsBinding = true; } return bIsBinding; }
javascript
function (sPropertyValue) { var bIsBinding = false; if (sPropertyValue && typeof sPropertyValue === "string" && sPropertyValue.substring(0, 1) === "{" && sPropertyValue.slice(-1) === "}") { bIsBinding = true; } return bIsBinding; }
[ "function", "(", "sPropertyValue", ")", "{", "var", "bIsBinding", "=", "false", ";", "if", "(", "sPropertyValue", "&&", "typeof", "sPropertyValue", "===", "\"string\"", "&&", "sPropertyValue", ".", "substring", "(", "0", ",", "1", ")", "===", "\"{\"", "&&", ...
Indicates if the property value represents a binding @param {object} sPropertyValue - Property value @returns {boolean} true if value represents a binding @public @function @name sap.ui.fl.Utils.isBinding
[ "Indicates", "if", "the", "property", "value", "represents", "a", "binding" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L316-L322
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var sFlexReference = Utils.getComponentClassName(oControl); var oAppComponent = Utils.getAppComponentForControl(oControl); var sComponentName = Utils.getComponentName(oAppComponent); return sFlexReference !== sComponentName; }
javascript
function (oControl) { var sFlexReference = Utils.getComponentClassName(oControl); var oAppComponent = Utils.getAppComponentForControl(oControl); var sComponentName = Utils.getComponentName(oAppComponent); return sFlexReference !== sComponentName; }
[ "function", "(", "oControl", ")", "{", "var", "sFlexReference", "=", "Utils", ".", "getComponentClassName", "(", "oControl", ")", ";", "var", "oAppComponent", "=", "Utils", ".", "getAppComponentForControl", "(", "oControl", ")", ";", "var", "sComponentName", "="...
Indicates if the current application is a variant of an existing one @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {boolean} true if it's an application variant @public @function @name sap.ui.fl.Utils.isApplicationVariant
[ "Indicates", "if", "the", "current", "application", "is", "a", "variant", "of", "an", "existing", "one" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L350-L355
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oComponent, sParameterName) { var startUpParameterContent = null; if (sParameterName) { if (oComponent && oComponent.getComponentData) { startUpParameterContent = this._getStartUpParameter(oComponent.getComponentData(), sParameterName); } } return startUpParameterContent; }
javascript
function (oComponent, sParameterName) { var startUpParameterContent = null; if (sParameterName) { if (oComponent && oComponent.getComponentData) { startUpParameterContent = this._getStartUpParameter(oComponent.getComponentData(), sParameterName); } } return startUpParameterContent; }
[ "function", "(", "oComponent", ",", "sParameterName", ")", "{", "var", "startUpParameterContent", "=", "null", ";", "if", "(", "sParameterName", ")", "{", "if", "(", "oComponent", "&&", "oComponent", ".", "getComponentData", ")", "{", "startUpParameterContent", ...
Determines the content for a given startUpParameter name @param {sap.ui.core.Component} oComponent - component instance @param {String} sParameterName - startUpParameterName that shall be determined @returns {String} content of found startUpParameter @private
[ "Determines", "the", "content", "for", "a", "given", "startUpParameter", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L451-L461
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oComponent) { var sComponentName = ""; if (oComponent) { sComponentName = oComponent.getMetadata().getName(); } if (sComponentName.length > 0 && sComponentName.indexOf(".Component") < 0) { sComponentName += ".Component"; } return sComponentName; }
javascript
function (oComponent) { var sComponentName = ""; if (oComponent) { sComponentName = oComponent.getMetadata().getName(); } if (sComponentName.length > 0 && sComponentName.indexOf(".Component") < 0) { sComponentName += ".Component"; } return sComponentName; }
[ "function", "(", "oComponent", ")", "{", "var", "sComponentName", "=", "\"\"", ";", "if", "(", "oComponent", ")", "{", "sComponentName", "=", "oComponent", ".", "getMetadata", "(", ")", ".", "getName", "(", ")", ";", "}", "if", "(", "sComponentName", "."...
Gets the component name for a component instance. @param {sap.ui.core.Component} oComponent component instance @returns {String} component name @public
[ "Gets", "the", "component", "name", "for", "a", "component", "instance", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L478-L487
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var sComponentId = Utils._getOwnerIdForControl(oControl); if (!sComponentId) { if (oControl && typeof oControl.getParent === "function") { var oParent = oControl.getParent(); if (oParent) { return Utils._getComponentIdForControl(oParent); } } } return sComp...
javascript
function (oControl) { var sComponentId = Utils._getOwnerIdForControl(oControl); if (!sComponentId) { if (oControl && typeof oControl.getParent === "function") { var oParent = oControl.getParent(); if (oParent) { return Utils._getComponentIdForControl(oParent); } } } return sComp...
[ "function", "(", "oControl", ")", "{", "var", "sComponentId", "=", "Utils", ".", "_getOwnerIdForControl", "(", "oControl", ")", ";", "if", "(", "!", "sComponentId", ")", "{", "if", "(", "oControl", "&&", "typeof", "oControl", ".", "getParent", "===", "\"fu...
Returns ComponentId of the control. If the control has no component, it walks up the control tree in order to find a control having one @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {String} The component id or empty string if component id couldn't be found @see sap.ui.core.Component.getOwnerIdFor @p...
[ "Returns", "ComponentId", "of", "the", "control", ".", "If", "the", "control", "has", "no", "component", "it", "walks", "up", "the", "control", "tree", "in", "order", "to", "find", "a", "control", "having", "one" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L512-L523
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oComponent = null; var sComponentId = null; // determine UI5 component out of given control if (oControl) { sComponentId = Utils._getComponentIdForControl(oControl); if (sComponentId) { oComponent = Utils._getComponent(sComponentId); } } return oComponent; ...
javascript
function (oControl) { var oComponent = null; var sComponentId = null; // determine UI5 component out of given control if (oControl) { sComponentId = Utils._getComponentIdForControl(oControl); if (sComponentId) { oComponent = Utils._getComponent(sComponentId); } } return oComponent; ...
[ "function", "(", "oControl", ")", "{", "var", "oComponent", "=", "null", ";", "var", "sComponentId", "=", "null", ";", "// determine UI5 component out of given control", "if", "(", "oControl", ")", "{", "sComponentId", "=", "Utils", ".", "_getComponentIdForControl",...
Returns the Component that belongs to given control. If the control has no component, it walks up the control tree in order to find a control having one. @param {sap.ui.base.ManagedObject} oControl - Managed object instance @returns {sap.ui.core.Component|null} found component @private
[ "Returns", "the", "Component", "that", "belongs", "to", "given", "control", ".", "If", "the", "control", "has", "no", "component", "it", "walks", "up", "the", "control", "tree", "in", "order", "to", "find", "a", "control", "having", "one", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L558-L571
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oComponent) { var oSapApp = null; // special case for Fiori Elements to reach the real appComponent if (oComponent && oComponent.getAppComponent) { return oComponent.getAppComponent(); } // special case for OVP if (oComponent && oComponent.oComponentData && oComponent.oComponentData.app...
javascript
function (oComponent) { var oSapApp = null; // special case for Fiori Elements to reach the real appComponent if (oComponent && oComponent.getAppComponent) { return oComponent.getAppComponent(); } // special case for OVP if (oComponent && oComponent.oComponentData && oComponent.oComponentData.app...
[ "function", "(", "oComponent", ")", "{", "var", "oSapApp", "=", "null", ";", "// special case for Fiori Elements to reach the real appComponent", "if", "(", "oComponent", "&&", "oComponent", ".", "getAppComponent", ")", "{", "return", "oComponent", ".", "getAppComponent...
Returns the Component that belongs to given component whose type is "application". @param {sap.ui.core.Component} oComponent - SAPUI5 component @returns {sap.ui.core.Component|null} component instance if found or null @private
[ "Returns", "the", "Component", "that", "belongs", "to", "given", "component", "whose", "type", "is", "application", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L580-L609
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (bIsEndUser) { var oUriParams, sLayer; if (bIsEndUser) { return "USER"; } oUriParams = this._getUriParameters(); sLayer = oUriParams.get("sap-ui-layer") || ""; sLayer = sLayer.toUpperCase(); return sLayer || "CUSTOMER"; }
javascript
function (bIsEndUser) { var oUriParams, sLayer; if (bIsEndUser) { return "USER"; } oUriParams = this._getUriParameters(); sLayer = oUriParams.get("sap-ui-layer") || ""; sLayer = sLayer.toUpperCase(); return sLayer || "CUSTOMER"; }
[ "function", "(", "bIsEndUser", ")", "{", "var", "oUriParams", ",", "sLayer", ";", "if", "(", "bIsEndUser", ")", "{", "return", "\"USER\"", ";", "}", "oUriParams", "=", "this", ".", "_getUriParameters", "(", ")", ";", "sLayer", "=", "oUriParams", ".", "ge...
Returns the current layer as defined by the url parameter. If the end user flag is set, it always returns "USER". @param {boolean} bIsEndUser - the end user flag @returns {string} the current layer @public @function @name sap.ui.fl.Utils.getCurrentLayer
[ "Returns", "the", "current", "layer", "as", "defined", "by", "the", "url", "parameter", ".", "If", "the", "end", "user", "flag", "is", "set", "it", "always", "returns", "USER", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L693-L703
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oMetadata; if (oControl && typeof oControl.getMetadata === "function") { oMetadata = oControl.getMetadata(); if (oMetadata && typeof oMetadata.getElementName === "function") { return oMetadata.getElementName(); } } }
javascript
function (oControl) { var oMetadata; if (oControl && typeof oControl.getMetadata === "function") { oMetadata = oControl.getMetadata(); if (oMetadata && typeof oMetadata.getElementName === "function") { return oMetadata.getElementName(); } } }
[ "function", "(", "oControl", ")", "{", "var", "oMetadata", ";", "if", "(", "oControl", "&&", "typeof", "oControl", ".", "getMetadata", "===", "\"function\"", ")", "{", "oMetadata", "=", "oControl", ".", "getMetadata", "(", ")", ";", "if", "(", "oMetadata",...
Retrieves the controlType of the control @param {sap.ui.core.Control} oControl Control instance @returns {string} control type of the control - undefined if controlType cannot be determined @private
[ "Retrieves", "the", "controlType", "of", "the", "control" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L800-L808
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (ascii) { var asciiArray = ascii.split(","); var parsedString = ""; jQuery.each(asciiArray, function (index, asciiChar) { parsedString += String.fromCharCode(asciiChar); }); return parsedString; }
javascript
function (ascii) { var asciiArray = ascii.split(","); var parsedString = ""; jQuery.each(asciiArray, function (index, asciiChar) { parsedString += String.fromCharCode(asciiChar); }); return parsedString; }
[ "function", "(", "ascii", ")", "{", "var", "asciiArray", "=", "ascii", ".", "split", "(", "\",\"", ")", ";", "var", "parsedString", "=", "\"\"", ";", "jQuery", ".", "each", "(", "asciiArray", ",", "function", "(", "index", ",", "asciiChar", ")", "{", ...
Converts ASCII coding into a string. Required for restoring stored code extensions @param {String} ascii string containing ascii code valid numbers separated by ',' @returns {String} parsedString parsed string
[ "Converts", "ASCII", "coding", "into", "a", "string", ".", "Required", "for", "restoring", "stored", "code", "extensions" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L816-L826
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (string) { var ascii = ""; for (var i = 0; i < string.length; i++) { ascii += string.charCodeAt(i) + ","; } // remove last "," ascii = ascii.substring(0, ascii.length - 1); return ascii; }
javascript
function (string) { var ascii = ""; for (var i = 0; i < string.length; i++) { ascii += string.charCodeAt(i) + ","; } // remove last "," ascii = ascii.substring(0, ascii.length - 1); return ascii; }
[ "function", "(", "string", ")", "{", "var", "ascii", "=", "\"\"", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "string", ".", "length", ";", "i", "++", ")", "{", "ascii", "+=", "string", ".", "charCodeAt", "(", "i", ")", "+", "\",\"", ...
Converts a string into ASCII coding. Required for restoring stored code extensions @param {String} string string which has to be encoded @returns {String} ascii imput parsed to ascii numbers separated by ','
[ "Converts", "a", "string", "into", "ASCII", "coding", ".", "Required", "for", "restoring", "stored", "code", "extensions" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L834-L845
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(){ var oUshellContainer = Utils.getUshellContainer(); if (oUshellContainer) { var oURLParser = oUshellContainer.getService("URLParsing"); var oParsedHash = oURLParser.parseShellHash(hasher.getHash()); return oParsedHash ? oParsedHash : { }; } return { }; }
javascript
function(){ var oUshellContainer = Utils.getUshellContainer(); if (oUshellContainer) { var oURLParser = oUshellContainer.getService("URLParsing"); var oParsedHash = oURLParser.parseShellHash(hasher.getHash()); return oParsedHash ? oParsedHash : { }; } return { }; }
[ "function", "(", ")", "{", "var", "oUshellContainer", "=", "Utils", ".", "getUshellContainer", "(", ")", ";", "if", "(", "oUshellContainer", ")", "{", "var", "oURLParser", "=", "oUshellContainer", ".", "getService", "(", "\"URLParsing\"", ")", ";", "var", "o...
Returns URL hash when ushell container is available @returns {object} Returns the parsed URL hash object or an empty object if ushell container is not available
[ "Returns", "URL", "hash", "when", "ushell", "container", "is", "available" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L891-L899
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oComponent, sParameterName, aValues) { var oParsedHash = Utils.getParsedURLHash(sParameterName); if (oParsedHash.params) { hasher.changed.active = false; //disable changed signal var mTechnicalParameters = Utils.getTechnicalParametersForComponent(oComponent); // if mTechnicalParameter...
javascript
function (oComponent, sParameterName, aValues) { var oParsedHash = Utils.getParsedURLHash(sParameterName); if (oParsedHash.params) { hasher.changed.active = false; //disable changed signal var mTechnicalParameters = Utils.getTechnicalParametersForComponent(oComponent); // if mTechnicalParameter...
[ "function", "(", "oComponent", ",", "sParameterName", ",", "aValues", ")", "{", "var", "oParsedHash", "=", "Utils", ".", "getParsedURLHash", "(", "sParameterName", ")", ";", "if", "(", "oParsedHash", ".", "params", ")", "{", "hasher", ".", "changed", ".", ...
Sets the values for url hash and technical parameters for the component data. Deactivates hash based navigation while performing the operations, which is then re-activated upon completion. If the passed doesn't exist in the url hash or technical parameters, then a new object is added respectively. @param {object} oCom...
[ "Sets", "the", "values", "for", "url", "hash", "and", "technical", "parameters", "for", "the", "component", "data", ".", "Deactivates", "hash", "based", "navigation", "while", "performing", "the", "operations", "which", "is", "then", "re", "-", "activated", "u...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L910-L931
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (mPropertyBag) { var sAppVersion = mPropertyBag.appVersion; var bDeveloperMode = mPropertyBag.developerMode; var sScenario = mPropertyBag.scenario; var oValidAppVersions = { creation: sAppVersion, from: sAppVersion }; if (this._isValidAppVersionToRequired(sAppVersion, bDeveloperMode, ...
javascript
function (mPropertyBag) { var sAppVersion = mPropertyBag.appVersion; var bDeveloperMode = mPropertyBag.developerMode; var sScenario = mPropertyBag.scenario; var oValidAppVersions = { creation: sAppVersion, from: sAppVersion }; if (this._isValidAppVersionToRequired(sAppVersion, bDeveloperMode, ...
[ "function", "(", "mPropertyBag", ")", "{", "var", "sAppVersion", "=", "mPropertyBag", ".", "appVersion", ";", "var", "bDeveloperMode", "=", "mPropertyBag", ".", "developerMode", ";", "var", "sScenario", "=", "mPropertyBag", ".", "scenario", ";", "var", "oValidAp...
Generates a ValidAppVersions object for changes and variants; Depending on the parameters passed a 'to' field is included. @param {map} mPropertyBag @param {string} mPropertyBag.appVersion Version to be filled into the validAppVersions object fields @param {boolean} mPropertyBag.developerMode Flag if the creation of t...
[ "Generates", "a", "ValidAppVersions", "object", "for", "changes", "and", "variants", ";", "Depending", "on", "the", "parameters", "passed", "a", "to", "field", "is", "included", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1043-L1055
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (sAppVersion, bDeveloperMode, sScenario) { return !!sAppVersion && !!bDeveloperMode && sScenario !== sap.ui.fl.Scenario.AdaptationProject && sScenario !== sap.ui.fl.Scenario.AppVariant; }
javascript
function (sAppVersion, bDeveloperMode, sScenario) { return !!sAppVersion && !!bDeveloperMode && sScenario !== sap.ui.fl.Scenario.AdaptationProject && sScenario !== sap.ui.fl.Scenario.AppVariant; }
[ "function", "(", "sAppVersion", ",", "bDeveloperMode", ",", "sScenario", ")", "{", "return", "!", "!", "sAppVersion", "&&", "!", "!", "bDeveloperMode", "&&", "sScenario", "!==", "sap", ".", "ui", ".", "fl", ".", "Scenario", ".", "AdaptationProject", "&&", ...
Determines if a 'to' field is required in a validAppVersions object. @param sAppVersion @param bDeveloperMode @param sScenario @returns {boolean} @private
[ "Determines", "if", "a", "to", "field", "is", "required", "in", "a", "validAppVersions", "object", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1065-L1070
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oManifest) { var sUri = ""; if (oManifest){ var oSapApp = (oManifest.getEntry) ? oManifest.getEntry("sap.app") : oManifest["sap.app"]; if (oSapApp && oSapApp.dataSources && oSapApp.dataSources.mainService && oSapApp.dataSources.mainService.uri){ sUri = oSapApp.dataSources.mainService.uri; ...
javascript
function (oManifest) { var sUri = ""; if (oManifest){ var oSapApp = (oManifest.getEntry) ? oManifest.getEntry("sap.app") : oManifest["sap.app"]; if (oSapApp && oSapApp.dataSources && oSapApp.dataSources.mainService && oSapApp.dataSources.mainService.uri){ sUri = oSapApp.dataSources.mainService.uri; ...
[ "function", "(", "oManifest", ")", "{", "var", "sUri", "=", "\"\"", ";", "if", "(", "oManifest", ")", "{", "var", "oSapApp", "=", "(", "oManifest", ".", "getEntry", ")", "?", "oManifest", ".", "getEntry", "(", "\"sap.app\"", ")", ":", "oManifest", "[",...
Returns the uri of the main service specified in the app manifest @param {object} oManifest - Manifest of the component @returns {string} Returns the uri if the manifest is available, otherwise an empty string @public
[ "Returns", "the", "uri", "of", "the", "main", "service", "specified", "in", "the", "app", "manifest" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1172-L1183
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(aArray, oObject) { var iObjectIndex = -1; aArray.some(function(oArrayObject, iIndex) { var aKeysArray, aKeysObject; if (!oArrayObject) { aKeysArray = []; } else { aKeysArray = Object.keys(oArrayObject); } if (!oObject) { aKeysObject = []; } else { aKeysObject ...
javascript
function(aArray, oObject) { var iObjectIndex = -1; aArray.some(function(oArrayObject, iIndex) { var aKeysArray, aKeysObject; if (!oArrayObject) { aKeysArray = []; } else { aKeysArray = Object.keys(oArrayObject); } if (!oObject) { aKeysObject = []; } else { aKeysObject ...
[ "function", "(", "aArray", ",", "oObject", ")", "{", "var", "iObjectIndex", "=", "-", "1", ";", "aArray", ".", "some", "(", "function", "(", "oArrayObject", ",", "iIndex", ")", "{", "var", "aKeysArray", ",", "aKeysObject", ";", "if", "(", "!", "oArrayO...
Checks if an object is in an array or not and returns the index or -1 @param {object[]} aArray Array of objects @param {object} oObject object that should be part of the array @returns {int} Returns the index of the object in the array, -1 if it is not in the array @public
[ "Checks", "if", "an", "object", "is", "in", "an", "array", "or", "not", "and", "returns", "the", "index", "or", "-", "1" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1248-L1275
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(mChanges, sChangeId) { var oResult; Object.keys(mChanges).forEach(function(sControlId) { mChanges[sControlId].some(function(oChange) { if (oChange.getId() === sChangeId) { oResult = oChange; return true; } }); }); return oResult; }
javascript
function(mChanges, sChangeId) { var oResult; Object.keys(mChanges).forEach(function(sControlId) { mChanges[sControlId].some(function(oChange) { if (oChange.getId() === sChangeId) { oResult = oChange; return true; } }); }); return oResult; }
[ "function", "(", "mChanges", ",", "sChangeId", ")", "{", "var", "oResult", ";", "Object", ".", "keys", "(", "mChanges", ")", ".", "forEach", "(", "function", "(", "sControlId", ")", "{", "mChanges", "[", "sControlId", "]", ".", "some", "(", "function", ...
Function that gets a specific change from a map of changes. @param {map} mChanges Map of all changes @param {string} sChangeId Id of the change that should be retrieved @returns {sap.ui.fl.Change | undefined} Returns the change if it is in the map, otherwise undefined
[ "Function", "that", "gets", "a", "specific", "change", "from", "a", "map", "of", "changes", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1395-L1406
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(sModuleName) { //TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value return new Promise(function(fnResolve, fnReject) { sap.ui.require([sModuleName], function(oModule) { fnResolve(oModule); }, function(oError) { fnReject(oError); }); ...
javascript
function(sModuleName) { //TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value return new Promise(function(fnResolve, fnReject) { sap.ui.require([sModuleName], function(oModule) { fnResolve(oModule); }, function(oError) { fnReject(oError); }); ...
[ "function", "(", "sModuleName", ")", "{", "//TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value", "return", "new", "Promise", "(", "function", "(", "fnResolve", ",", "fnReject", ")", "{", "sap", ".", "ui", ".", "require", "(", ...
Wraps the async sap.ui.require call into a Promise. @param {string} sModuleName Name of the required module @returns {Promise} Returns a promise.
[ "Wraps", "the", "async", "sap", ".", "ui", ".", "require", "call", "into", "a", "Promise", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1413-L1423
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sPath, oItem) { if (oItem) { if (!mMap[sPath]) { mMap[sPath] = [oItem]; } else if (mMap[sPath].indexOf(oItem) < 0) { mMap[sPath].push(oItem); } } }
javascript
function (mMap, sPath, oItem) { if (oItem) { if (!mMap[sPath]) { mMap[sPath] = [oItem]; } else if (mMap[sPath].indexOf(oItem) < 0) { mMap[sPath].push(oItem); } } }
[ "function", "(", "mMap", ",", "sPath", ",", "oItem", ")", "{", "if", "(", "oItem", ")", "{", "if", "(", "!", "mMap", "[", "sPath", "]", ")", "{", "mMap", "[", "sPath", "]", "=", "[", "oItem", "]", ";", "}", "else", "if", "(", "mMap", "[", "...
Adds an item to the given map by path. @param {object} mMap A map from path to a list of items @param {string} sPath The path @param {object} [oItem] The item; if it is <code>undefined</code>, nothing happens
[ "Adds", "an", "item", "to", "the", "given", "map", "by", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L37-L45
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (aChildren, aAncestors, mChildren) { if (aAncestors.length) { aChildren.forEach(function (sPath) { var aSegments; if (aAncestors.indexOf(sPath) >= 0) { mChildren[sPath] = true; return; } aSegments = sPath.split("/"); aSegments.pop(); while (aSegments.length) {...
javascript
function (aChildren, aAncestors, mChildren) { if (aAncestors.length) { aChildren.forEach(function (sPath) { var aSegments; if (aAncestors.indexOf(sPath) >= 0) { mChildren[sPath] = true; return; } aSegments = sPath.split("/"); aSegments.pop(); while (aSegments.length) {...
[ "function", "(", "aChildren", ",", "aAncestors", ",", "mChildren", ")", "{", "if", "(", "aAncestors", ".", "length", ")", "{", "aChildren", ".", "forEach", "(", "function", "(", "sPath", ")", "{", "var", "aSegments", ";", "if", "(", "aAncestors", ".", ...
Adds all given children to the given hash set which either appear in the given list or have some ancestor in it. Note: "a/b/c" is deemed a child of the ancestors "a/b" and "a", but not "b" or "a/b/c/d". @param {string[]} aChildren - List of non-empty child paths (unmodified) @param {string[]} aAncestors - List of anc...
[ "Adds", "all", "given", "children", "to", "the", "given", "hash", "set", "which", "either", "appear", "in", "the", "given", "list", "or", "have", "some", "ancestor", "in", "it", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L58-L79
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function () { var i, sPath = "", sSegment; for (i = 0; i < arguments.length; i += 1) { sSegment = arguments[i]; if (sSegment || sSegment === 0) { if (sPath && sPath !== "/" && sSegment[0] !== "(") { sPath += "/"; } sPath += sSegment; } } return sPath; }
javascript
function () { var i, sPath = "", sSegment; for (i = 0; i < arguments.length; i += 1) { sSegment = arguments[i]; if (sSegment || sSegment === 0) { if (sPath && sPath !== "/" && sSegment[0] !== "(") { sPath += "/"; } sPath += sSegment; } } return sPath; }
[ "function", "(", ")", "{", "var", "i", ",", "sPath", "=", "\"\"", ",", "sSegment", ";", "for", "(", "i", "=", "0", ";", "i", "<", "arguments", ".", "length", ";", "i", "+=", "1", ")", "{", "sSegment", "=", "arguments", "[", "i", "]", ";", "if...
Builds a relative path from the given arguments. Iterates over the arguments and appends them to the path if defined and non-empty. The arguments are expected to be strings or integers, but this is not checked. Examples: buildPath() --> "" buildPath("base", "relative") --> "base/relative" buildPath("base", "") --> "ba...
[ "Builds", "a", "relative", "path", "from", "the", "given", "arguments", ".", "Iterates", "over", "the", "arguments", "and", "appends", "them", "to", "the", "path", "if", "defined", "and", "non", "-", "empty", ".", "The", "arguments", "are", "expected", "to...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L113-L128
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sPart, bEncodeEquals) { var sEncoded = encodeURI(sPart) .replace(rAmpersand, "%26") .replace(rHash, "%23") .replace(rPlus, "%2B"); if (bEncodeEquals) { sEncoded = sEncoded.replace(rEquals, "%3D"); } return sEncoded; }
javascript
function (sPart, bEncodeEquals) { var sEncoded = encodeURI(sPart) .replace(rAmpersand, "%26") .replace(rHash, "%23") .replace(rPlus, "%2B"); if (bEncodeEquals) { sEncoded = sEncoded.replace(rEquals, "%3D"); } return sEncoded; }
[ "function", "(", "sPart", ",", "bEncodeEquals", ")", "{", "var", "sEncoded", "=", "encodeURI", "(", "sPart", ")", ".", "replace", "(", "rAmpersand", ",", "\"%26\"", ")", ".", "replace", "(", "rHash", ",", "\"%23\"", ")", ".", "replace", "(", "rPlus", "...
Encodes a query part, either a key or a value. @param {string} sPart The query part @param {boolean} bEncodeEquals If true, "=" is encoded, too @returns {string} The encoded query part
[ "Encodes", "a", "query", "part", "either", "a", "key", "or", "a", "value", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L363-L372
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sKey, sValue) { return _Helper.encode(sKey, true) + "=" + _Helper.encode(sValue, false); }
javascript
function (sKey, sValue) { return _Helper.encode(sKey, true) + "=" + _Helper.encode(sValue, false); }
[ "function", "(", "sKey", ",", "sValue", ")", "{", "return", "_Helper", ".", "encode", "(", "sKey", ",", "true", ")", "+", "\"=\"", "+", "_Helper", ".", "encode", "(", "sValue", ",", "false", ")", ";", "}" ]
Encodes a key-value pair. @param {string} sKey The key @param {string} sValue The sValue @returns {string} The encoded key-value pair in the form "key=value"
[ "Encodes", "a", "key", "-", "value", "pair", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L384-L386
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mChangeListeners, sPropertyPath, vValue) { var aListeners = mChangeListeners[sPropertyPath], i; if (aListeners) { for (i = 0; i < aListeners.length; i += 1) { aListeners[i].onChange(vValue); } } }
javascript
function (mChangeListeners, sPropertyPath, vValue) { var aListeners = mChangeListeners[sPropertyPath], i; if (aListeners) { for (i = 0; i < aListeners.length; i += 1) { aListeners[i].onChange(vValue); } } }
[ "function", "(", "mChangeListeners", ",", "sPropertyPath", ",", "vValue", ")", "{", "var", "aListeners", "=", "mChangeListeners", "[", "sPropertyPath", "]", ",", "i", ";", "if", "(", "aListeners", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "aL...
Fires a change event to all listeners for the given path in mChangeListeners. @param {object} mChangeListeners A map of change listeners by path @param {string} sPropertyPath The path @param {any} vValue The value to report to the listeners
[ "Fires", "a", "change", "event", "to", "all", "listeners", "for", "the", "given", "path", "in", "mChangeListeners", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L395-L404
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mChangeListeners, sPath, oValue, bRemoved) { Object.keys(oValue).forEach(function (sProperty) { var sPropertyPath = _Helper.buildPath(sPath, sProperty), vValue = oValue[sProperty]; if (vValue && typeof vValue === "object") { _Helper.fireChanges(mChangeListeners, sPropertyPath, vValue, bR...
javascript
function (mChangeListeners, sPath, oValue, bRemoved) { Object.keys(oValue).forEach(function (sProperty) { var sPropertyPath = _Helper.buildPath(sPath, sProperty), vValue = oValue[sProperty]; if (vValue && typeof vValue === "object") { _Helper.fireChanges(mChangeListeners, sPropertyPath, vValue, bR...
[ "function", "(", "mChangeListeners", ",", "sPath", ",", "oValue", ",", "bRemoved", ")", "{", "Object", ".", "keys", "(", "oValue", ")", ".", "forEach", "(", "function", "(", "sProperty", ")", "{", "var", "sPropertyPath", "=", "_Helper", ".", "buildPath", ...
Iterates recursively over all properties of the given value and fires change events to all listeners. Also fires a change event for the object itself, for example in case of an advertised action. @param {object} mChangeListeners A map of change listeners by path @param {string} sPath The path of the current value @par...
[ "Iterates", "recursively", "over", "all", "properties", "of", "the", "given", "value", "and", "fires", "change", "events", "to", "all", "listeners", ".", "Also", "fires", "a", "change", "event", "for", "the", "object", "itself", "for", "example", "in", "case...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L417-L431
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (vValue, sType) { if (vValue === undefined) { throw new Error("Illegal value: undefined"); } if (vValue === null) { return "null"; } switch (sType) { case "Edm.Binary": return "binary'" + vValue + "'"; case "Edm.Boolean": case "Edm.Byte": case "Edm.Double": case "Edm...
javascript
function (vValue, sType) { if (vValue === undefined) { throw new Error("Illegal value: undefined"); } if (vValue === null) { return "null"; } switch (sType) { case "Edm.Binary": return "binary'" + vValue + "'"; case "Edm.Boolean": case "Edm.Byte": case "Edm.Double": case "Edm...
[ "function", "(", "vValue", ",", "sType", ")", "{", "if", "(", "vValue", "===", "undefined", ")", "{", "throw", "new", "Error", "(", "\"Illegal value: undefined\"", ")", ";", "}", "if", "(", "vValue", "===", "null", ")", "{", "return", "\"null\"", ";", ...
Formats a given internal value into a literal suitable for usage in URLs. @param {any} vValue The value according to "OData JSON Format Version 4.0" section "7.1 Primitive Value" @param {string} sType The OData Edm type, e.g. "Edm.String" @returns {string} The literal according to "OData Version 4.0 Part 2: URL Conven...
[ "Formats", "a", "given", "internal", "value", "into", "a", "literal", "suitable", "for", "usage", "in", "URLs", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L446-L484
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (oInstance, sMetaPath, mTypeForMetaPath) { var aFilters = [], sKey, mKey2Value = _Helper.getKeyProperties(oInstance, sMetaPath, mTypeForMetaPath); if (!mKey2Value) { return undefined; } for (sKey in mKey2Value) { aFilters.push(sKey + " eq " + mKey2Value[sKey]); } return aFil...
javascript
function (oInstance, sMetaPath, mTypeForMetaPath) { var aFilters = [], sKey, mKey2Value = _Helper.getKeyProperties(oInstance, sMetaPath, mTypeForMetaPath); if (!mKey2Value) { return undefined; } for (sKey in mKey2Value) { aFilters.push(sKey + " eq " + mKey2Value[sKey]); } return aFil...
[ "function", "(", "oInstance", ",", "sMetaPath", ",", "mTypeForMetaPath", ")", "{", "var", "aFilters", "=", "[", "]", ",", "sKey", ",", "mKey2Value", "=", "_Helper", ".", "getKeyProperties", "(", "oInstance", ",", "sMetaPath", ",", "mTypeForMetaPath", ")", ";...
Returns a filter identifying the given instance via its key properties. @param {object} oInstance Entity instance runtime data @param {string} sMetaPath The absolute meta path of the given instance @param {object} mTypeForMetaPath Maps meta paths to the corresponding entity or complex types @returns {string} A filter ...
[ "Returns", "a", "filter", "identifying", "the", "given", "instance", "via", "its", "key", "properties", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L501-L514
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (oInstance, sMetaPath, mTypeForMetaPath, bReturnAlias) { var bFailed, mKey2Value = {}; bFailed = mTypeForMetaPath[sMetaPath].$Key.some(function (vKey) { var sKey, sKeyPath, aPath, sPropertyName, oType, vValue; if (typeof vKey === "string") { sKey = sKeyPath = vKey; } else { sK...
javascript
function (oInstance, sMetaPath, mTypeForMetaPath, bReturnAlias) { var bFailed, mKey2Value = {}; bFailed = mTypeForMetaPath[sMetaPath].$Key.some(function (vKey) { var sKey, sKeyPath, aPath, sPropertyName, oType, vValue; if (typeof vKey === "string") { sKey = sKeyPath = vKey; } else { sK...
[ "function", "(", "oInstance", ",", "sMetaPath", ",", "mTypeForMetaPath", ",", "bReturnAlias", ")", "{", "var", "bFailed", ",", "mKey2Value", "=", "{", "}", ";", "bFailed", "=", "mTypeForMetaPath", "[", "sMetaPath", "]", ".", "$Key", ".", "some", "(", "func...
Returns the key properties mapped to values from the given entity using the given meta data. @param {object} oInstance Entity instance runtime data @param {string} sMetaPath The absolute meta path of the given instance @param {object} mTypeForMetaPath Maps meta paths to the corresponding entity or complex types @param...
[ "Returns", "the", "key", "properties", "mapped", "to", "values", "from", "the", "given", "entity", "using", "the", "given", "meta", "data", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L572-L604
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mQueryOptions, sPath) { sPath = sPath[0] === "(" ? _Helper.getMetaPath(sPath).slice(1) // avoid leading "/" : _Helper.getMetaPath(sPath); if (sPath) { sPath.split("/").some(function (sSegment) { mQueryOptions = mQueryOptions && mQueryOptions.$expand && mQueryOptions.$expand[sSegme...
javascript
function (mQueryOptions, sPath) { sPath = sPath[0] === "(" ? _Helper.getMetaPath(sPath).slice(1) // avoid leading "/" : _Helper.getMetaPath(sPath); if (sPath) { sPath.split("/").some(function (sSegment) { mQueryOptions = mQueryOptions && mQueryOptions.$expand && mQueryOptions.$expand[sSegme...
[ "function", "(", "mQueryOptions", ",", "sPath", ")", "{", "sPath", "=", "sPath", "[", "0", "]", "===", "\"(\"", "?", "_Helper", ".", "getMetaPath", "(", "sPath", ")", ".", "slice", "(", "1", ")", "// avoid leading \"/\"", ":", "_Helper", ".", "getMetaPat...
Returns the properties that have been selected for the given path. @param {object} [mQueryOptions] A map of query options as returned by {@link sap.ui.model.odata.v4.ODataModel#buildQueryOptions} @param {string} sPath The path of the cache value in the cache @returns {string[]} aSelect The properties that have been se...
[ "Returns", "the", "properties", "that", "have", "been", "selected", "for", "the", "given", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L650-L662
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (iNumber) { if (typeof iNumber !== "number" || !isFinite(iNumber)) { return false; } iNumber = Math.abs(iNumber); // The safe integers consist of all integers from -(2^53 - 1) inclusive to 2^53 - 1 // inclusive. // 2^53 - 1 = 9007199254740991 return iNumber <= 9007199254740991 && Math....
javascript
function (iNumber) { if (typeof iNumber !== "number" || !isFinite(iNumber)) { return false; } iNumber = Math.abs(iNumber); // The safe integers consist of all integers from -(2^53 - 1) inclusive to 2^53 - 1 // inclusive. // 2^53 - 1 = 9007199254740991 return iNumber <= 9007199254740991 && Math....
[ "function", "(", "iNumber", ")", "{", "if", "(", "typeof", "iNumber", "!==", "\"number\"", "||", "!", "isFinite", "(", "iNumber", ")", ")", "{", "return", "false", ";", "}", "iNumber", "=", "Math", ".", "abs", "(", "iNumber", ")", ";", "// The safe int...
Checks that the value is a safe integer. @param {number} iNumber The value @returns {boolean} True if the value is a safe integer
[ "Checks", "that", "the", "value", "is", "a", "safe", "integer", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L819-L828
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sUrl, sBase) { return new URI(sUrl).absoluteTo(sBase).toString() .replace(rEscapedTick, "'") .replace(rEscapedOpenBracket, "(") .replace(rEscapedCloseBracket, ")"); }
javascript
function (sUrl, sBase) { return new URI(sUrl).absoluteTo(sBase).toString() .replace(rEscapedTick, "'") .replace(rEscapedOpenBracket, "(") .replace(rEscapedCloseBracket, ")"); }
[ "function", "(", "sUrl", ",", "sBase", ")", "{", "return", "new", "URI", "(", "sUrl", ")", ".", "absoluteTo", "(", "sBase", ")", ".", "toString", "(", ")", ".", "replace", "(", "rEscapedTick", ",", "\"'\"", ")", ".", "replace", "(", "rEscapedOpenBracke...
Make the given URL absolute using the given base URL. The URLs must not contain a host or protocol part. Ensures that key predicates are not %-encoded. @param {string} sUrl The URL @param {string} sBase The base URL @returns {string} The absolute URL
[ "Make", "the", "given", "URL", "absolute", "using", "the", "given", "base", "URL", ".", "The", "URLs", "must", "not", "contain", "a", "host", "or", "protocol", "part", ".", "Ensures", "that", "key", "predicates", "are", "not", "%", "-", "encoded", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L841-L846
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sName) { var iIndex = sName.indexOf("/"); if (iIndex >= 0) { // consider only the first path segment sName = sName.slice(0, iIndex); } // now we have a qualified name, drop the last segment (the name) iIndex = sName.lastIndexOf("."); return iIndex < 0 ? "" : sName.slice(0, iIndex);...
javascript
function (sName) { var iIndex = sName.indexOf("/"); if (iIndex >= 0) { // consider only the first path segment sName = sName.slice(0, iIndex); } // now we have a qualified name, drop the last segment (the name) iIndex = sName.lastIndexOf("."); return iIndex < 0 ? "" : sName.slice(0, iIndex);...
[ "function", "(", "sName", ")", "{", "var", "iIndex", "=", "sName", ".", "indexOf", "(", "\"/\"", ")", ";", "if", "(", "iIndex", ">=", "0", ")", "{", "// consider only the first path segment", "sName", "=", "sName", ".", "slice", "(", "0", ",", "iIndex", ...
Determines the namespace of the given qualified name. @param {string} sName The qualified name @returns {string} The namespace
[ "Determines", "the", "namespace", "of", "the", "given", "qualified", "name", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L886-L897
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sLiteral, sType, sPath) { function checkNaN(nValue) { if (!isFinite(nValue)) { // this rejects NaN, Infinity, -Infinity throw new Error(sPath + ": Not a valid " + sType + " literal: " + sLiteral); } return nValue; } if (sLiteral === "null") { return null; } switch (sType...
javascript
function (sLiteral, sType, sPath) { function checkNaN(nValue) { if (!isFinite(nValue)) { // this rejects NaN, Infinity, -Infinity throw new Error(sPath + ": Not a valid " + sType + " literal: " + sLiteral); } return nValue; } if (sLiteral === "null") { return null; } switch (sType...
[ "function", "(", "sLiteral", ",", "sType", ",", "sPath", ")", "{", "function", "checkNaN", "(", "nValue", ")", "{", "if", "(", "!", "isFinite", "(", "nValue", ")", ")", "{", "// this rejects NaN, Infinity, -Infinity", "throw", "new", "Error", "(", "sPath", ...
Parses a literal to the model value. The types "Edm.Binary" and "Edm.String" are unsupported. @param {string} sLiteral The literal value @param {string} sType The type @param {string} sPath The path for this literal (for error messages) @returns {*} The model value @throws {Error} If the type is invalid or unsupported...
[ "Parses", "a", "literal", "to", "the", "model", "value", ".", "The", "types", "Edm", ".", "Binary", "and", "Edm", ".", "String", "are", "unsupported", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L910-L946
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sPath, oItem) { var aItems = mMap[sPath], iIndex; if (aItems) { iIndex = aItems.indexOf(oItem); if (iIndex >= 0) { if (aItems.length === 1) { delete mMap[sPath]; } else { aItems.splice(iIndex, 1); } } } }
javascript
function (mMap, sPath, oItem) { var aItems = mMap[sPath], iIndex; if (aItems) { iIndex = aItems.indexOf(oItem); if (iIndex >= 0) { if (aItems.length === 1) { delete mMap[sPath]; } else { aItems.splice(iIndex, 1); } } } }
[ "function", "(", "mMap", ",", "sPath", ",", "oItem", ")", "{", "var", "aItems", "=", "mMap", "[", "sPath", "]", ",", "iIndex", ";", "if", "(", "aItems", ")", "{", "iIndex", "=", "aItems", ".", "indexOf", "(", "oItem", ")", ";", "if", "(", "iIndex...
Removes an item from the given map by path. @param {object} mMap A map from path to a list of items @param {string} sPath The path @param {object} oItem The item
[ "Removes", "an", "item", "from", "the", "given", "map", "by", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L977-L991
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mHeaders) { var vIfMatchValue = mHeaders && mHeaders["If-Match"]; if (vIfMatchValue && typeof vIfMatchValue === "object") { vIfMatchValue = vIfMatchValue["@odata.etag"]; mHeaders = Object.assign({}, mHeaders); if (vIfMatchValue === undefined) { delete mHeaders["If-Match"]; } else {...
javascript
function (mHeaders) { var vIfMatchValue = mHeaders && mHeaders["If-Match"]; if (vIfMatchValue && typeof vIfMatchValue === "object") { vIfMatchValue = vIfMatchValue["@odata.etag"]; mHeaders = Object.assign({}, mHeaders); if (vIfMatchValue === undefined) { delete mHeaders["If-Match"]; } else {...
[ "function", "(", "mHeaders", ")", "{", "var", "vIfMatchValue", "=", "mHeaders", "&&", "mHeaders", "[", "\"If-Match\"", "]", ";", "if", "(", "vIfMatchValue", "&&", "typeof", "vIfMatchValue", "===", "\"object\"", ")", "{", "vIfMatchValue", "=", "vIfMatchValue", ...
Resolves the "If-Match" header in the given map of request-specific headers. For lazy determination of the ETag, the "If-Match" header may contain an object containing the current ETag. If needed create a copy of the given map and replace the value of the "If-Match" header by the current ETag. @param {object} [mHeader...
[ "Resolves", "the", "If", "-", "Match", "header", "in", "the", "given", "map", "of", "request", "-", "specific", "headers", ".", "For", "lazy", "determination", "of", "the", "ETag", "the", "If", "-", "Match", "header", "may", "contain", "an", "object", "c...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L1004-L1017
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (oObject, sAnnotation, vValue) { var oPrivateNamespace = oObject["@$ui5._"]; if (!oPrivateNamespace) { oPrivateNamespace = oObject["@$ui5._"] = {}; } oPrivateNamespace[sAnnotation] = vValue; }
javascript
function (oObject, sAnnotation, vValue) { var oPrivateNamespace = oObject["@$ui5._"]; if (!oPrivateNamespace) { oPrivateNamespace = oObject["@$ui5._"] = {}; } oPrivateNamespace[sAnnotation] = vValue; }
[ "function", "(", "oObject", ",", "sAnnotation", ",", "vValue", ")", "{", "var", "oPrivateNamespace", "=", "oObject", "[", "\"@$ui5._\"", "]", ";", "if", "(", "!", "oPrivateNamespace", ")", "{", "oPrivateNamespace", "=", "oObject", "[", "\"@$ui5._\"", "]", "=...
Sets the new value of the private client-side instance annotation with the given unqualified name at the given object. @param {object} oObject Any object @param {string} sAnnotation The unqualified name of a private client-side instance annotation (hidden inside namespace "@$ui5._") @param {any} vValue The annotation'...
[ "Sets", "the", "new", "value", "of", "the", "private", "client", "-", "side", "instance", "annotation", "with", "the", "given", "unqualified", "name", "at", "the", "given", "object", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L1050-L1057
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sTransientPredicate, sPredicate) { var sPath; for (sPath in mMap) { if (sPath.includes(sTransientPredicate)) { // A path may contain multiple different transient predicates ($uid=...) but a // certain transient predicate can only be once in the path and cannot collide // with a...
javascript
function (mMap, sTransientPredicate, sPredicate) { var sPath; for (sPath in mMap) { if (sPath.includes(sTransientPredicate)) { // A path may contain multiple different transient predicates ($uid=...) but a // certain transient predicate can only be once in the path and cannot collide // with a...
[ "function", "(", "mMap", ",", "sTransientPredicate", ",", "sPredicate", ")", "{", "var", "sPath", ";", "for", "(", "sPath", "in", "mMap", ")", "{", "if", "(", "sPath", ".", "includes", "(", "sTransientPredicate", ")", ")", "{", "// A path may contain multipl...
Updates certain transient paths from the given map, replacing the given transient predicate with the given key predicate. @param {object} mMap A map from path to anything @param {string} sTransientPredicate A (temporary) key predicate for the transient entity: "($uid=...)" @param {string} sPredicate The key predicate
[ "Updates", "certain", "transient", "paths", "from", "the", "given", "map", "replacing", "the", "given", "transient", "predicate", "with", "the", "given", "key", "predicate", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L1291-L1305
train
SAP/openui5
src/sap.uxap/src/sap/uxap/component/ObjectPageComponentContainer.js
function () { var oObjectPageLayoutInstance = null; if (this._oComponent && this._oComponent._oView) { oObjectPageLayoutInstance = this._oComponent._oView.byId("ObjectPageLayout"); } else { Log.error("ObjectPageComponentContainer :: cannot find children ObjectPageLayout, has it been rendered alrea...
javascript
function () { var oObjectPageLayoutInstance = null; if (this._oComponent && this._oComponent._oView) { oObjectPageLayoutInstance = this._oComponent._oView.byId("ObjectPageLayout"); } else { Log.error("ObjectPageComponentContainer :: cannot find children ObjectPageLayout, has it been rendered alrea...
[ "function", "(", ")", "{", "var", "oObjectPageLayoutInstance", "=", "null", ";", "if", "(", "this", ".", "_oComponent", "&&", "this", ".", "_oComponent", ".", "_oView", ")", "{", "oObjectPageLayoutInstance", "=", "this", ".", "_oComponent", ".", "_oView", "....
Returns the instantiated objectPageLayout for further api manipulations or null if not not rendered already. @returns {sap.uxap.ObjectPageLayout} Layout instanse
[ "Returns", "the", "instantiated", "objectPageLayout", "for", "further", "api", "manipulations", "or", "null", "if", "not", "not", "rendered", "already", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.uxap/src/sap/uxap/component/ObjectPageComponentContainer.js#L59-L68
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/ODataBinding.js
ODataBinding
function ODataBinding() { // maps a canonical path of a quasi-absolute or relative binding to a cache object that may // be reused this.mCacheByResourcePath = undefined; this.oCachePromise = SyncPromise.resolve(); this.mCacheQueryOptions = undefined; // used to create cache only for the latest call to #fetc...
javascript
function ODataBinding() { // maps a canonical path of a quasi-absolute or relative binding to a cache object that may // be reused this.mCacheByResourcePath = undefined; this.oCachePromise = SyncPromise.resolve(); this.mCacheQueryOptions = undefined; // used to create cache only for the latest call to #fetc...
[ "function", "ODataBinding", "(", ")", "{", "// maps a canonical path of a quasi-absolute or relative binding to a cache object that may", "// be reused", "this", ".", "mCacheByResourcePath", "=", "undefined", ";", "this", ".", "oCachePromise", "=", "SyncPromise", ".", "resolve"...
A mixin for all OData V4 bindings. @alias sap.ui.model.odata.v4.ODataBinding @mixin
[ "A", "mixin", "for", "all", "OData", "V4", "bindings", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/ODataBinding.js#L27-L37
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableDragAndDropExtension.js
function(oDragSession, oSessionData, sKey) { oDragSession.setComplexData(SESSION_DATA_KEY_NAMESPACE + (sKey == null ? "" : "-" + sKey), oSessionData); }
javascript
function(oDragSession, oSessionData, sKey) { oDragSession.setComplexData(SESSION_DATA_KEY_NAMESPACE + (sKey == null ? "" : "-" + sKey), oSessionData); }
[ "function", "(", "oDragSession", ",", "oSessionData", ",", "sKey", ")", "{", "oDragSession", ".", "setComplexData", "(", "SESSION_DATA_KEY_NAMESPACE", "+", "(", "sKey", "==", "null", "?", "\"\"", ":", "\"-\"", "+", "sKey", ")", ",", "oSessionData", ")", ";",...
Sets the session data to the drag session. To set the session data that is shared by all table instances, do not specify a key. @param {Object} oDragSession The drag session. @param {any} oSessionData The session data. @param {string} [sKey=undefined] The key of the session data.
[ "Sets", "the", "session", "data", "to", "the", "drag", "session", ".", "To", "set", "the", "session", "data", "that", "is", "shared", "by", "all", "table", "instances", "do", "not", "specify", "a", "key", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableDragAndDropExtension.js#L33-L35
train
SAP/openui5
src/sap.ui.layout/src/sap/ui/layout/cssgrid/VirtualGrid.js
expandVertically
function expandVertically() { var growWith = 0; for (var i = 0; i < this.virtualGridMatrix.length; i++) { if (this.virtualGridMatrix[i][0] !== 0) { growWith++; } } if (growWith > 0) { this.addEmptyRows(growWith); } }
javascript
function expandVertically() { var growWith = 0; for (var i = 0; i < this.virtualGridMatrix.length; i++) { if (this.virtualGridMatrix[i][0] !== 0) { growWith++; } } if (growWith > 0) { this.addEmptyRows(growWith); } }
[ "function", "expandVertically", "(", ")", "{", "var", "growWith", "=", "0", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "this", ".", "virtualGridMatrix", ".", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "virtualGridMatrix", ...
Add empty rows at bottom of the virtual grid.
[ "Add", "empty", "rows", "at", "bottom", "of", "the", "virtual", "grid", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.layout/src/sap/ui/layout/cssgrid/VirtualGrid.js#L14-L24
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableRenderer.js
collectHeaderSpans
function collectHeaderSpans(oColumn, index, aCols) { var colSpan = TableUtils.Column.getHeaderSpan(oColumn, iRow), iColIndex; if (nSpan < 1) { if (colSpan > 1) { // In case when a user makes some of the underlying columns invisible, adjust colspan iColIndex = oColumn.getIndex(); colSpan = ...
javascript
function collectHeaderSpans(oColumn, index, aCols) { var colSpan = TableUtils.Column.getHeaderSpan(oColumn, iRow), iColIndex; if (nSpan < 1) { if (colSpan > 1) { // In case when a user makes some of the underlying columns invisible, adjust colspan iColIndex = oColumn.getIndex(); colSpan = ...
[ "function", "collectHeaderSpans", "(", "oColumn", ",", "index", ",", "aCols", ")", "{", "var", "colSpan", "=", "TableUtils", ".", "Column", ".", "getHeaderSpan", "(", "oColumn", ",", "iRow", ")", ",", "iColIndex", ";", "if", "(", "nSpan", "<", "1", ")", ...
collect header spans and find the last visible column header
[ "collect", "header", "spans", "and", "find", "the", "last", "visible", "column", "header" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableRenderer.js#L992-L1012
train
SAP/openui5
src/sap.m/src/sap/m/MenuButton.js
isForbiddenType
function isForbiddenType(sType) { var aTypes = [ButtonType.Up, ButtonType.Back, ButtonType.Unstyled]; return aTypes.indexOf(sType) !== -1; }
javascript
function isForbiddenType(sType) { var aTypes = [ButtonType.Up, ButtonType.Back, ButtonType.Unstyled]; return aTypes.indexOf(sType) !== -1; }
[ "function", "isForbiddenType", "(", "sType", ")", "{", "var", "aTypes", "=", "[", "ButtonType", ".", "Up", ",", "ButtonType", ".", "Back", ",", "ButtonType", ".", "Unstyled", "]", ";", "return", "aTypes", ".", "indexOf", "(", "sType", ")", "!==", "-", ...
Several button type property values are not allowed
[ "Several", "button", "type", "property", "values", "are", "not", "allowed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/MenuButton.js#L528-L531
train
SAP/openui5
src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js
_applyTriggerHook
function _applyTriggerHook(sEventType) { if (!jQuery.event.special[sEventType]) { jQuery.event.special[sEventType] = {}; } var oSpecialEvent = jQuery.event.special[sEventType], originalTriggerHook = oSpecialEvent.trigger; oSpecialEvent.trigger = fnTriggerHook; return originalTriggerHook; }
javascript
function _applyTriggerHook(sEventType) { if (!jQuery.event.special[sEventType]) { jQuery.event.special[sEventType] = {}; } var oSpecialEvent = jQuery.event.special[sEventType], originalTriggerHook = oSpecialEvent.trigger; oSpecialEvent.trigger = fnTriggerHook; return originalTriggerHook; }
[ "function", "_applyTriggerHook", "(", "sEventType", ")", "{", "if", "(", "!", "jQuery", ".", "event", ".", "special", "[", "sEventType", "]", ")", "{", "jQuery", ".", "event", ".", "special", "[", "sEventType", "]", "=", "{", "}", ";", "}", "var", "o...
Register special jQuery.trigger event hook
[ "Register", "special", "jQuery", ".", "trigger", "event", "hook" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js#L52-L62
train
SAP/openui5
src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js
suppressTriggeredEvent
function suppressTriggeredEvent(sEventType, oDomRef, aExcludedDomRefs) { var mEventInfo = mTriggerEventInfo[sEventType]; var sId = uid(); if (!mEventInfo) { mEventInfo = mTriggerEventInfo[sEventType] = { domRefs: {}, originalTriggerHook: _applyTriggerHook(sEventType) }; } mEventInfo.domRefs[sI...
javascript
function suppressTriggeredEvent(sEventType, oDomRef, aExcludedDomRefs) { var mEventInfo = mTriggerEventInfo[sEventType]; var sId = uid(); if (!mEventInfo) { mEventInfo = mTriggerEventInfo[sEventType] = { domRefs: {}, originalTriggerHook: _applyTriggerHook(sEventType) }; } mEventInfo.domRefs[sI...
[ "function", "suppressTriggeredEvent", "(", "sEventType", ",", "oDomRef", ",", "aExcludedDomRefs", ")", "{", "var", "mEventInfo", "=", "mTriggerEventInfo", "[", "sEventType", "]", ";", "var", "sId", "=", "uid", "(", ")", ";", "if", "(", "!", "mEventInfo", ")"...
Suppress jQuery.trigger events for a given DOM element mTriggerEventInfo example: mTriggerEventInfo: { 'EventType': { domRefs: { 'DomRefId': { domRef: 'DomRef', excludedDomRefs: aDomRefs } }, hookApplied: 'boolean' originalTriggerHook: 'fnHook' } } @param {string} sEventType Event type to suppress jQuery.trigger for...
[ "Suppress", "jQuery", ".", "trigger", "events", "for", "a", "given", "DOM", "element" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js#L88-L108
train
SAP/openui5
src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js
releaseTriggeredEvent
function releaseTriggeredEvent(oHandler) { if (!oHandler) { Log.error("Release trigger events must not be called without passing a valid handler!"); return; } var mEventInfo = mTriggerEventInfo[oHandler.type]; if (!mEventInfo) { return; } else if (!mEventInfo.domRefs[oHandler.id] || !mEventInfo.dom...
javascript
function releaseTriggeredEvent(oHandler) { if (!oHandler) { Log.error("Release trigger events must not be called without passing a valid handler!"); return; } var mEventInfo = mTriggerEventInfo[oHandler.type]; if (!mEventInfo) { return; } else if (!mEventInfo.domRefs[oHandler.id] || !mEventInfo.dom...
[ "function", "releaseTriggeredEvent", "(", "oHandler", ")", "{", "if", "(", "!", "oHandler", ")", "{", "Log", ".", "error", "(", "\"Release trigger events must not be called without passing a valid handler!\"", ")", ";", "return", ";", "}", "var", "mEventInfo", "=", ...
Stop suppressing jQuery.trigger events for a given DOM element @param {Object} oHandler The suppression handler @private
[ "Stop", "suppressing", "jQuery", ".", "trigger", "events", "for", "a", "given", "DOM", "element" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js#L116-L132
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js
fetchIndex
function fetchIndex() { return new Promise(function(resolve, reject) { var oIndex = oIndexCache["index"], oSerializedIndex; if (oIndex) { resolve(oIndex); return; } var req = new XMLHttpRequest(), onload = function (oEvent) { oSerializedIndex = oEvent.target.response || oEvent.t...
javascript
function fetchIndex() { return new Promise(function(resolve, reject) { var oIndex = oIndexCache["index"], oSerializedIndex; if (oIndex) { resolve(oIndex); return; } var req = new XMLHttpRequest(), onload = function (oEvent) { oSerializedIndex = oEvent.target.response || oEvent.t...
[ "function", "fetchIndex", "(", ")", "{", "return", "new", "Promise", "(", "function", "(", "resolve", ",", "reject", ")", "{", "var", "oIndex", "=", "oIndexCache", "[", "\"index\"", "]", ",", "oSerializedIndex", ";", "if", "(", "oIndex", ")", "{", "resol...
Obtains the index via network request or from cache @returns {Promise<any>}
[ "Obtains", "the", "index", "via", "network", "request", "or", "from", "cache" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js#L106-L149
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js
searchIndex
function searchIndex(sQuery) { sQuery = preprocessQuery(sQuery); return new Promise(function(resolve, reject) { fetchIndex().then(function(oIndex) { var aSearchResults, oSearchResultsCollector = new SearchResultCollector(); function searchByField(sFieldToSearch, sSubQuery, bReturnMatchedDocWord...
javascript
function searchIndex(sQuery) { sQuery = preprocessQuery(sQuery); return new Promise(function(resolve, reject) { fetchIndex().then(function(oIndex) { var aSearchResults, oSearchResultsCollector = new SearchResultCollector(); function searchByField(sFieldToSearch, sSubQuery, bReturnMatchedDocWord...
[ "function", "searchIndex", "(", "sQuery", ")", "{", "sQuery", "=", "preprocessQuery", "(", "sQuery", ")", ";", "return", "new", "Promise", "(", "function", "(", "resolve", ",", "reject", ")", "{", "fetchIndex", "(", ")", ".", "then", "(", "function", "("...
Searches the index, given a search string @param sQuery, the search string @returns {Promise<any>}
[ "Searches", "the", "index", "given", "a", "search", "string" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js#L158-L200
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js
overrideLunrTokenizer
function overrideLunrTokenizer() { var origTokenizer = lunr.tokenizer; var rSeparators = /[-./#_,;\(\)=><|]/g; lunr.tokenizer = function(str) { return origTokenizer.call(lunr, str).reduce( function (result, token) { if ( rSeparators.test(token) ) { token = token.replace(rSeparators, " "); resul...
javascript
function overrideLunrTokenizer() { var origTokenizer = lunr.tokenizer; var rSeparators = /[-./#_,;\(\)=><|]/g; lunr.tokenizer = function(str) { return origTokenizer.call(lunr, str).reduce( function (result, token) { if ( rSeparators.test(token) ) { token = token.replace(rSeparators, " "); resul...
[ "function", "overrideLunrTokenizer", "(", ")", "{", "var", "origTokenizer", "=", "lunr", ".", "tokenizer", ";", "var", "rSeparators", "=", "/", "[-./#_,;\\(\\)=><|]", "/", "g", ";", "lunr", ".", "tokenizer", "=", "function", "(", "str", ")", "{", "return", ...
overrides the lunr tokenizer in order to define custom token separators
[ "overrides", "the", "lunr", "tokenizer", "in", "order", "to", "define", "custom", "token", "separators" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js#L231-L250
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js
getObjectValues
function getObjectValues(oObject) { var aKeys = Object.keys(oObject), aValues = []; aKeys.forEach(function(sKey) { aValues.push(oObject[sKey]); }); return aValues; }
javascript
function getObjectValues(oObject) { var aKeys = Object.keys(oObject), aValues = []; aKeys.forEach(function(sKey) { aValues.push(oObject[sKey]); }); return aValues; }
[ "function", "getObjectValues", "(", "oObject", ")", "{", "var", "aKeys", "=", "Object", ".", "keys", "(", "oObject", ")", ",", "aValues", "=", "[", "]", ";", "aKeys", ".", "forEach", "(", "function", "(", "sKey", ")", "{", "aValues", ".", "push", "("...
Polyfill for Object.values as original Object.values is N/A on IE @param oObject @returns {Array}
[ "Polyfill", "for", "Object", ".", "values" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js#L467-L476
train
SAP/openui5
src/sap.f/src/sap/f/routing/Targets.js
function (oTarget) { var iViewLevel; do { iViewLevel = oTarget._oOptions.viewLevel; if (iViewLevel !== undefined) { return iViewLevel; } oTarget = oTarget._oParent; } while (oTarget); return iViewLevel; }
javascript
function (oTarget) { var iViewLevel; do { iViewLevel = oTarget._oOptions.viewLevel; if (iViewLevel !== undefined) { return iViewLevel; } oTarget = oTarget._oParent; } while (oTarget); return iViewLevel; }
[ "function", "(", "oTarget", ")", "{", "var", "iViewLevel", ";", "do", "{", "iViewLevel", "=", "oTarget", ".", "_oOptions", ".", "viewLevel", ";", "if", "(", "iViewLevel", "!==", "undefined", ")", "{", "return", "iViewLevel", ";", "}", "oTarget", "=", "oT...
Traverse up from the given target through the parent chain to find out the first target with a defined view level. @param {sap.f.routing.Target} oTarget The target from which the traverse starts to find the first defined view level @return {number} The view level @private
[ "Traverse", "up", "from", "the", "given", "target", "through", "the", "parent", "chain", "to", "find", "out", "the", "first", "target", "with", "a", "defined", "view", "level", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/routing/Targets.js#L392-L403
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableGrouping.js
function(oTable, vRowIndex, bExpand) { var aIndices = []; var oBinding = oTable ? oTable.getBinding("rows") : null; if (!oTable || !oBinding || !oBinding.expand || vRowIndex == null) { return null; } if (typeof vRowIndex === "number") { aIndices = [vRowIndex]; } else if (Array.isArray(vRowIn...
javascript
function(oTable, vRowIndex, bExpand) { var aIndices = []; var oBinding = oTable ? oTable.getBinding("rows") : null; if (!oTable || !oBinding || !oBinding.expand || vRowIndex == null) { return null; } if (typeof vRowIndex === "number") { aIndices = [vRowIndex]; } else if (Array.isArray(vRowIn...
[ "function", "(", "oTable", ",", "vRowIndex", ",", "bExpand", ")", "{", "var", "aIndices", "=", "[", "]", ";", "var", "oBinding", "=", "oTable", "?", "oTable", ".", "getBinding", "(", "\"rows\"", ")", ":", "null", ";", "if", "(", "!", "oTable", "||", ...
Toggles or sets the expanded state of a single or multiple rows. Toggling only works for a single row. @param {sap.ui.table.Table} oTable Instance of the table. @param {int | int[]} vRowIndex A single index, or an array of indices of the rows to expand or collapse. @param {boolean} [bExpand] If defined, instead of tog...
[ "Toggles", "or", "sets", "the", "expanded", "state", "of", "a", "single", "or", "multiple", "rows", ".", "Toggling", "only", "works", "for", "a", "single", "row", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableGrouping.js#L113-L184
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableGrouping.js
function(oCellRef) { var oInfo = TableGrouping.TableUtils.getCellInfo(oCellRef); if (oInfo.isOfType(TableGrouping.TableUtils.CELLTYPE.DATACELL)) { return oInfo.cell.parent().hasClass("sapUiTableGroupHeader"); } else if (oInfo.isOfType(TableGrouping.TableUtils.CELLTYPE.ROWHEADER | TableGrouping.TableUtils....
javascript
function(oCellRef) { var oInfo = TableGrouping.TableUtils.getCellInfo(oCellRef); if (oInfo.isOfType(TableGrouping.TableUtils.CELLTYPE.DATACELL)) { return oInfo.cell.parent().hasClass("sapUiTableGroupHeader"); } else if (oInfo.isOfType(TableGrouping.TableUtils.CELLTYPE.ROWHEADER | TableGrouping.TableUtils....
[ "function", "(", "oCellRef", ")", "{", "var", "oInfo", "=", "TableGrouping", ".", "TableUtils", ".", "getCellInfo", "(", "oCellRef", ")", ";", "if", "(", "oInfo", ".", "isOfType", "(", "TableGrouping", ".", "TableUtils", ".", "CELLTYPE", ".", "DATACELL", "...
Returns whether the given cell is located in a group header. @param {jQuery | HTMLElement} oCellRef DOM reference of table cell. @returns {boolean} Whether the element is in a group header row.
[ "Returns", "whether", "the", "given", "cell", "is", "located", "in", "a", "group", "header", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableGrouping.js#L231-L241
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableGrouping.js
function(oTable, iLevel, bChildren, bSum) { var iIndent = 0; var i; if (oTable.isA("sap.ui.table.TreeTable")) { for (i = 0; i < iLevel; i++) { iIndent = iIndent + (i < 2 ? 12 : 8); } } else if (oTable.isA("sap.ui.table.AnalyticalTable")) { iLevel = iLevel - 1; iLevel = !bChildren && !b...
javascript
function(oTable, iLevel, bChildren, bSum) { var iIndent = 0; var i; if (oTable.isA("sap.ui.table.TreeTable")) { for (i = 0; i < iLevel; i++) { iIndent = iIndent + (i < 2 ? 12 : 8); } } else if (oTable.isA("sap.ui.table.AnalyticalTable")) { iLevel = iLevel - 1; iLevel = !bChildren && !b...
[ "function", "(", "oTable", ",", "iLevel", ",", "bChildren", ",", "bSum", ")", "{", "var", "iIndent", "=", "0", ";", "var", "i", ";", "if", "(", "oTable", ".", "isA", "(", "\"sap.ui.table.TreeTable\"", ")", ")", "{", "for", "(", "i", "=", "0", ";", ...
Computes the indents of the rows. @param {sap.ui.table.Table} oTable Instance of the table. @param {number} iLevel The hierarchy level. @param {boolean} bChildren Whether the row is a group (has children). @param {boolean} bSum Whether the row is a summary row. @returns {int} The indentation level. @private
[ "Computes", "the", "indents", "of", "the", "rows", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableGrouping.js#L284-L311
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableGrouping.js
function(oTable, $Row, $RowHdr, iIndent) { var bRTL = oTable._bRtlMode, $FirstCellContentInRow = $Row.find("td.sapUiTableCellFirst > .sapUiTableCellInner"), $Shield = $RowHdr.find(".sapUiTableGroupShield"); if (iIndent <= 0) { // No indent -> Remove custom manipulations (see else) $RowHdr.css(bRT...
javascript
function(oTable, $Row, $RowHdr, iIndent) { var bRTL = oTable._bRtlMode, $FirstCellContentInRow = $Row.find("td.sapUiTableCellFirst > .sapUiTableCellInner"), $Shield = $RowHdr.find(".sapUiTableGroupShield"); if (iIndent <= 0) { // No indent -> Remove custom manipulations (see else) $RowHdr.css(bRT...
[ "function", "(", "oTable", ",", "$Row", ",", "$RowHdr", ",", "iIndent", ")", "{", "var", "bRTL", "=", "oTable", ".", "_bRtlMode", ",", "$FirstCellContentInRow", "=", "$Row", ".", "find", "(", "\"td.sapUiTableCellFirst > .sapUiTableCellInner\"", ")", ",", "$Shiel...
Applies or removes the given indents on the given row elements. @param {sap.ui.table.Table} oTable Instance of the table. @param {jQuery} $Row jQuery representation of the row elements. @param {jQuery} $RowHdr jQuery representation of the row header elements. @param {int} iIndent The indent (in px) which should be app...
[ "Applies", "or", "removes", "the", "given", "indents", "on", "the", "given", "row", "elements", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableGrouping.js#L322-L339
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableGrouping.js
function(oTable, oRow, bChildren, bExpanded, bHidden, bSum, iLevel, sGroupHeaderText) { var oDomRefs = oRow.getDomRefs(true), $Row = oDomRefs.row, $ScrollRow = oDomRefs.rowScrollPart, $FixedRow = oDomRefs.rowFixedPart, $RowHdr = oDomRefs.rowSelector, $RowAct = oDomRefs.rowAction; $Row.attr({ ...
javascript
function(oTable, oRow, bChildren, bExpanded, bHidden, bSum, iLevel, sGroupHeaderText) { var oDomRefs = oRow.getDomRefs(true), $Row = oDomRefs.row, $ScrollRow = oDomRefs.rowScrollPart, $FixedRow = oDomRefs.rowFixedPart, $RowHdr = oDomRefs.rowSelector, $RowAct = oDomRefs.rowAction; $Row.attr({ ...
[ "function", "(", "oTable", ",", "oRow", ",", "bChildren", ",", "bExpanded", ",", "bHidden", ",", "bSum", ",", "iLevel", ",", "sGroupHeaderText", ")", "{", "var", "oDomRefs", "=", "oRow", ".", "getDomRefs", "(", "true", ")", ",", "$Row", "=", "oDomRefs", ...
Updates the dom of the given row depending on the given parameters. @param {sap.ui.table.Table} oTable Instance of the table. @param {sap.ui.table.Row} oRow Instance of the row. @param {boolean} bChildren Whether the row is a group (has children). @param {boolean} bExpanded Whether the row should be expanded. @param {...
[ "Updates", "the", "dom", "of", "the", "given", "row", "depending", "on", "the", "given", "parameters", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableGrouping.js#L353-L414
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableGrouping.js
function(oTable) { var oBinding = oTable.getBinding("rows"); if (oBinding && oBinding._modified) { TableGrouping.clearMode(oTable); var oBindingInfo = oTable.getBindingInfo("rows"); oTable.unbindRows(); oTable.bindRows(oBindingInfo); } }
javascript
function(oTable) { var oBinding = oTable.getBinding("rows"); if (oBinding && oBinding._modified) { TableGrouping.clearMode(oTable); var oBindingInfo = oTable.getBindingInfo("rows"); oTable.unbindRows(); oTable.bindRows(oBindingInfo); } }
[ "function", "(", "oTable", ")", "{", "var", "oBinding", "=", "oTable", ".", "getBinding", "(", "\"rows\"", ")", ";", "if", "(", "oBinding", "&&", "oBinding", ".", "_modified", ")", "{", "TableGrouping", ".", "clearMode", "(", "oTable", ")", ";", "var", ...
Cleans up the experimental grouping for sap.ui.table.Table. @param {sap.ui.table.Table} oTable Instance of the table.
[ "Cleans", "up", "the", "experimental", "grouping", "for", "sap", ".", "ui", ".", "table", ".", "Table", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableGrouping.js#L681-L689
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/util/serializer/ViewSerializer.js
function (oEvent) { // both xml and html view write this ui5 internal property for the serializer if (oEvent.fFunction && oEvent.fFunction._sapui_handlerName) { var sHandlerName = oEvent.fFunction._sapui_handlerName; // double check that the function is on the controller var oController = oView.getC...
javascript
function (oEvent) { // both xml and html view write this ui5 internal property for the serializer if (oEvent.fFunction && oEvent.fFunction._sapui_handlerName) { var sHandlerName = oEvent.fFunction._sapui_handlerName; // double check that the function is on the controller var oController = oView.getC...
[ "function", "(", "oEvent", ")", "{", "// both xml and html view write this ui5 internal property for the serializer", "if", "(", "oEvent", ".", "fFunction", "&&", "oEvent", ".", "fFunction", ".", "_sapui_handlerName", ")", "{", "var", "sHandlerName", "=", "oEvent", ".",...
a function to find the event handler name for an event
[ "a", "function", "to", "find", "the", "event", "handler", "name", "for", "an", "event" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/serializer/ViewSerializer.js#L142-L162
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/util/serializer/ViewSerializer.js
function (oControl) { // Allow specification of desired controlId as changing ids later on is not possible //This has to be the view relative ID if (oControl._sapui_controlId) { return oControl._sapui_controlId; } return oControl.getId().replace(oView.createId(""), ""); }
javascript
function (oControl) { // Allow specification of desired controlId as changing ids later on is not possible //This has to be the view relative ID if (oControl._sapui_controlId) { return oControl._sapui_controlId; } return oControl.getId().replace(oView.createId(""), ""); }
[ "function", "(", "oControl", ")", "{", "// Allow specification of desired controlId as changing ids later on is not possible", "//This has to be the view relative ID", "if", "(", "oControl", ".", "_sapui_controlId", ")", "{", "return", "oControl", ".", "_sapui_controlId", ";", ...
a function to compute the control id
[ "a", "function", "to", "compute", "the", "control", "id" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/serializer/ViewSerializer.js#L165-L172
train
SAP/openui5
src/sap.ui.integration/src/sap-ui-integration.js
boot
function boot() { if (window.sap && window.sap.ui && window.sap.ui.getCore) { coreInstance = window.sap.ui.getCore(); return initTags(); } window.sap.ui.require(['/ui5loader-autoconfig', 'sap/ui/core/Core', 'sap/ui/integration/util/CustomElements'], function (config, Core, CE) { CustomElements = CE; ...
javascript
function boot() { if (window.sap && window.sap.ui && window.sap.ui.getCore) { coreInstance = window.sap.ui.getCore(); return initTags(); } window.sap.ui.require(['/ui5loader-autoconfig', 'sap/ui/core/Core', 'sap/ui/integration/util/CustomElements'], function (config, Core, CE) { CustomElements = CE; ...
[ "function", "boot", "(", ")", "{", "if", "(", "window", ".", "sap", "&&", "window", ".", "sap", ".", "ui", "&&", "window", ".", "sap", ".", "ui", ".", "getCore", ")", "{", "coreInstance", "=", "window", ".", "sap", ".", "ui", ".", "getCore", "(",...
initialize the loader
[ "initialize", "the", "loader" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.integration/src/sap-ui-integration.js#L110-L127
train
SAP/openui5
src/sap.ui.demokit/src/sap/ui/demokit/explored/view/base.controller.js
function () { var sJson = this._oStorage.get(this._sStorageKey); if (!sJson) { // local storage is empty, apply defaults this._oViewSettings = this._oDefaultSettings; } else { // parse this._oViewSettings = JSON.parse(sJson); // clean filter and remove values that do not exist any longe...
javascript
function () { var sJson = this._oStorage.get(this._sStorageKey); if (!sJson) { // local storage is empty, apply defaults this._oViewSettings = this._oDefaultSettings; } else { // parse this._oViewSettings = JSON.parse(sJson); // clean filter and remove values that do not exist any longe...
[ "function", "(", ")", "{", "var", "sJson", "=", "this", ".", "_oStorage", ".", "get", "(", "this", ".", "_sStorageKey", ")", ";", "if", "(", "!", "sJson", ")", "{", "// local storage is empty, apply defaults", "this", ".", "_oViewSettings", "=", "this", "....
Inits the view settings. At first local storage is checked. If this is empty defaults are applied.
[ "Inits", "the", "view", "settings", ".", "At", "first", "local", "storage", "is", "checked", ".", "If", "this", "is", "empty", "defaults", "are", "applied", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.demokit/src/sap/ui/demokit/explored/view/base.controller.js#L56-L118
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js
function(oTable) { var oScrollExtension = oTable._getScrollExtension(); var oHSb = oScrollExtension.getHorizontalScrollbar(); if (oHSb && internal(oTable).iHorizontalScrollPosition !== null) { var aScrollTargets = HorizontalScrollingHelper.getScrollAreas(oTable); for (var i = 0; i < aScrollTargets.le...
javascript
function(oTable) { var oScrollExtension = oTable._getScrollExtension(); var oHSb = oScrollExtension.getHorizontalScrollbar(); if (oHSb && internal(oTable).iHorizontalScrollPosition !== null) { var aScrollTargets = HorizontalScrollingHelper.getScrollAreas(oTable); for (var i = 0; i < aScrollTargets.le...
[ "function", "(", "oTable", ")", "{", "var", "oScrollExtension", "=", "oTable", ".", "_getScrollExtension", "(", ")", ";", "var", "oHSb", "=", "oScrollExtension", ".", "getHorizontalScrollbar", "(", ")", ";", "if", "(", "oHSb", "&&", "internal", "(", "oTable"...
This function can be used to restore the last horizontal scroll position which has been stored. In case there is no stored scroll position nothing happens. @param {sap.ui.table.Table} oTable Instance of the table. @see HorizontalScrollingHelper#onScroll
[ "This", "function", "can", "be", "used", "to", "restore", "the", "last", "horizontal", "scroll", "position", "which", "has", "been", "stored", ".", "In", "case", "there", "is", "no", "stored", "scroll", "position", "nothing", "happens", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js#L182-L202
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js
function(oTable) { var oDomRef = oTable.getDomRef(); var aScrollableColumnAreas; if (oDomRef) { aScrollableColumnAreas = Array.prototype.slice.call(oTable.getDomRef().querySelectorAll(".sapUiTableCtrlScr")); } var aScrollAreas = [ oTable._getScrollExtension().getHorizontalScrollbar() ].conca...
javascript
function(oTable) { var oDomRef = oTable.getDomRef(); var aScrollableColumnAreas; if (oDomRef) { aScrollableColumnAreas = Array.prototype.slice.call(oTable.getDomRef().querySelectorAll(".sapUiTableCtrlScr")); } var aScrollAreas = [ oTable._getScrollExtension().getHorizontalScrollbar() ].conca...
[ "function", "(", "oTable", ")", "{", "var", "oDomRef", "=", "oTable", ".", "getDomRef", "(", ")", ";", "var", "aScrollableColumnAreas", ";", "if", "(", "oDomRef", ")", "{", "aScrollableColumnAreas", "=", "Array", ".", "prototype", ".", "slice", ".", "call"...
Gets the areas of the table which can be scrolled horizontally. @param {sap.ui.table.Table} oTable Instance of the table. @returns {HTMLElement[]} Returns only elements which exist in the DOM. @private
[ "Gets", "the", "areas", "of", "the", "table", "which", "can", "be", "scrolled", "horizontally", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js#L270-L285
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js
function(oEvent) { // For interaction detection. Interaction.notifyScrollEvent && Interaction.notifyScrollEvent(oEvent); if (internal(this).bIsScrolledVerticallyByKeyboard) { // When scrolling with the keyboard the first visible row is already correct and does not need adjustment. log("Vertical scroll...
javascript
function(oEvent) { // For interaction detection. Interaction.notifyScrollEvent && Interaction.notifyScrollEvent(oEvent); if (internal(this).bIsScrolledVerticallyByKeyboard) { // When scrolling with the keyboard the first visible row is already correct and does not need adjustment. log("Vertical scroll...
[ "function", "(", "oEvent", ")", "{", "// For interaction detection.", "Interaction", ".", "notifyScrollEvent", "&&", "Interaction", ".", "notifyScrollEvent", "(", "oEvent", ")", ";", "if", "(", "internal", "(", "this", ")", ".", "bIsScrolledVerticallyByKeyboard", ")...
Will be called if scrolled vertically. Updates the visualized data by applying the first visible row from the vertical scrollbar. @param {jQuery.Event} oEvent The event object.
[ "Will", "be", "called", "if", "scrolled", "vertically", ".", "Updates", "the", "visualized", "data", "by", "applying", "the", "first", "visible", "row", "from", "the", "vertical", "scrollbar", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js#L430-L458
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js
function(oTable) { var oScrollExtension = oTable._getScrollExtension(); var iMaxFirstRenderedRowIndex = oTable._getMaxFirstRenderedRowIndex(); var iNewFirstVisibleRowIndex = VerticalScrollingHelper.getRowIndexAtCurrentScrollPosition(oTable); var iOldFirstVisibleRowIndex = oTable.getFirstVisibleRow(); var...
javascript
function(oTable) { var oScrollExtension = oTable._getScrollExtension(); var iMaxFirstRenderedRowIndex = oTable._getMaxFirstRenderedRowIndex(); var iNewFirstVisibleRowIndex = VerticalScrollingHelper.getRowIndexAtCurrentScrollPosition(oTable); var iOldFirstVisibleRowIndex = oTable.getFirstVisibleRow(); var...
[ "function", "(", "oTable", ")", "{", "var", "oScrollExtension", "=", "oTable", ".", "_getScrollExtension", "(", ")", ";", "var", "iMaxFirstRenderedRowIndex", "=", "oTable", ".", "_getMaxFirstRenderedRowIndex", "(", ")", ";", "var", "iNewFirstVisibleRowIndex", "=", ...
Adjusts the first visible row to the current vertical scroll position. @param {sap.ui.table.Table} oTable Instance of the table.
[ "Adjusts", "the", "first", "visible", "row", "to", "the", "current", "vertical", "scroll", "position", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js#L465-L516
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js
function(oTable) { var oScrollExtension = oTable._getScrollExtension(); var iMaxRowIndex = oTable._getMaxFirstVisibleRowIndex(); if (iMaxRowIndex === 0) { return 0; } else { var nScrollPosition = VerticalScrollingHelper.getScrollPosition(oTable); var iScrollRange = VerticalScrollingHelper.getSc...
javascript
function(oTable) { var oScrollExtension = oTable._getScrollExtension(); var iMaxRowIndex = oTable._getMaxFirstVisibleRowIndex(); if (iMaxRowIndex === 0) { return 0; } else { var nScrollPosition = VerticalScrollingHelper.getScrollPosition(oTable); var iScrollRange = VerticalScrollingHelper.getSc...
[ "function", "(", "oTable", ")", "{", "var", "oScrollExtension", "=", "oTable", ".", "_getScrollExtension", "(", ")", ";", "var", "iMaxRowIndex", "=", "oTable", ".", "_getMaxFirstVisibleRowIndex", "(", ")", ";", "if", "(", "iMaxRowIndex", "===", "0", ")", "{"...
Gets the index of the row at the current vertical scroll position. @param {sap.ui.table.Table} oTable Instance of the table. @returns {int} The index of the row, or -1 if the index could not be determined.
[ "Gets", "the", "index", "of", "the", "row", "at", "the", "current", "vertical", "scroll", "position", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableScrollExtension.js#L524-L561
train