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.fl/src/sap/ui/fl/FakeLrepConnector.js
handleGetTransports
function handleGetTransports(sUri, sMethod, oData, mOptions, resolve, reject){ if (sUri.match(/^\/sap\/bc\/lrep\/actions\/gettransports\//)){ resolve({ response: { "transports": [ { "transportId": "U31K008488", "description": "The Ultimate Transport", "owner": "Fantasy Owner", ...
javascript
function handleGetTransports(sUri, sMethod, oData, mOptions, resolve, reject){ if (sUri.match(/^\/sap\/bc\/lrep\/actions\/gettransports\//)){ resolve({ response: { "transports": [ { "transportId": "U31K008488", "description": "The Ultimate Transport", "owner": "Fantasy Owner", ...
[ "function", "handleGetTransports", "(", "sUri", ",", "sMethod", ",", "oData", ",", "mOptions", ",", "resolve", ",", "reject", ")", "{", "if", "(", "sUri", ".", "match", "(", "/", "^\\/sap\\/bc\\/lrep\\/actions\\/gettransports\\/", "/", ")", ")", "{", "resolve"...
REVISE Make response configurable
[ "REVISE", "Make", "response", "configurable" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/FakeLrepConnector.js#L216-L233
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js
function (oChange, aActiveContexts) { var sChangeContext = oChange.context || ""; if (!sChangeContext) { // change is free of context (always applied) return true; } return aActiveContexts && aActiveContexts.indexOf(sChangeContext) !== -1; }
javascript
function (oChange, aActiveContexts) { var sChangeContext = oChange.context || ""; if (!sChangeContext) { // change is free of context (always applied) return true; } return aActiveContexts && aActiveContexts.indexOf(sChangeContext) !== -1; }
[ "function", "(", "oChange", ",", "aActiveContexts", ")", "{", "var", "sChangeContext", "=", "oChange", ".", "context", "||", "\"\"", ";", "if", "(", "!", "sChangeContext", ")", "{", "// change is free of context (always applied)", "return", "true", ";", "}", "re...
Helper to check if a passed change is free of contexts or in a matching context. @param {sap.ui.fl.Change} oChange - change object which has to be filtered @param {sap.ui.fl.Context[]} aActiveContexts - active runtime or designtime context @returns {boolean} is change context free or has a valid context
[ "Helper", "to", "check", "if", "a", "passed", "change", "is", "free", "of", "contexts", "or", "in", "a", "matching", "context", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L41-L50
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js
function (aContextObjects) { var aDesignTimeContextIdsByUrl = this._getContextIdsFromUrl(); if (aDesignTimeContextIdsByUrl.length === 0) { // [default: runtime] use runtime contexts return this._getContextParametersFromAPI(aContextObjects) .then(this._getActiveContextsByAPIParameters.bind(this, aCon...
javascript
function (aContextObjects) { var aDesignTimeContextIdsByUrl = this._getContextIdsFromUrl(); if (aDesignTimeContextIdsByUrl.length === 0) { // [default: runtime] use runtime contexts return this._getContextParametersFromAPI(aContextObjects) .then(this._getActiveContextsByAPIParameters.bind(this, aCon...
[ "function", "(", "aContextObjects", ")", "{", "var", "aDesignTimeContextIdsByUrl", "=", "this", ".", "_getContextIdsFromUrl", "(", ")", ";", "if", "(", "aDesignTimeContextIdsByUrl", ".", "length", "===", "0", ")", "{", "// [default: runtime] use runtime contexts", "re...
Helper to filter passed context objects. This method loops over each context object and check for its current validity @param {sap.ui.fl.Context[]} aContextObjects - context objects within the application @returns {Promise|string[]} aActiveContexts - Promise returning or direct build array containing ids of context ob...
[ "Helper", "to", "filter", "passed", "context", "objects", ".", "This", "method", "loops", "over", "each", "context", "object", "and", "check", "for", "its", "current", "validity" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L59-L70
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js
function (aContextObjects) { var aRequiredContextParameters = []; aContextObjects.forEach(function (oContext) { oContext.parameters.forEach(function (oContextParameter) { var sSelector = oContextParameter.selector; if (aRequiredContextParameters.indexOf(sSelector) === -1) { aRequiredContextPa...
javascript
function (aContextObjects) { var aRequiredContextParameters = []; aContextObjects.forEach(function (oContext) { oContext.parameters.forEach(function (oContextParameter) { var sSelector = oContextParameter.selector; if (aRequiredContextParameters.indexOf(sSelector) === -1) { aRequiredContextPa...
[ "function", "(", "aContextObjects", ")", "{", "var", "aRequiredContextParameters", "=", "[", "]", ";", "aContextObjects", ".", "forEach", "(", "function", "(", "oContext", ")", "{", "oContext", ".", "parameters", ".", "forEach", "(", "function", "(", "oContext...
Helper to retreive the context parameters from the instanciated context api @param {sap.ui.fl.Context[]} aContextObjects - context objects within the application @returns {Promise} aRuntimeContextParameters - Promise resolving with a map of context keys and their current values
[ "Helper", "to", "retreive", "the", "context", "parameters", "from", "the", "instanciated", "context", "api" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L78-L91
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js
function (aContextObjects, aRuntimeContextParameters) { var that = this; var aActiveContexts = []; aContextObjects.forEach(function (oContext) { if (that._isContextObjectActive(oContext, aRuntimeContextParameters)) { aActiveContexts.push(oContext.id); } }); return aActiveContexts; }
javascript
function (aContextObjects, aRuntimeContextParameters) { var that = this; var aActiveContexts = []; aContextObjects.forEach(function (oContext) { if (that._isContextObjectActive(oContext, aRuntimeContextParameters)) { aActiveContexts.push(oContext.id); } }); return aActiveContexts; }
[ "function", "(", "aContextObjects", ",", "aRuntimeContextParameters", ")", "{", "var", "that", "=", "this", ";", "var", "aActiveContexts", "=", "[", "]", ";", "aContextObjects", ".", "forEach", "(", "function", "(", "oContext", ")", "{", "if", "(", "that", ...
Function to filter all contexts by the passed runtime context parameters. @param {object[]} aContextObjects - context objects within the application @param {object} aRuntimeContextParameters - map of context keys and their current values @returns {string[]} aActiveContexts - id list of all active contexts
[ "Function", "to", "filter", "all", "contexts", "by", "the", "passed", "runtime", "context", "parameters", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L100-L111
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js
function(aContextObjects, aDesignTimeContextIdsByUrl) { var aActiveContexts = []; aContextObjects.forEach(function (oContext) { var bContextActive = ((aDesignTimeContextIdsByUrl ? Array.prototype.indexOf.call(aDesignTimeContextIdsByUrl, oContext.id) : -1)) !== -1; if (bContextActive) { aActiveConte...
javascript
function(aContextObjects, aDesignTimeContextIdsByUrl) { var aActiveContexts = []; aContextObjects.forEach(function (oContext) { var bContextActive = ((aDesignTimeContextIdsByUrl ? Array.prototype.indexOf.call(aDesignTimeContextIdsByUrl, oContext.id) : -1)) !== -1; if (bContextActive) { aActiveConte...
[ "function", "(", "aContextObjects", ",", "aDesignTimeContextIdsByUrl", ")", "{", "var", "aActiveContexts", "=", "[", "]", ";", "aContextObjects", ".", "forEach", "(", "function", "(", "oContext", ")", "{", "var", "bContextActive", "=", "(", "(", "aDesignTimeCont...
Function to filter all contexts by the context URL parameters. @param {string[]} aDesignTimeContextIdsByUrl - list of ids passed via URL @param {object[]} aContextObjects - context objects within the application @returns {string[]} aActiveContexts - id list of all active contexts
[ "Function", "to", "filter", "all", "contexts", "by", "the", "context", "URL", "parameters", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L120-L132
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js
function(oContext, aRuntimeContextParameters) { var that = this; var bContextActive = true; var aParameterOfContext = oContext.parameters; aParameterOfContext.every(function (oParameter) { bContextActive = bContextActive && that._checkContextParameter(oParameter, aRuntimeContextParameters); return ...
javascript
function(oContext, aRuntimeContextParameters) { var that = this; var bContextActive = true; var aParameterOfContext = oContext.parameters; aParameterOfContext.every(function (oParameter) { bContextActive = bContextActive && that._checkContextParameter(oParameter, aRuntimeContextParameters); return ...
[ "function", "(", "oContext", ",", "aRuntimeContextParameters", ")", "{", "var", "that", "=", "this", ";", "var", "bContextActive", "=", "true", ";", "var", "aParameterOfContext", "=", "oContext", ".", "parameters", ";", "aParameterOfContext", ".", "every", "(", ...
Helper to filter passed context object. If a passed context is not within the context objects of the given application the context is filtered. The filtering is done [At runtime] by comparing the parameters of the context objects with the actual runtime context. [At designtime] by comparing the id of the context objec...
[ "Helper", "to", "filter", "passed", "context", "object", ".", "If", "a", "passed", "context", "is", "not", "within", "the", "context", "objects", "of", "the", "given", "application", "the", "context", "is", "filtered", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L147-L158
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js
function (oParameter, aRuntimeContext) { var sSelector = oParameter.selector; var sOperator = oParameter.operator; var oValue = oParameter.value; switch (sOperator) { case "EQ": return this._checkEquals(sSelector, oValue, aRuntimeContext); case "NE": return !this._checkEquals(sSelector, o...
javascript
function (oParameter, aRuntimeContext) { var sSelector = oParameter.selector; var sOperator = oParameter.operator; var oValue = oParameter.value; switch (sOperator) { case "EQ": return this._checkEquals(sSelector, oValue, aRuntimeContext); case "NE": return !this._checkEquals(sSelector, o...
[ "function", "(", "oParameter", ",", "aRuntimeContext", ")", "{", "var", "sSelector", "=", "oParameter", ".", "selector", ";", "var", "sOperator", "=", "oParameter", ".", "operator", ";", "var", "oValue", "=", "oParameter", ".", "value", ";", "switch", "(", ...
Checks a single condition of a context object. Returns true if the condition matches the current runtime context. @param {Object} oParameter - context within an sap.ui.fl.Change @param {string} oParameter.selector - key of a runtime context @param {string} oParameter.operator - determine which comparison has to be exe...
[ "Checks", "a", "single", "condition", "of", "a", "context", "object", ".", "Returns", "true", "if", "the", "condition", "matches", "the", "current", "runtime", "context", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/context/ContextManager.js#L187-L201
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js
function () { var aPublicElements = []; var mComponents = core.mObjects.component; var mUIAreas = core.mUIAreas; for (var i in mComponents) { aPublicElements = aPublicElements.concat( getPublicElementsInside(mComponents[i]) ); } for (var key in mUIAreas) { aPubli...
javascript
function () { var aPublicElements = []; var mComponents = core.mObjects.component; var mUIAreas = core.mUIAreas; for (var i in mComponents) { aPublicElements = aPublicElements.concat( getPublicElementsInside(mComponents[i]) ); } for (var key in mUIAreas) { aPubli...
[ "function", "(", ")", "{", "var", "aPublicElements", "=", "[", "]", ";", "var", "mComponents", "=", "core", ".", "mObjects", ".", "component", ";", "var", "mUIAreas", "=", "core", ".", "mUIAreas", ";", "for", "(", "var", "i", "in", "mComponents", ")", ...
Returns all public elements, i.e. elements that are part of public API aggregations @public @function @returns {Array} Array of matched elements @alias sap.ui.support.ExecutionScope.getPublicElements
[ "Returns", "all", "public", "elements", "i", ".", "e", ".", "elements", "that", "are", "part", "of", "public", "API", "aggregations" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js#L249-L267
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js
function (classNameSelector) { if (typeof classNameSelector === "string") { return elements.filter(function (element) { return element.getMetadata().getName() === classNameSelector; }); } if (typeof classNameSelector === "function") { return elements.filter(function (element) { ...
javascript
function (classNameSelector) { if (typeof classNameSelector === "string") { return elements.filter(function (element) { return element.getMetadata().getName() === classNameSelector; }); } if (typeof classNameSelector === "function") { return elements.filter(function (element) { ...
[ "function", "(", "classNameSelector", ")", "{", "if", "(", "typeof", "classNameSelector", "===", "\"string\"", ")", "{", "return", "elements", ".", "filter", "(", "function", "(", "element", ")", "{", "return", "element", ".", "getMetadata", "(", ")", ".", ...
Gets elements by their type @public @function @param {string|function} classNameSelector Either string or function to be used when selecting a subset of elements @returns {Array} Array of matched elements @alias sap.ui.support.ExecutionScope.getElementsByClassName
[ "Gets", "elements", "by", "their", "type" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js#L277-L289
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js
function (type) { var log = jQuery.sap.log.getLogEntries(), loggedObjects = [], elemIds; // Add logEntries that have support info object, // and that have the same type as the type provided log.forEach(function (logEntry) { if (!logEntry.supportInfo) { return; } if (...
javascript
function (type) { var log = jQuery.sap.log.getLogEntries(), loggedObjects = [], elemIds; // Add logEntries that have support info object, // and that have the same type as the type provided log.forEach(function (logEntry) { if (!logEntry.supportInfo) { return; } if (...
[ "function", "(", "type", ")", "{", "var", "log", "=", "jQuery", ".", "sap", ".", "log", ".", "getLogEntries", "(", ")", ",", "loggedObjects", "=", "[", "]", ",", "elemIds", ";", "// Add logEntries that have support info object,", "// and that have the same type as...
Gets the logged objects by object type @public @function @param {any} type Type of logged objects @returns {Array} Array of logged objects @alias sap.ui.support.ExecutionScope.getLoggedObjects
[ "Gets", "the", "logged", "objects", "by", "object", "type" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ExecutionScope.js#L298-L336
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js
createUniversalUTCDate
function createUniversalUTCDate(oDate, sCalendarType) { if (sCalendarType) { return UniversalDate.getInstance(createUTCDate(oDate), sCalendarType); } else { return new UniversalDate(createUTCDate(oDate).getTime()); } }
javascript
function createUniversalUTCDate(oDate, sCalendarType) { if (sCalendarType) { return UniversalDate.getInstance(createUTCDate(oDate), sCalendarType); } else { return new UniversalDate(createUTCDate(oDate).getTime()); } }
[ "function", "createUniversalUTCDate", "(", "oDate", ",", "sCalendarType", ")", "{", "if", "(", "sCalendarType", ")", "{", "return", "UniversalDate", ".", "getInstance", "(", "createUTCDate", "(", "oDate", ")", ",", "sCalendarType", ")", ";", "}", "else", "{", ...
Creates an UniversalDate corresponding to the given date and calendar type. @param {Date} oDate JavaScript date object to create the UniversalDate from. Local date information is used. @param {sap.ui.core.CalendarType} sCalendarType The type to be used. If not specified, the calendar type from configuration will be use...
[ "Creates", "an", "UniversalDate", "corresponding", "to", "the", "given", "date", "and", "calendar", "type", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js#L328-L334
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js
createUTCDate
function createUTCDate(oDate) { var oUTCDate = new Date(Date.UTC(0, 0, 1)); oUTCDate.setUTCFullYear(oDate.getFullYear(), oDate.getMonth(), oDate.getDate()); return oUTCDate; }
javascript
function createUTCDate(oDate) { var oUTCDate = new Date(Date.UTC(0, 0, 1)); oUTCDate.setUTCFullYear(oDate.getFullYear(), oDate.getMonth(), oDate.getDate()); return oUTCDate; }
[ "function", "createUTCDate", "(", "oDate", ")", "{", "var", "oUTCDate", "=", "new", "Date", "(", "Date", ".", "UTC", "(", "0", ",", "0", ",", "1", ")", ")", ";", "oUTCDate", ".", "setUTCFullYear", "(", "oDate", ".", "getFullYear", "(", ")", ",", "o...
Creates a JavaScript UTC Date corresponding to the given JavaScript Date. @param {Date} oDate JavaScript date object. Time related information is cut. @returns {Date} JavaScript date created from the date object, but this time considered as UTC date information.
[ "Creates", "a", "JavaScript", "UTC", "Date", "corresponding", "to", "the", "given", "JavaScript", "Date", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js#L341-L347
train
SAP/openui5
src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js
checkNumericLike
function checkNumericLike(value, message) { if (value == undefined || value === Infinity || isNaN(value)) {//checks also for null. throw message; } }
javascript
function checkNumericLike(value, message) { if (value == undefined || value === Infinity || isNaN(value)) {//checks also for null. throw message; } }
[ "function", "checkNumericLike", "(", "value", ",", "message", ")", "{", "if", "(", "value", "==", "undefined", "||", "value", "===", "Infinity", "||", "isNaN", "(", "value", ")", ")", "{", "//checks also for null.", "throw", "message", ";", "}", "}" ]
Verifies the given value is numeric like, i.e. 3, "3" and throws an error if it is not. @param {any} value The value of any type to check. If null or undefined, this method throws an error. @param {string} message The message to be used if an error is to be thrown @throws will throw an error if the value is null or und...
[ "Verifies", "the", "given", "value", "is", "numeric", "like", "i", ".", "e", ".", "3", "3", "and", "throws", "an", "error", "if", "it", "is", "not", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.unified/src/sap/ui/unified/calendar/CalendarDate.js#L361-L365
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js
function(element) { var links = element.querySelectorAll("a.xref, a.link, area"), i, link, href, startsWithHash, startsWithHTTP; for (i = 0; i < links.length; i++) { link = links[i]; href = link.getAttribute("href"); startsWithHash = href.indexOf("#") == 0; startsWi...
javascript
function(element) { var links = element.querySelectorAll("a.xref, a.link, area"), i, link, href, startsWithHash, startsWithHTTP; for (i = 0; i < links.length; i++) { link = links[i]; href = link.getAttribute("href"); startsWithHash = href.indexOf("#") == 0; startsWi...
[ "function", "(", "element", ")", "{", "var", "links", "=", "element", ".", "querySelectorAll", "(", "\"a.xref, a.link, area\"", ")", ",", "i", ",", "link", ",", "href", ",", "startsWithHash", ",", "startsWithHTTP", ";", "for", "(", "i", "=", "0", ";", "i...
Adjusts link href values @param element The DOM element which may contain cross reference links
[ "Adjusts", "link", "href", "values" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js#L32-L70
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Welcome.controller.js
function (event) { var href = event.oSource.getHref() || event.oSource.getTarget(); href = href.replace("#/", "").split('/'); /** @type string */ var page = href[0]; /** @type string */ var parameter = href[1]; event.preventDefault(); this.getRouter().navTo(page, {id: parameter}, true);...
javascript
function (event) { var href = event.oSource.getHref() || event.oSource.getTarget(); href = href.replace("#/", "").split('/'); /** @type string */ var page = href[0]; /** @type string */ var parameter = href[1]; event.preventDefault(); this.getRouter().navTo(page, {id: parameter}, true);...
[ "function", "(", "event", ")", "{", "var", "href", "=", "event", ".", "oSource", ".", "getHref", "(", ")", "||", "event", ".", "oSource", ".", "getTarget", "(", ")", ";", "href", "=", "href", ".", "replace", "(", "\"#/\"", ",", "\"\"", ")", ".", ...
Opens the control's details page @param event
[ "Opens", "the", "control", "s", "details", "page" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Welcome.controller.js#L73-L83
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Welcome.controller.js
function (oEvent) { var isOpenUI5 = this.getView().getModel("welcomeView").getProperty("/isOpenUI5"), sUrl = isOpenUI5 ? "http://openui5.org/download.html" : "https://tools.hana.ondemand.com/#sapui5"; window.open(sUrl, "_blank"); }
javascript
function (oEvent) { var isOpenUI5 = this.getView().getModel("welcomeView").getProperty("/isOpenUI5"), sUrl = isOpenUI5 ? "http://openui5.org/download.html" : "https://tools.hana.ondemand.com/#sapui5"; window.open(sUrl, "_blank"); }
[ "function", "(", "oEvent", ")", "{", "var", "isOpenUI5", "=", "this", ".", "getView", "(", ")", ".", "getModel", "(", "\"welcomeView\"", ")", ".", "getProperty", "(", "\"/isOpenUI5\"", ")", ",", "sUrl", "=", "isOpenUI5", "?", "\"http://openui5.org/download.htm...
Redirects to the UI5 download page @param {sap.ui.base.Event} oEvent the Button press event @public
[ "Redirects", "to", "the", "UI5", "download", "page" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Welcome.controller.js#L97-L101
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(size) { var result = 0, i; this.checkOffset(size); for (i = this.index + size - 1; i >= this.index; i--) { result = (result << 8) + this.byteAt(i); } this.index += size; return result; }
javascript
function(size) { var result = 0, i; this.checkOffset(size); for (i = this.index + size - 1; i >= this.index; i--) { result = (result << 8) + this.byteAt(i); } this.index += size; return result; }
[ "function", "(", "size", ")", "{", "var", "result", "=", "0", ",", "i", ";", "this", ".", "checkOffset", "(", "size", ")", ";", "for", "(", "i", "=", "this", ".", "index", "+", "size", "-", "1", ";", "i", ">=", "this", ".", "index", ";", "i",...
Get the next number with a given byte size. @param {number} size the number of bytes to read. @return {number} the corresponding number.
[ "Get", "the", "next", "number", "with", "a", "given", "byte", "size", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L188-L197
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(asUTF8) { var result = getRawData(this); if (result === null || typeof result === "undefined") { return ""; } // if the data is a base64 string, we decode it before checking the encoding ! if (this.options.base64) { result = base64.decode(result); } if (asUTF8 && thi...
javascript
function(asUTF8) { var result = getRawData(this); if (result === null || typeof result === "undefined") { return ""; } // if the data is a base64 string, we decode it before checking the encoding ! if (this.options.base64) { result = base64.decode(result); } if (asUTF8 && thi...
[ "function", "(", "asUTF8", ")", "{", "var", "result", "=", "getRawData", "(", "this", ")", ";", "if", "(", "result", "===", "null", "||", "typeof", "result", "===", "\"undefined\"", ")", "{", "return", "\"\"", ";", "}", "// if the data is a base64 string, we...
Transform this._data into a string. @param {function} filter a function String -> String, applied if not null on the result. @return {String} the string representing this._data.
[ "Transform", "this", ".", "_data", "into", "a", "string", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L422-L445
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(dec, bytes) { var hex = "", i; for (i = 0; i < bytes; i++) { hex += String.fromCharCode(dec & 0xff); dec = dec >>> 8; } return hex; }
javascript
function(dec, bytes) { var hex = "", i; for (i = 0; i < bytes; i++) { hex += String.fromCharCode(dec & 0xff); dec = dec >>> 8; } return hex; }
[ "function", "(", "dec", ",", "bytes", ")", "{", "var", "hex", "=", "\"\"", ",", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "bytes", ";", "i", "++", ")", "{", "hex", "+=", "String", ".", "fromCharCode", "(", "dec", "&", "0xff", ")", ...
Transform an integer into a string in hexadecimal. @private @param {number} dec the number to convert. @param {number} bytes the number of bytes to generate. @returns {string} the result.
[ "Transform", "an", "integer", "into", "a", "string", "in", "hexadecimal", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L506-L514
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function() { var result = {}, i, attr; for (i = 0; i < arguments.length; i++) { // arguments is not enumerable in some browsers for (attr in arguments[i]) { if (arguments[i].hasOwnProperty(attr) && typeof result[attr] === "undefined") { result[attr] = arguments[i][attr]; ...
javascript
function() { var result = {}, i, attr; for (i = 0; i < arguments.length; i++) { // arguments is not enumerable in some browsers for (attr in arguments[i]) { if (arguments[i].hasOwnProperty(attr) && typeof result[attr] === "undefined") { result[attr] = arguments[i][attr]; ...
[ "function", "(", ")", "{", "var", "result", "=", "{", "}", ",", "i", ",", "attr", ";", "for", "(", "i", "=", "0", ";", "i", "<", "arguments", ".", "length", ";", "i", "++", ")", "{", "// arguments is not enumerable in some browsers", "for", "(", "att...
Merge the objects passed as parameters into a new one. @private @param {...Object} var_args All objects to merge. @return {Object} a new object with the data of the others.
[ "Merge", "the", "objects", "passed", "as", "parameters", "into", "a", "new", "one", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L522-L532
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(path) { if (path.slice(-1) == '/') { path = path.substring(0, path.length - 1); } var lastSlash = path.lastIndexOf('/'); return (lastSlash > 0) ? path.substring(0, lastSlash) : ""; }
javascript
function(path) { if (path.slice(-1) == '/') { path = path.substring(0, path.length - 1); } var lastSlash = path.lastIndexOf('/'); return (lastSlash > 0) ? path.substring(0, lastSlash) : ""; }
[ "function", "(", "path", ")", "{", "if", "(", "path", ".", "slice", "(", "-", "1", ")", "==", "'/'", ")", "{", "path", "=", "path", ".", "substring", "(", "0", ",", "path", ".", "length", "-", "1", ")", ";", "}", "var", "lastSlash", "=", "pat...
Find the parent folder of the path. @private @param {string} path the path to use @return {string} the parent folder, or ""
[ "Find", "the", "parent", "folder", "of", "the", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L612-L618
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(input) { if (input.length !== 0) { // with an empty Uint8Array, Opera fails with a "Offset larger than array size" input = utils.transformTo("uint8array", input); this.data.set(input, this.index); this.index += input.length; } }
javascript
function(input) { if (input.length !== 0) { // with an empty Uint8Array, Opera fails with a "Offset larger than array size" input = utils.transformTo("uint8array", input); this.data.set(input, this.index); this.index += input.length; } }
[ "function", "(", "input", ")", "{", "if", "(", "input", ".", "length", "!==", "0", ")", "{", "// with an empty Uint8Array, Opera fails with a \"Offset larger than array size\"", "input", "=", "utils", ".", "transformTo", "(", "\"uint8array\"", ",", "input", ")", ";"...
Append any content to the current array. @param {Object} input the content to add.
[ "Append", "any", "content", "to", "the", "current", "array", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L843-L850
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(name, data, o) { if (arguments.length === 1) { if (utils.isRegExp(name)) { var regexp = name; return this.filter(function(relativePath, file) { return !file.options.dir && regexp.test(relativePath); }); } ...
javascript
function(name, data, o) { if (arguments.length === 1) { if (utils.isRegExp(name)) { var regexp = name; return this.filter(function(relativePath, file) { return !file.options.dir && regexp.test(relativePath); }); } ...
[ "function", "(", "name", ",", "data", ",", "o", ")", "{", "if", "(", "arguments", ".", "length", "===", "1", ")", "{", "if", "(", "utils", ".", "isRegExp", "(", "name", ")", ")", "{", "var", "regexp", "=", "name", ";", "return", "this", ".", "f...
Add a file to the zip file, or search a file. @param {string|RegExp} name The name of the file to add (if data is defined), the name of the file to find (if no data) or a regex to match files. @param {String|ArrayBuffer|Uint8Array|Buffer} data The file data, either raw or base64 encoded @param {Object} o Fil...
[ "Add", "a", "file", "to", "the", "zip", "file", "or", "search", "a", "file", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L932-L951
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(options) { options = extend(options || {}, { base64: true, compression: "STORE", type: "base64" }); utils.checkSupport(options.type); var zipData = [], localDirLength = 0, centralDirLength = 0, writer, i; ...
javascript
function(options) { options = extend(options || {}, { base64: true, compression: "STORE", type: "base64" }); utils.checkSupport(options.type); var zipData = [], localDirLength = 0, centralDirLength = 0, writer, i; ...
[ "function", "(", "options", ")", "{", "options", "=", "extend", "(", "options", "||", "{", "}", ",", "{", "base64", ":", "true", ",", "compression", ":", "\"STORE\"", ",", "type", ":", "\"base64\"", "}", ")", ";", "utils", ".", "checkSupport", "(", "...
Generate the complete zip file @param {Object} options the options to generate the zip file : - base64, (deprecated, use type instead) true to generate base64. - compression, "STORE" by default. - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob. @return {String|Uint8Array|ArrayBuff...
[ "Generate", "the", "complete", "zip", "file" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1022-L1116
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
stringToArrayLike
function stringToArrayLike(str, array) { for (var i = 0; i < str.length; ++i) { array[i] = str.charCodeAt(i) & 0xFF; } return array; }
javascript
function stringToArrayLike(str, array) { for (var i = 0; i < str.length; ++i) { array[i] = str.charCodeAt(i) & 0xFF; } return array; }
[ "function", "stringToArrayLike", "(", "str", ",", "array", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "str", ".", "length", ";", "++", "i", ")", "{", "array", "[", "i", "]", "=", "str", ".", "charCodeAt", "(", "i", ")", "&", "...
Fill in an array with a string. @param {String} str the string to use. @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated). @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array.
[ "Fill", "in", "an", "array", "with", "a", "string", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1419-L1424
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
arrayLikeToArrayLike
function arrayLikeToArrayLike(arrayFrom, arrayTo) { for (var i = 0; i < arrayFrom.length; i++) { arrayTo[i] = arrayFrom[i]; } return arrayTo; }
javascript
function arrayLikeToArrayLike(arrayFrom, arrayTo) { for (var i = 0; i < arrayFrom.length; i++) { arrayTo[i] = arrayFrom[i]; } return arrayTo; }
[ "function", "arrayLikeToArrayLike", "(", "arrayFrom", ",", "arrayTo", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "arrayFrom", ".", "length", ";", "i", "++", ")", "{", "arrayTo", "[", "i", "]", "=", "arrayFrom", "[", "i", "]", ";", ...
Copy the data from an array-like to an other array-like. @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayFrom the origin array. @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayTo the destination array which will be mutated. @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array.
[ "Copy", "the", "data", "from", "an", "array", "-", "like", "to", "an", "other", "array", "-", "like", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1492-L1497
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(expectedSignature) { var signature = this.reader.readString(4); if (signature !== expectedSignature) { throw new Error("Corrupted zip or bug : unexpected signature " + "(" + utils.pretty(signature) + ", expected " + utils.pretty(expectedSignature) + ")"); } }
javascript
function(expectedSignature) { var signature = this.reader.readString(4); if (signature !== expectedSignature) { throw new Error("Corrupted zip or bug : unexpected signature " + "(" + utils.pretty(signature) + ", expected " + utils.pretty(expectedSignature) + ")"); } }
[ "function", "(", "expectedSignature", ")", "{", "var", "signature", "=", "this", ".", "reader", ".", "readString", "(", "4", ")", ";", "if", "(", "signature", "!==", "expectedSignature", ")", "{", "throw", "new", "Error", "(", "\"Corrupted zip or bug : unexpec...
Check that the reader is on the speficied signature. @param {string} expectedSignature the expected signature. @throws {Error} if it is an other signature.
[ "Check", "that", "the", "reader", "is", "on", "the", "speficied", "signature", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1713-L1718
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function() { var i, file; for (i = 0; i < this.files.length; i++) { file = this.files[i]; this.reader.setIndex(file.localHeaderOffset); this.checkSignature(sig.LOCAL_FILE_HEADER); file.readLocalPart(this.reader); file.handleUTF8(); } ...
javascript
function() { var i, file; for (i = 0; i < this.files.length; i++) { file = this.files[i]; this.reader.setIndex(file.localHeaderOffset); this.checkSignature(sig.LOCAL_FILE_HEADER); file.readLocalPart(this.reader); file.handleUTF8(); } ...
[ "function", "(", ")", "{", "var", "i", ",", "file", ";", "for", "(", "i", "=", "0", ";", "i", "<", "this", ".", "files", ".", "length", ";", "i", "++", ")", "{", "file", "=", "this", ".", "files", "[", "i", "]", ";", "this", ".", "reader", ...
Read the local files, based on the offset read in the central part.
[ "Read", "the", "local", "files", "based", "on", "the", "offset", "read", "in", "the", "central", "part", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1781-L1790
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function() { var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END); if (offset === -1) { throw new Error("Corrupted zip : can't find end of central directory"); } this.reader.setIndex(offset); this.checkSignature(sig.CENTRAL_DIRECTORY_END); ...
javascript
function() { var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END); if (offset === -1) { throw new Error("Corrupted zip : can't find end of central directory"); } this.reader.setIndex(offset); this.checkSignature(sig.CENTRAL_DIRECTORY_END); ...
[ "function", "(", ")", "{", "var", "offset", "=", "this", ".", "reader", ".", "lastIndexOfSignature", "(", "sig", ".", "CENTRAL_DIRECTORY_END", ")", ";", "if", "(", "offset", "===", "-", "1", ")", "{", "throw", "new", "Error", "(", "\"Corrupted zip : can't ...
Read the end of central directory.
[ "Read", "the", "end", "of", "central", "directory", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1809-L1855
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/jszip.js
function(reader, from, length, compression, uncompressedSize) { return function() { var compressedFileData = utils.transformTo(compression.uncompressInputType, this.getCompressedContent()); var uncompressedFileData = compression.uncompress(compressedFileData); if (uncompres...
javascript
function(reader, from, length, compression, uncompressedSize) { return function() { var compressedFileData = utils.transformTo(compression.uncompressInputType, this.getCompressedContent()); var uncompressedFileData = compression.uncompress(compressedFileData); if (uncompres...
[ "function", "(", "reader", ",", "from", ",", "length", ",", "compression", ",", "uncompressedSize", ")", "{", "return", "function", "(", ")", "{", "var", "compressedFileData", "=", "utils", ".", "transformTo", "(", "compression", ".", "uncompressInputType", ",...
Prepare the function used to generate the uncompressed content from this ZipFile. @param {DataReader} reader the reader to use. @param {number} from the offset from where we should read the data. @param {number} length the length of the data to read. @param {JSZip.compression} compression the compression used on this f...
[ "Prepare", "the", "function", "used", "to", "generate", "the", "uncompressed", "content", "from", "this", "ZipFile", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/jszip.js#L1942-L1954
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js
function (oTreeViewModelRules) { var aSelectedRules = storage.getSelectedRules(); if (!aSelectedRules) { return null; } if (!oTreeViewModelRules) { return null; } aSelectedRules.forEach(function (oRuleDescriptor) { Object.keys(oTreeViewModelRules).forEach(function(iKey) { oTreeVie...
javascript
function (oTreeViewModelRules) { var aSelectedRules = storage.getSelectedRules(); if (!aSelectedRules) { return null; } if (!oTreeViewModelRules) { return null; } aSelectedRules.forEach(function (oRuleDescriptor) { Object.keys(oTreeViewModelRules).forEach(function(iKey) { oTreeVie...
[ "function", "(", "oTreeViewModelRules", ")", "{", "var", "aSelectedRules", "=", "storage", ".", "getSelectedRules", "(", ")", ";", "if", "(", "!", "aSelectedRules", ")", "{", "return", "null", ";", "}", "if", "(", "!", "oTreeViewModelRules", ")", "{", "ret...
Traverses the model and updates the selection flag for the selected rules @returns {Array} Rule selections array
[ "Traverses", "the", "model", "and", "updates", "the", "selection", "flag", "for", "the", "selected", "rules" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js#L72-L98
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js
function (aSelectedRules) { var oTreeViewModelRules = this.model.getProperty("/treeModel"); // deselect all Object.keys(oTreeViewModelRules).forEach(function(iKey) { oTreeViewModelRules[iKey].nodes.forEach(function(oRule) { oRule.selected = false; }); }); // select those from aSelectedRule...
javascript
function (aSelectedRules) { var oTreeViewModelRules = this.model.getProperty("/treeModel"); // deselect all Object.keys(oTreeViewModelRules).forEach(function(iKey) { oTreeViewModelRules[iKey].nodes.forEach(function(oRule) { oRule.selected = false; }); }); // select those from aSelectedRule...
[ "function", "(", "aSelectedRules", ")", "{", "var", "oTreeViewModelRules", "=", "this", ".", "model", ".", "getProperty", "(", "\"/treeModel\"", ")", ";", "// deselect all", "Object", ".", "keys", "(", "oTreeViewModelRules", ")", ".", "forEach", "(", "function",...
Sets the selected rules in the same format in which they are imported @param {Array} aSelectedRules The selected rules - same as the result of getSelectedRulesPlain
[ "Sets", "the", "selected", "rules", "in", "the", "same", "format", "in", "which", "they", "are", "imported" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js#L114-L147
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js
function (tempTreeModelWithAdditionalRuleSets, oTreeModelWithSelection) { Object.keys(tempTreeModelWithAdditionalRuleSets).forEach(function(iKey) { Object.keys(oTreeModelWithSelection).forEach(function(iKey) { if (tempTreeModelWithAdditionalRuleSets[iKey].id === oTreeModelWithSelection[iKey].id) { te...
javascript
function (tempTreeModelWithAdditionalRuleSets, oTreeModelWithSelection) { Object.keys(tempTreeModelWithAdditionalRuleSets).forEach(function(iKey) { Object.keys(oTreeModelWithSelection).forEach(function(iKey) { if (tempTreeModelWithAdditionalRuleSets[iKey].id === oTreeModelWithSelection[iKey].id) { te...
[ "function", "(", "tempTreeModelWithAdditionalRuleSets", ",", "oTreeModelWithSelection", ")", "{", "Object", ".", "keys", "(", "tempTreeModelWithAdditionalRuleSets", ")", ".", "forEach", "(", "function", "(", "iKey", ")", "{", "Object", ".", "keys", "(", "oTreeModelW...
Applies selection to the tree model after reinitializing model with additional rulesets. @param {Object} tempTreeModelWithAdditionalRuleSets tree model with no selection @param {Object} oTreeModelWithSelection tree model with selection before loading additional rulesets @returns {Object} oTreeModelWhitAdditionalRuleSet...
[ "Applies", "selection", "to", "the", "tree", "model", "after", "reinitializing", "model", "with", "additional", "rulesets", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js#L156-L167
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js
function (oTreeModel, aAdditionalRuleSetsNames) { if (!aAdditionalRuleSetsNames) { return; } aAdditionalRuleSetsNames.forEach(function (sRuleName) { Object.keys(oTreeModel).forEach(function(iKey) { if (oTreeModel[iKey].name === sRuleName) { oTreeModel[iKey].selected = false; oTreeMod...
javascript
function (oTreeModel, aAdditionalRuleSetsNames) { if (!aAdditionalRuleSetsNames) { return; } aAdditionalRuleSetsNames.forEach(function (sRuleName) { Object.keys(oTreeModel).forEach(function(iKey) { if (oTreeModel[iKey].name === sRuleName) { oTreeModel[iKey].selected = false; oTreeMod...
[ "function", "(", "oTreeModel", ",", "aAdditionalRuleSetsNames", ")", "{", "if", "(", "!", "aAdditionalRuleSetsNames", ")", "{", "return", ";", "}", "aAdditionalRuleSetsNames", ".", "forEach", "(", "function", "(", "sRuleName", ")", "{", "Object", ".", "keys", ...
Deselect additional rulesets in model @param {Object} oTreeModel tree model with loaded additional ruleset(s) @param {Array} aAdditionalRuleSetsNames additional ruleset(s) name @returns {Object} oTreeModel updated selection model
[ "Deselect", "additional", "rulesets", "in", "model" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js#L175-L193
train
SAP/openui5
src/sap.m/src/sap/m/TimePicker.js
genValidHourValues
function genValidHourValues(b24H, sLeadingChar) { var iStart = b24H ? 0 : 1, b2400 = this._oTimePicker.getSupport2400() ? 24 : 23,//if getSupport2400, the user could type 24 in the input iEnd = b24H ? b2400 : 12; return genValues(iStart, iEnd, sLeadingChar); }
javascript
function genValidHourValues(b24H, sLeadingChar) { var iStart = b24H ? 0 : 1, b2400 = this._oTimePicker.getSupport2400() ? 24 : 23,//if getSupport2400, the user could type 24 in the input iEnd = b24H ? b2400 : 12; return genValues(iStart, iEnd, sLeadingChar); }
[ "function", "genValidHourValues", "(", "b24H", ",", "sLeadingChar", ")", "{", "var", "iStart", "=", "b24H", "?", "0", ":", "1", ",", "b2400", "=", "this", ".", "_oTimePicker", ".", "getSupport2400", "(", ")", "?", "24", ":", "23", ",", "//if getSupport24...
not too expensive to generate all values that are valid hour values
[ "not", "too", "expensive", "to", "generate", "all", "values", "that", "are", "valid", "hour", "values" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/TimePicker.js#L1462-L1468
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js
function (oOptions, sType) { var oObject; try { if (sType === "Component" && !this.async) { Log.error("sap.ui.core.routing.Target doesn't support loading component in synchronous mode, please switch routing to async"); throw new Error("sap.ui.core.routing.Target doesn't support loading compone...
javascript
function (oOptions, sType) { var oObject; try { if (sType === "Component" && !this.async) { Log.error("sap.ui.core.routing.Target doesn't support loading component in synchronous mode, please switch routing to async"); throw new Error("sap.ui.core.routing.Target doesn't support loading compone...
[ "function", "(", "oOptions", ",", "sType", ")", "{", "var", "oObject", ";", "try", "{", "if", "(", "sType", "===", "\"Component\"", "&&", "!", "this", ".", "async", ")", "{", "Log", ".", "error", "(", "\"sap.ui.core.routing.Target doesn't support loading compo...
Returns a cached view or component, for a given name. If it does not exist yet, it will create the view or component with the provided options. If you provide a "id" in the "oOptions", it will be prefixed with the id of the component. @param {object} oOptions see {@link sap.ui.core.mvc.View.create} or {@link sap.ui.co...
[ "Returns", "a", "cached", "view", "or", "component", "for", "a", "given", "name", ".", "If", "it", "does", "not", "exist", "yet", "it", "will", "create", "the", "view", "or", "component", "with", "the", "provided", "options", ".", "If", "you", "provide",...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js#L91-L117
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js
function (sName, sType, oObject) { var oInstanceCache; this._checkName(sName, sType); assert(sType === "View" || sType === "Component", "sType must be either 'View' or 'Component'"); oInstanceCache = this._oCache[sType.toLowerCase()][sName]; if (!oInstanceCache) { oInstanceCache = this._oCac...
javascript
function (sName, sType, oObject) { var oInstanceCache; this._checkName(sName, sType); assert(sType === "View" || sType === "Component", "sType must be either 'View' or 'Component'"); oInstanceCache = this._oCache[sType.toLowerCase()][sName]; if (!oInstanceCache) { oInstanceCache = this._oCac...
[ "function", "(", "sName", ",", "sType", ",", "oObject", ")", "{", "var", "oInstanceCache", ";", "this", ".", "_checkName", "(", "sName", ",", "sType", ")", ";", "assert", "(", "sType", "===", "\"View\"", "||", "sType", "===", "\"Component\"", ",", "\"sTy...
Adds or overwrites a view or a component in the TargetCache. The given object is cached under its name and the 'undefined' key. If the third parameter is set to null or undefined, the previous cache view or component under the same name isn't managed by the TargetCache instance. The lifecycle (for example the destroy)...
[ "Adds", "or", "overwrites", "a", "view", "or", "a", "component", "in", "the", "TargetCache", ".", "The", "given", "object", "is", "cached", "under", "its", "name", "and", "the", "undefined", "key", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js#L133-L148
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js
function () { EventProvider.prototype.destroy.apply(this); if (this.bIsDestroyed) { return this; } function destroyObject(oObject) { if (oObject && oObject.destroy) { oObject.destroy(); } } Object.keys(this._oCache).forEach(function (sType) { var oTypeCache = this._o...
javascript
function () { EventProvider.prototype.destroy.apply(this); if (this.bIsDestroyed) { return this; } function destroyObject(oObject) { if (oObject && oObject.destroy) { oObject.destroy(); } } Object.keys(this._oCache).forEach(function (sType) { var oTypeCache = this._o...
[ "function", "(", ")", "{", "EventProvider", ".", "prototype", ".", "destroy", ".", "apply", "(", "this", ")", ";", "if", "(", "this", ".", "bIsDestroyed", ")", "{", "return", "this", ";", "}", "function", "destroyObject", "(", "oObject", ")", "{", "if"...
Destroys all the views and components created by this instance. @returns {sap.ui.core.routing.TargetCache} this for chaining.
[ "Destroys", "all", "the", "views", "and", "components", "created", "by", "this", "instance", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js#L155-L188
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js
function (sName, sType) { if (!sName) { var sMessage = "A name for the " + sType.toLowerCase() + " has to be defined"; Log.error(sMessage, this); throw Error(sMessage); } }
javascript
function (sName, sType) { if (!sName) { var sMessage = "A name for the " + sType.toLowerCase() + " has to be defined"; Log.error(sMessage, this); throw Error(sMessage); } }
[ "function", "(", "sName", ",", "sType", ")", "{", "if", "(", "!", "sName", ")", "{", "var", "sMessage", "=", "\"A name for the \"", "+", "sType", ".", "toLowerCase", "(", ")", "+", "\" has to be defined\"", ";", "Log", ".", "error", "(", "sMessage", ",",...
hook for the deprecated property viewId on the route, will not prefix the id with the component @name sap.ui.core.routing.TargetCache#_getViewWithGlobalId @returns {*} @private @param {string} sName logs an error if it is empty or undefined @param {string} sType whether it's a 'View' or 'Component' @private
[ "hook", "for", "the", "deprecated", "property", "viewId", "on", "the", "route", "will", "not", "prefix", "the", "id", "with", "the", "component" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js#L305-L313
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/HTMLRenderer.js
function(oRM, oControl) { // render an invisible, but easily identifiable placeholder for the content oRM.write("<div id=\"" + RenderPrefixes.Dummy + oControl.getId() + "\" style=\"display:none\">"); // Note: we do not render the content string here, but only in onAfterRendering // This has the advantage t...
javascript
function(oRM, oControl) { // render an invisible, but easily identifiable placeholder for the content oRM.write("<div id=\"" + RenderPrefixes.Dummy + oControl.getId() + "\" style=\"display:none\">"); // Note: we do not render the content string here, but only in onAfterRendering // This has the advantage t...
[ "function", "(", "oRM", ",", "oControl", ")", "{", "// render an invisible, but easily identifiable placeholder for the content", "oRM", ".", "write", "(", "\"<div id=\\\"\"", "+", "RenderPrefixes", ".", "Dummy", "+", "oControl", ".", "getId", "(", ")", "+", "\"\\\" s...
Renders either the configured content or a dummy div that will be replaced after rendering @param {sap.ui.core.RenderManager} [oRM] The RenderManager instance @param {sap.ui.core.Control} [oControl] The instance of the invisible control
[ "Renders", "either", "the", "configured", "content", "or", "a", "dummy", "div", "that", "will", "be", "replaced", "after", "rendering" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/HTMLRenderer.js#L21-L30
train
SAP/openui5
lib/jsdoc/create-api-index.js
cleanTree
function cleanTree (oSymbol) { delete oSymbol.treeName; delete oSymbol.parent; if (oSymbol.children) { oSymbol.children.forEach(o => cleanTree(o)); } }
javascript
function cleanTree (oSymbol) { delete oSymbol.treeName; delete oSymbol.parent; if (oSymbol.children) { oSymbol.children.forEach(o => cleanTree(o)); } }
[ "function", "cleanTree", "(", "oSymbol", ")", "{", "delete", "oSymbol", ".", "treeName", ";", "delete", "oSymbol", ".", "parent", ";", "if", "(", "oSymbol", ".", "children", ")", "{", "oSymbol", ".", "children", ".", "forEach", "(", "o", "=>", "cleanTree...
Clean tree - keep file size down
[ "Clean", "tree", "-", "keep", "file", "size", "down" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/lib/jsdoc/create-api-index.js#L329-L335
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js
addInfixOperator
function addInfixOperator(sId, iLbp) { // Note: this function is executed at load time only! mFilterParserSymbols[sId] = { lbp : iLbp, led : function (oToken, oLeft) { oToken.type = "Edm.Boolean"; // Note: currently we only support logical operators oToken.precedence = iLbp; oToken.left = oLeft; ...
javascript
function addInfixOperator(sId, iLbp) { // Note: this function is executed at load time only! mFilterParserSymbols[sId] = { lbp : iLbp, led : function (oToken, oLeft) { oToken.type = "Edm.Boolean"; // Note: currently we only support logical operators oToken.precedence = iLbp; oToken.left = oLeft; ...
[ "function", "addInfixOperator", "(", "sId", ",", "iLbp", ")", "{", "// Note: this function is executed at load time only!", "mFilterParserSymbols", "[", "sId", "]", "=", "{", "lbp", ":", "iLbp", ",", "led", ":", "function", "(", "oToken", ",", "oLeft", ")", "{",...
Adds an infix operator to mFilterParserSymbols. @param {string} sId The token ID @param {number} iLbp The "left binding power"
[ "Adds", "an", "infix", "operator", "to", "mFilterParserSymbols", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L170-L182
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js
addLeafSymbol
function addLeafSymbol(sId) { // Note: this function is executed at load time only! mFilterParserSymbols[sId] = { lbp : 0, nud : function (oToken) { oToken.precedence = 99; // prevent it from being enclosed in brackets return oToken; } }; }
javascript
function addLeafSymbol(sId) { // Note: this function is executed at load time only! mFilterParserSymbols[sId] = { lbp : 0, nud : function (oToken) { oToken.precedence = 99; // prevent it from being enclosed in brackets return oToken; } }; }
[ "function", "addLeafSymbol", "(", "sId", ")", "{", "// Note: this function is executed at load time only!", "mFilterParserSymbols", "[", "sId", "]", "=", "{", "lbp", ":", "0", ",", "nud", ":", "function", "(", "oToken", ")", "{", "oToken", ".", "precedence", "="...
Adds a leaf symbol to mFilterParserSymbols. @param {string} sId The token ID
[ "Adds", "a", "leaf", "symbol", "to", "mFilterParserSymbols", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L189-L198
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js
brackets
function brackets() { for (;;) { oToken = that.advance(); if (!oToken || oToken.id === ';') { that.expected("')'", oToken); } sValue += oToken.value; if (oToken.id === ")") { return; } if (oToken.id === "(") { brackets(); } } }
javascript
function brackets() { for (;;) { oToken = that.advance(); if (!oToken || oToken.id === ';') { that.expected("')'", oToken); } sValue += oToken.value; if (oToken.id === ")") { return; } if (oToken.id === "(") { brackets(); } } }
[ "function", "brackets", "(", ")", "{", "for", "(", ";", ";", ")", "{", "oToken", "=", "that", ".", "advance", "(", ")", ";", "if", "(", "!", "oToken", "||", "oToken", ".", "id", "===", "';'", ")", "{", "that", ".", "expected", "(", "\"')'\"", "...
recursive function that advances and adds to sValue until the matching closing bracket has been consumed
[ "recursive", "function", "that", "advances", "and", "adds", "to", "sValue", "until", "the", "matching", "closing", "bracket", "has", "been", "consumed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L482-L496
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js
tokenizeDoubleQuotedString
function tokenizeDoubleQuotedString(sNext, sOption, iAt) { var c, sEscape, bEscaping = false, i; for (i = 1; i < sNext.length; i += 1) { if (bEscaping) { bEscaping = false; } else { c = sNext[i]; if (c === "%") { sEscape = sNext.slice(i + 1, i + 3); if (rEscapeDigits.test(sEsca...
javascript
function tokenizeDoubleQuotedString(sNext, sOption, iAt) { var c, sEscape, bEscaping = false, i; for (i = 1; i < sNext.length; i += 1) { if (bEscaping) { bEscaping = false; } else { c = sNext[i]; if (c === "%") { sEscape = sNext.slice(i + 1, i + 3); if (rEscapeDigits.test(sEsca...
[ "function", "tokenizeDoubleQuotedString", "(", "sNext", ",", "sOption", ",", "iAt", ")", "{", "var", "c", ",", "sEscape", ",", "bEscaping", "=", "false", ",", "i", ";", "for", "(", "i", "=", "1", ";", "i", "<", "sNext", ".", "length", ";", "i", "+=...
Tokenizes a c-like string. It starts and ends with a double quote, backslash is the escape character. Both characters may be %-encoded. @param {string} sNext The untokenized input starting with the opening quote @param {string} sOption The option string (for an error message) @param {number} iAt The position in the op...
[ "Tokenizes", "a", "c", "-", "like", "string", ".", "It", "starts", "and", "ends", "with", "a", "double", "quote", "backslash", "is", "the", "escape", "character", ".", "Both", "characters", "may", "be", "%", "-", "encoded", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L655-L680
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js
tokenize
function tokenize(sOption) { var iAt = 1, // The token's position for error messages; we count starting with 1 sId, aMatches, sNext = sOption, iOffset, oToken, aTokens = [], sValue; while (sNext.length) { aMatches = rToken.exec(sNext); iOffset = 0; if (aMatches) { sValue = aMatche...
javascript
function tokenize(sOption) { var iAt = 1, // The token's position for error messages; we count starting with 1 sId, aMatches, sNext = sOption, iOffset, oToken, aTokens = [], sValue; while (sNext.length) { aMatches = rToken.exec(sNext); iOffset = 0; if (aMatches) { sValue = aMatche...
[ "function", "tokenize", "(", "sOption", ")", "{", "var", "iAt", "=", "1", ",", "// The token's position for error messages; we count starting with 1", "sId", ",", "aMatches", ",", "sNext", "=", "sOption", ",", "iOffset", ",", "oToken", ",", "aTokens", "=", "[", ...
Splits the option string into an array of tokens. @param {string} sOption The option string @returns {object[]} The array of tokens.
[ "Splits", "the", "option", "string", "into", "an", "array", "of", "tokens", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Parser.js#L688-L748
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Sample.controller.js
function (sSampleId, sIframePath) { var aIFramePathParts = sIframePath.split("/"), i; for (i = 0; i < aIFramePathParts.length - 1; i++) { if (aIFramePathParts[i] == "..") { // iframe path has parts pointing one folder up so remove last part of the sSampleId sSampleId = sSampleId.substring...
javascript
function (sSampleId, sIframePath) { var aIFramePathParts = sIframePath.split("/"), i; for (i = 0; i < aIFramePathParts.length - 1; i++) { if (aIFramePathParts[i] == "..") { // iframe path has parts pointing one folder up so remove last part of the sSampleId sSampleId = sSampleId.substring...
[ "function", "(", "sSampleId", ",", "sIframePath", ")", "{", "var", "aIFramePathParts", "=", "sIframePath", ".", "split", "(", "\"/\"", ")", ",", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "aIFramePathParts", ".", "length", "-", "1", ";", "i"...
Extends the sSampleId with the relative path defined in sIframePath and returns the resulting path. @param {string} sSampleId @param {string} sIframe @returns {string} @private
[ "Extends", "the", "sSampleId", "with", "the", "relative", "path", "defined", "in", "sIframePath", "and", "returns", "the", "resulting", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/Sample.controller.js#L208-L223
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js
function(oSyncPoint) { // application cachebuster mechanism (copy of array for later modification) var oConfig = oConfiguration.getAppCacheBuster(); if (oConfig && oConfig.length > 0) { oConfig = oConfig.slice(); // flag to activate the cachebuster var bActive = true; // fallback fo...
javascript
function(oSyncPoint) { // application cachebuster mechanism (copy of array for later modification) var oConfig = oConfiguration.getAppCacheBuster(); if (oConfig && oConfig.length > 0) { oConfig = oConfig.slice(); // flag to activate the cachebuster var bActive = true; // fallback fo...
[ "function", "(", "oSyncPoint", ")", "{", "// application cachebuster mechanism (copy of array for later modification)", "var", "oConfig", "=", "oConfiguration", ".", "getAppCacheBuster", "(", ")", ";", "if", "(", "oConfig", "&&", "oConfig", ".", "length", ">", "0", ")...
Boots the AppCacheBuster by initializing and registering the base URLs configured in the UI5 bootstrap. @param {Object} [oSyncPoint] the sync point which is used to chain the execution of the AppCacheBuster @private
[ "Boots", "the", "AppCacheBuster", "by", "initializing", "and", "registering", "the", "base", "URLs", "configured", "in", "the", "UI5", "bootstrap", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L274-L315
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js
function() { // activate the session (do not create the session for compatibility reasons with mIndex previously) oSession.active = true; // store the original function / property description to intercept fnValidateProperty = ManagedObject.prototype.validateProperty; descScriptSrc = Object.getOwnP...
javascript
function() { // activate the session (do not create the session for compatibility reasons with mIndex previously) oSession.active = true; // store the original function / property description to intercept fnValidateProperty = ManagedObject.prototype.validateProperty; descScriptSrc = Object.getOwnP...
[ "function", "(", ")", "{", "// activate the session (do not create the session for compatibility reasons with mIndex previously)", "oSession", ".", "active", "=", "true", ";", "// store the original function / property description to intercept", "fnValidateProperty", "=", "ManagedObject"...
Initializes the AppCacheBuster. Hooks into the relevant functions in the Core to intercept the code which are dealing with URLs and converts those URLs into cachebuster URLs. The intercepted functions are: <ul> <li><code>XMLHttpRequest.prototype.open</code></li> <li><code>HTMLScriptElement.prototype.src</code></li> <l...
[ "Initializes", "the", "AppCacheBuster", ".", "Hooks", "into", "the", "relevant", "functions", "in", "the", "Core", "to", "intercept", "the", "code", "which", "are", "dealing", "with", "URLs", "and", "converts", "those", "URLs", "into", "cachebuster", "URLs", "...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L332-L425
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js
function(descriptor) { var newDescriptor = { get: descriptor.get, set: function(val) { if (fnIsACBUrl(val)) { val = fnConvertUrl(val); } descriptor.set.call(this, val); }, enumerable: descriptor.enumerable, configurable: descriptor.configurable }; ...
javascript
function(descriptor) { var newDescriptor = { get: descriptor.get, set: function(val) { if (fnIsACBUrl(val)) { val = fnConvertUrl(val); } descriptor.set.call(this, val); }, enumerable: descriptor.enumerable, configurable: descriptor.configurable }; ...
[ "function", "(", "descriptor", ")", "{", "var", "newDescriptor", "=", "{", "get", ":", "descriptor", ".", "get", ",", "set", ":", "function", "(", "val", ")", "{", "if", "(", "fnIsACBUrl", "(", "val", ")", ")", "{", "val", "=", "fnConvertUrl", "(", ...
create an interceptor description which validates the value of the setter whether to rewrite the URL or not
[ "create", "an", "interceptor", "description", "which", "validates", "the", "value", "of", "the", "setter", "whether", "to", "rewrite", "the", "URL", "or", "not" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L389-L403
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js
function() { // remove the function interceptions ManagedObject.prototype.validateProperty = fnValidateProperty; // only remove xhr interception if xhr#open was not modified meanwhile if (XMLHttpRequest.prototype.open === fnEnhancedXhrOpen) { XMLHttpRequest.prototype.open = fnXhrOpenOrig; } ...
javascript
function() { // remove the function interceptions ManagedObject.prototype.validateProperty = fnValidateProperty; // only remove xhr interception if xhr#open was not modified meanwhile if (XMLHttpRequest.prototype.open === fnEnhancedXhrOpen) { XMLHttpRequest.prototype.open = fnXhrOpenOrig; } ...
[ "function", "(", ")", "{", "// remove the function interceptions", "ManagedObject", ".", "prototype", ".", "validateProperty", "=", "fnValidateProperty", ";", "// only remove xhr interception if xhr#open was not modified meanwhile", "if", "(", "XMLHttpRequest", ".", "prototype", ...
Terminates the AppCacheBuster and removes the hooks from the URL specific functions. This will also clear the index which is used to prefix matching URLs. @private
[ "Terminates", "the", "AppCacheBuster", "and", "removes", "the", "hooks", "from", "the", "URL", "specific", "functions", ".", "This", "will", "also", "clear", "the", "index", "which", "is", "used", "to", "prefix", "matching", "URLs", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L434-L463
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js
function(sUrl) { // local resources are registered with "./" => we remove the leading "./"! // (code location for this: sap/ui/Global.js:sap.ui.localResources) // we by default normalize all relative URLs for a common base var oUri = URI(sUrl || "./"); if (oUri.is("relative")) { //(sUrl.match(/^\.\...
javascript
function(sUrl) { // local resources are registered with "./" => we remove the leading "./"! // (code location for this: sap/ui/Global.js:sap.ui.localResources) // we by default normalize all relative URLs for a common base var oUri = URI(sUrl || "./"); if (oUri.is("relative")) { //(sUrl.match(/^\.\...
[ "function", "(", "sUrl", ")", "{", "// local resources are registered with \"./\" => we remove the leading \"./\"!", "// (code location for this: sap/ui/Global.js:sap.ui.localResources)", "// we by default normalize all relative URLs for a common base", "var", "oUri", "=", "URI", "(", "sUr...
Normalizes the given URL and make it absolute. @param {string} sUrl any URL @return {string} normalized URL @public
[ "Normalizes", "the", "given", "URL", "and", "make", "it", "absolute", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/AppCacheBuster.js#L540-L554
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/Model.js
_traverseFilter
function _traverseFilter (vFilters, fnCheck) { vFilters = vFilters || []; if (vFilters instanceof Filter) { vFilters = [vFilters]; } // filter has more sub-filter instances (we ignore the subfilters below the any/all operators) for (var i = 0; i < vFilters.length; i++) { // check single Filter var ...
javascript
function _traverseFilter (vFilters, fnCheck) { vFilters = vFilters || []; if (vFilters instanceof Filter) { vFilters = [vFilters]; } // filter has more sub-filter instances (we ignore the subfilters below the any/all operators) for (var i = 0; i < vFilters.length; i++) { // check single Filter var ...
[ "function", "_traverseFilter", "(", "vFilters", ",", "fnCheck", ")", "{", "vFilters", "=", "vFilters", "||", "[", "]", ";", "if", "(", "vFilters", "instanceof", "Filter", ")", "{", "vFilters", "=", "[", "vFilters", "]", ";", "}", "// filter has more sub-filt...
Traverses the given filter tree. @param {sap.ui.model.Filter[]|sap.ui.model.Filter} vFilters Array of filters or a single filter instance, which will be checked for unsupported filter operators @param {function} fnCheck Check function which is called for each filter instance in the tree @private
[ "Traverses", "the", "given", "filter", "tree", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/Model.js#L1030-L1049
train
SAP/openui5
src/sap.ui.dt/src/sap/ui/dt/util/ZIndexManager.js
function () { //get all open popups from InstanceManager var aAllOpenPopups = fnGetPopups(); var aValidatedPopups = []; var aInvalidatedPopups = []; aAllOpenPopups.forEach(function(oOpenPopup) { // check if non-adaptable popup var bValid = _aPopupFilters.every(function (fnFilter) { return f...
javascript
function () { //get all open popups from InstanceManager var aAllOpenPopups = fnGetPopups(); var aValidatedPopups = []; var aInvalidatedPopups = []; aAllOpenPopups.forEach(function(oOpenPopup) { // check if non-adaptable popup var bValid = _aPopupFilters.every(function (fnFilter) { return f...
[ "function", "(", ")", "{", "//get all open popups from InstanceManager", "var", "aAllOpenPopups", "=", "fnGetPopups", "(", ")", ";", "var", "aValidatedPopups", "=", "[", "]", ";", "var", "aInvalidatedPopups", "=", "[", "]", ";", "aAllOpenPopups", ".", "forEach", ...
Calculates the reliable z-index in the current window considering the global BusyIndicator dialog. Algorithm: 1) When popups are already open on the screen: the highest z-index of validated popups is compared with the lowest z-index of invalidated popups. The invalidated popups also include any BusyIndicator that migh...
[ "Calculates", "the", "reliable", "z", "-", "index", "in", "the", "current", "window", "considering", "the", "global", "BusyIndicator", "dialog", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.dt/src/sap/ui/dt/util/ZIndexManager.js#L97-L129
train
SAP/openui5
src/sap.ui.dt/src/sap/ui/dt/util/ZIndexManager.js
function (iCurrent) { // deduct indices reserved from current z-index var iMaxZIndex = iCurrent - Z_INDICES_RESERVED; // initial minimum z-index var iMinZIndex = iCurrent - Z_INDEX_STEP; var iNextZIndex = fnGetLastZIndex(iMinZIndex, iMaxZIndex, aAssignedZIndices); aAssignedZIndices.push(iNextZIndex); ...
javascript
function (iCurrent) { // deduct indices reserved from current z-index var iMaxZIndex = iCurrent - Z_INDICES_RESERVED; // initial minimum z-index var iMinZIndex = iCurrent - Z_INDEX_STEP; var iNextZIndex = fnGetLastZIndex(iMinZIndex, iMaxZIndex, aAssignedZIndices); aAssignedZIndices.push(iNextZIndex); ...
[ "function", "(", "iCurrent", ")", "{", "// deduct indices reserved from current z-index", "var", "iMaxZIndex", "=", "iCurrent", "-", "Z_INDICES_RESERVED", ";", "// initial minimum z-index", "var", "iMinZIndex", "=", "iCurrent", "-", "Z_INDEX_STEP", ";", "var", "iNextZInde...
Returns the next minimum possible z-index based on the passed z-index value. @param {int} iCurrent Current z-index value @returns {int} The next minimum z-index value @private
[ "Returns", "the", "next", "minimum", "possible", "z", "-", "index", "based", "on", "the", "passed", "z", "-", "index", "value", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.dt/src/sap/ui/dt/util/ZIndexManager.js#L185-L193
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/FESR.js
setClientDevice
function setClientDevice() { var iClientId = 0; if (Device.system.combi) { iClientId = 1; } else if (Device.system.desktop) { iClientId = 2; } else if (Device.system.tablet) { iClientId = 4; } else if (Device.system.phone) { iClientId = 3; } return iClientId; }
javascript
function setClientDevice() { var iClientId = 0; if (Device.system.combi) { iClientId = 1; } else if (Device.system.desktop) { iClientId = 2; } else if (Device.system.tablet) { iClientId = 4; } else if (Device.system.phone) { iClientId = 3; } return iClientId; }
[ "function", "setClientDevice", "(", ")", "{", "var", "iClientId", "=", "0", ";", "if", "(", "Device", ".", "system", ".", "combi", ")", "{", "iClientId", "=", "1", ";", "}", "else", "if", "(", "Device", ".", "system", ".", "desktop", ")", "{", "iCl...
current header string
[ "current", "header", "string" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/FESR.js#L33-L45
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/FESR.js
createFESR
function createFESR(oInteraction, oFESRHandle) { return [ format(ROOT_ID, 32), // root_context_id format(sFESRTransactionId, 32), // transaction_id format(oInteraction.navigation, 16), // client_navigation_time format(oInteraction.roundtrip, 16), // client_round_trip_time format(oFESRHandle.timeToInter...
javascript
function createFESR(oInteraction, oFESRHandle) { return [ format(ROOT_ID, 32), // root_context_id format(sFESRTransactionId, 32), // transaction_id format(oInteraction.navigation, 16), // client_navigation_time format(oInteraction.roundtrip, 16), // client_round_trip_time format(oFESRHandle.timeToInter...
[ "function", "createFESR", "(", "oInteraction", ",", "oFESRHandle", ")", "{", "return", "[", "format", "(", "ROOT_ID", ",", "32", ")", ",", "// root_context_id", "format", "(", "sFESRTransactionId", ",", "32", ")", ",", "// transaction_id", "format", "(", "oInt...
creates mandatory FESR header string
[ "creates", "mandatory", "FESR", "header", "string" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/FESR.js#L109-L123
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/FESR.js
createFESRopt
function createFESRopt(oInteraction, oFESRHandle) { return [ format(oFESRHandle.appNameShort, 20, true), // application_name format(oFESRHandle.stepName, 20, true), // step_name "", // not assigned format(CLIENT_MODEL, 20), // client_model format(oInteraction.bytesSent, 16), // client_data_sent form...
javascript
function createFESRopt(oInteraction, oFESRHandle) { return [ format(oFESRHandle.appNameShort, 20, true), // application_name format(oFESRHandle.stepName, 20, true), // step_name "", // not assigned format(CLIENT_MODEL, 20), // client_model format(oInteraction.bytesSent, 16), // client_data_sent form...
[ "function", "createFESRopt", "(", "oInteraction", ",", "oFESRHandle", ")", "{", "return", "[", "format", "(", "oFESRHandle", ".", "appNameShort", ",", "20", ",", "true", ")", ",", "// application_name", "format", "(", "oFESRHandle", ".", "stepName", ",", "20",...
creates optional FESR header string
[ "creates", "optional", "FESR", "header", "string" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/FESR.js#L126-L149
train
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/trace/FESR.js
format
function format(vField, iLength, bCutFromFront) { if (!vField) { vField = vField === 0 ? "0" : ""; } else if (typeof vField === "number") { var iField = vField; vField = Math.round(vField).toString(); // Calculation of figures may be erroneous because incomplete performance entries lead to negative /...
javascript
function format(vField, iLength, bCutFromFront) { if (!vField) { vField = vField === 0 ? "0" : ""; } else if (typeof vField === "number") { var iField = vField; vField = Math.round(vField).toString(); // Calculation of figures may be erroneous because incomplete performance entries lead to negative /...
[ "function", "format", "(", "vField", ",", "iLength", ",", "bCutFromFront", ")", "{", "if", "(", "!", "vField", ")", "{", "vField", "=", "vField", "===", "0", "?", "\"0\"", ":", "\"\"", ";", "}", "else", "if", "(", "typeof", "vField", "===", "\"number...
format string to fesr compliant string
[ "format", "string", "to", "fesr", "compliant", "string" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/trace/FESR.js#L152-L167
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/variants/util/VariantUtil.js
function(oComponent) { var aTechnicalParameters = flUtils.getTechnicalParametersForComponent(oComponent); return aTechnicalParameters && aTechnicalParameters[VariantUtil.variantTechnicalParameterName] && Array.isArray(aTechnicalParameters[VariantUtil.variantTechnicalParameterName]) && aTechnicalParame...
javascript
function(oComponent) { var aTechnicalParameters = flUtils.getTechnicalParametersForComponent(oComponent); return aTechnicalParameters && aTechnicalParameters[VariantUtil.variantTechnicalParameterName] && Array.isArray(aTechnicalParameters[VariantUtil.variantTechnicalParameterName]) && aTechnicalParame...
[ "function", "(", "oComponent", ")", "{", "var", "aTechnicalParameters", "=", "flUtils", ".", "getTechnicalParametersForComponent", "(", "oComponent", ")", ";", "return", "aTechnicalParameters", "&&", "aTechnicalParameters", "[", "VariantUtil", ".", "variantTechnicalParame...
Returns control variant technical parameter for the passed component. @param {object} oComponent - Component instance used to get the technical parameters @returns {string|undefined} Returns the control variant technical parameter
[ "Returns", "control", "variant", "technical", "parameter", "for", "the", "passed", "component", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/variants/util/VariantUtil.js#L118-L124
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TablePointerExtension.js
function() { this._ExtensionHelper = ExtensionHelper; this._ColumnResizeHelper = ColumnResizeHelper; this._InteractiveResizeHelper = InteractiveResizeHelper; this._ReorderHelper = ReorderHelper; this._ExtensionDelegate = ExtensionDelegate; this._RowHoverHandler = RowHoverHandler; this._KNOWNCLICKAB...
javascript
function() { this._ExtensionHelper = ExtensionHelper; this._ColumnResizeHelper = ColumnResizeHelper; this._InteractiveResizeHelper = InteractiveResizeHelper; this._ReorderHelper = ReorderHelper; this._ExtensionDelegate = ExtensionDelegate; this._RowHoverHandler = RowHoverHandler; this._KNOWNCLICKAB...
[ "function", "(", ")", "{", "this", ".", "_ExtensionHelper", "=", "ExtensionHelper", ";", "this", ".", "_ColumnResizeHelper", "=", "ColumnResizeHelper", ";", "this", ".", "_InteractiveResizeHelper", "=", "InteractiveResizeHelper", ";", "this", ".", "_ReorderHelper", ...
Enables debugging for the extension. Internal helper classes become accessible. @private
[ "Enables", "debugging", "for", "the", "extension", ".", "Internal", "helper", "classes", "become", "accessible", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TablePointerExtension.js#L979-L987
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TablePointerExtension.js
function(iColIndex, oEvent) { var oTable = this.getTable(); if (oTable && TableUtils.Column.isColumnMovable(oTable.getColumns()[iColIndex])) { // Starting column drag & drop. We wait 200ms to make sure it is no click on the column to open the menu. oTable._mTimeouts.delayedColumnReorderTimerId = setTimeou...
javascript
function(iColIndex, oEvent) { var oTable = this.getTable(); if (oTable && TableUtils.Column.isColumnMovable(oTable.getColumns()[iColIndex])) { // Starting column drag & drop. We wait 200ms to make sure it is no click on the column to open the menu. oTable._mTimeouts.delayedColumnReorderTimerId = setTimeou...
[ "function", "(", "iColIndex", ",", "oEvent", ")", "{", "var", "oTable", "=", "this", ".", "getTable", "(", ")", ";", "if", "(", "oTable", "&&", "TableUtils", ".", "Column", ".", "isColumnMovable", "(", "oTable", ".", "getColumns", "(", ")", "[", "iColI...
Initialize the basic event handling for column reordering and starts the reordering. @param {int} iColIndex The index of the column to resize. @param {jQuery.Event} oEvent The event object.
[ "Initialize", "the", "basic", "event", "handling", "for", "column", "reordering", "and", "starts", "the", "reordering", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TablePointerExtension.js#L1007-L1015
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(oRm) { oRm.write("<div"); oRm.addClass("sapMListUl"); oRm.addClass("sapMGrowingList"); oRm.writeAttribute("id", this._oControl.getId() + "-triggerList"); oRm.addStyle("display", "none"); oRm.writeClasses(); oRm.writeStyles(); oRm.write(">"); oRm.renderControl(this._getTrigger()); ...
javascript
function(oRm) { oRm.write("<div"); oRm.addClass("sapMListUl"); oRm.addClass("sapMGrowingList"); oRm.writeAttribute("id", this._oControl.getId() + "-triggerList"); oRm.addStyle("display", "none"); oRm.writeClasses(); oRm.writeStyles(); oRm.write(">"); oRm.renderControl(this._getTrigger()); ...
[ "function", "(", "oRm", ")", "{", "oRm", ".", "write", "(", "\"<div\"", ")", ";", "oRm", ".", "addClass", "(", "\"sapMListUl\"", ")", ";", "oRm", ".", "addClass", "(", "\"sapMGrowingList\"", ")", ";", "oRm", ".", "writeAttribute", "(", "\"id\"", ",", "...
renders load more trigger
[ "renders", "load", "more", "trigger" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L96-L107
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function() { if (!this._oControl || this._bLoading) { return; } // if max item count not reached or if we do not know the count var oBinding = this._oControl.getBinding("items"); if (oBinding && !oBinding.isLengthFinal() || this._iLimit < this._oControl.getMaxItemsCount()) { // The GrowingEnable...
javascript
function() { if (!this._oControl || this._bLoading) { return; } // if max item count not reached or if we do not know the count var oBinding = this._oControl.getBinding("items"); if (oBinding && !oBinding.isLengthFinal() || this._iLimit < this._oControl.getMaxItemsCount()) { // The GrowingEnable...
[ "function", "(", ")", "{", "if", "(", "!", "this", ".", "_oControl", "||", "this", ".", "_bLoading", ")", "{", "return", ";", "}", "// if max item count not reached or if we do not know the count", "var", "oBinding", "=", "this", ".", "_oControl", ".", "getBindi...
call to request new page
[ "call", "to", "request", "new", "page" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L173-L191
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(sChangeReason) { this._bLoading = false; this._updateTriggerDelayed(false); this._oControl.onAfterPageLoaded(this.getInfo(), sChangeReason); // After the data has been loaded, restore the busy indicator handling of the parent control. if (this._oControl.setEnableBusyIndicator) { this._oCont...
javascript
function(sChangeReason) { this._bLoading = false; this._updateTriggerDelayed(false); this._oControl.onAfterPageLoaded(this.getInfo(), sChangeReason); // After the data has been loaded, restore the busy indicator handling of the parent control. if (this._oControl.setEnableBusyIndicator) { this._oCont...
[ "function", "(", "sChangeReason", ")", "{", "this", ".", "_bLoading", "=", "false", ";", "this", ".", "_updateTriggerDelayed", "(", "false", ")", ";", "this", ".", "_oControl", ".", "onAfterPageLoaded", "(", "this", ".", "getInfo", "(", ")", ",", "sChangeR...
called after new page loaded
[ "called", "after", "new", "page", "loaded" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L200-L209
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function() { var sTriggerID = this._oControl.getId() + "-trigger", sTriggerText = this._oControl.getGrowingTriggerText(); sTriggerText = sTriggerText || sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("LOAD_MORE_DATA"); this._oControl.addNavSection(sTriggerID); if (this._oTrigger) { thi...
javascript
function() { var sTriggerID = this._oControl.getId() + "-trigger", sTriggerText = this._oControl.getGrowingTriggerText(); sTriggerText = sTriggerText || sap.ui.getCore().getLibraryResourceBundle("sap.m").getText("LOAD_MORE_DATA"); this._oControl.addNavSection(sTriggerID); if (this._oTrigger) { thi...
[ "function", "(", ")", "{", "var", "sTriggerID", "=", "this", ".", "_oControl", ".", "getId", "(", ")", "+", "\"-trigger\"", ",", "sTriggerText", "=", "this", ".", "_oControl", ".", "getGrowingTriggerText", "(", ")", ";", "sTriggerText", "=", "sTriggerText", ...
created and returns load more trigger
[ "created", "and", "returns", "load", "more", "trigger" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L212-L261
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(oBinding) { var aSorters = oBinding.aSorters || []; var oSorter = aSorters[0] || {}; return (oSorter.fnGroup) ? oSorter.sPath || "" : ""; }
javascript
function(oBinding) { var aSorters = oBinding.aSorters || []; var oSorter = aSorters[0] || {}; return (oSorter.fnGroup) ? oSorter.sPath || "" : ""; }
[ "function", "(", "oBinding", ")", "{", "var", "aSorters", "=", "oBinding", ".", "aSorters", "||", "[", "]", ";", "var", "oSorter", "=", "aSorters", "[", "0", "]", "||", "{", "}", ";", "return", "(", "oSorter", ".", "fnGroup", ")", "?", "oSorter", "...
returns the first sorters grouping path when available
[ "returns", "the", "first", "sorters", "grouping", "path", "when", "available" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L269-L273
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(oContext, oBindingInfo, bSuppressInvalidate) { var oControl = this._oControl, oBinding = oBindingInfo.binding, oItem = this.createListItem(oContext, oBindingInfo); if (oBinding.isGrouped()) { // creates group header if need var aItems = oControl.getItems(true), oLastItem = aItems[a...
javascript
function(oContext, oBindingInfo, bSuppressInvalidate) { var oControl = this._oControl, oBinding = oBindingInfo.binding, oItem = this.createListItem(oContext, oBindingInfo); if (oBinding.isGrouped()) { // creates group header if need var aItems = oControl.getItems(true), oLastItem = aItems[a...
[ "function", "(", "oContext", ",", "oBindingInfo", ",", "bSuppressInvalidate", ")", "{", "var", "oControl", "=", "this", ".", "_oControl", ",", "oBinding", "=", "oBindingInfo", ".", "binding", ",", "oItem", "=", "this", ".", "createListItem", "(", "oContext", ...
appends single list item to the list
[ "appends", "single", "list", "item", "to", "the", "list" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L310-L344
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(oContext, oBindingInfo) { this._iRenderedDataItems++; var oItem = oBindingInfo.factory(ManagedObjectMetadata.uid("clone"), oContext); return oItem.setBindingContext(oContext, oBindingInfo.model); }
javascript
function(oContext, oBindingInfo) { this._iRenderedDataItems++; var oItem = oBindingInfo.factory(ManagedObjectMetadata.uid("clone"), oContext); return oItem.setBindingContext(oContext, oBindingInfo.model); }
[ "function", "(", "oContext", ",", "oBindingInfo", ")", "{", "this", ".", "_iRenderedDataItems", "++", ";", "var", "oItem", "=", "oBindingInfo", ".", "factory", "(", "ManagedObjectMetadata", ".", "uid", "(", "\"clone\"", ")", ",", "oContext", ")", ";", "retur...
creates list item from the factory
[ "creates", "list", "item", "from", "the", "factory" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L361-L365
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(aContexts, oModel) { if (!aContexts.length) { return; } var aItems = this._oControl.getItems(true); for (var i = 0, c = 0, oItem; i < aItems.length; i++) { oItem = aItems[i]; // group headers are not in binding context if (!oItem.isGroupHeader()) { oItem.setBindingContext(aCo...
javascript
function(aContexts, oModel) { if (!aContexts.length) { return; } var aItems = this._oControl.getItems(true); for (var i = 0, c = 0, oItem; i < aItems.length; i++) { oItem = aItems[i]; // group headers are not in binding context if (!oItem.isGroupHeader()) { oItem.setBindingContext(aCo...
[ "function", "(", "aContexts", ",", "oModel", ")", "{", "if", "(", "!", "aContexts", ".", "length", ")", "{", "return", ";", "}", "var", "aItems", "=", "this", ".", "_oControl", ".", "getItems", "(", "true", ")", ";", "for", "(", "var", "i", "=", ...
update context on all items except group headers
[ "update", "context", "on", "all", "items", "except", "group", "headers" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L368-L382
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(aContexts, oBindingInfo, bSuppressInvalidate) { for (var i = 0; i < aContexts.length; i++) { this.addListItem(aContexts[i], oBindingInfo, bSuppressInvalidate); } }
javascript
function(aContexts, oBindingInfo, bSuppressInvalidate) { for (var i = 0; i < aContexts.length; i++) { this.addListItem(aContexts[i], oBindingInfo, bSuppressInvalidate); } }
[ "function", "(", "aContexts", ",", "oBindingInfo", ",", "bSuppressInvalidate", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "aContexts", ".", "length", ";", "i", "++", ")", "{", "this", ".", "addListItem", "(", "aContexts", "[", "i", "]...
add multiple items to the list via BindingContext
[ "add", "multiple", "items", "to", "the", "list", "via", "BindingContext" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L415-L419
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(aContexts, oBindingInfo, bSuppressInvalidate) { this.destroyListItems(bSuppressInvalidate); this.addListItems(aContexts, oBindingInfo, bSuppressInvalidate); if (bSuppressInvalidate) { var bHasFocus = this._oContainerDomRef.contains(document.activeElement); this.applyChunk(false); bHasFocus...
javascript
function(aContexts, oBindingInfo, bSuppressInvalidate) { this.destroyListItems(bSuppressInvalidate); this.addListItems(aContexts, oBindingInfo, bSuppressInvalidate); if (bSuppressInvalidate) { var bHasFocus = this._oContainerDomRef.contains(document.activeElement); this.applyChunk(false); bHasFocus...
[ "function", "(", "aContexts", ",", "oBindingInfo", ",", "bSuppressInvalidate", ")", "{", "this", ".", "destroyListItems", "(", "bSuppressInvalidate", ")", ";", "this", ".", "addListItems", "(", "aContexts", ",", "oBindingInfo", ",", "bSuppressInvalidate", ")", ";"...
destroy all the items and create from scratch
[ "destroy", "all", "the", "items", "and", "create", "from", "scratch" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L422-L432
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(oContext, oBindingInfo, iIndex) { var oItem = this.createListItem(oContext, oBindingInfo); this._oControl.insertAggregation("items", oItem, iIndex, true); this._aChunk.push(oItem); }
javascript
function(oContext, oBindingInfo, iIndex) { var oItem = this.createListItem(oContext, oBindingInfo); this._oControl.insertAggregation("items", oItem, iIndex, true); this._aChunk.push(oItem); }
[ "function", "(", "oContext", ",", "oBindingInfo", ",", "iIndex", ")", "{", "var", "oItem", "=", "this", ".", "createListItem", "(", "oContext", ",", "oBindingInfo", ")", ";", "this", ".", "_oControl", ".", "insertAggregation", "(", "\"items\"", ",", "oItem",...
inserts a single list item
[ "inserts", "a", "single", "list", "item" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L435-L439
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(sChangeReason) { if (!this._bDataRequested) { this._bDataRequested = true; this._onBeforePageLoaded(sChangeReason); } // set iItemCount to initial value if not set or no items at the control yet if (!this._iLimit || this.shouldReset(sChangeReason) || !this._oControl.getItems(true).length) ...
javascript
function(sChangeReason) { if (!this._bDataRequested) { this._bDataRequested = true; this._onBeforePageLoaded(sChangeReason); } // set iItemCount to initial value if not set or no items at the control yet if (!this._iLimit || this.shouldReset(sChangeReason) || !this._oControl.getItems(true).length) ...
[ "function", "(", "sChangeReason", ")", "{", "if", "(", "!", "this", ".", "_bDataRequested", ")", "{", "this", ".", "_bDataRequested", "=", "true", ";", "this", ".", "_onBeforePageLoaded", "(", "sChangeReason", ")", ";", "}", "// set iItemCount to initial value i...
refresh items only for OData model.
[ "refresh", "items", "only", "for", "OData", "model", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L450-L463
train
SAP/openui5
src/sap.m/src/sap/m/GrowingEnablement.js
function(bLoading) { var oTrigger = this._oTrigger, oControl = this._oControl; // If there are no visible columns then also hide the trigger. if (!oTrigger || !oControl || !oControl.shouldRenderItems() || !oControl.getDomRef()) { return; } var oBinding = oControl.getBinding("items"); if (!oB...
javascript
function(bLoading) { var oTrigger = this._oTrigger, oControl = this._oControl; // If there are no visible columns then also hide the trigger. if (!oTrigger || !oControl || !oControl.shouldRenderItems() || !oControl.getDomRef()) { return; } var oBinding = oControl.getBinding("items"); if (!oB...
[ "function", "(", "bLoading", ")", "{", "var", "oTrigger", "=", "this", ".", "_oTrigger", ",", "oControl", "=", "this", ".", "_oControl", ";", "// If there are no visible columns then also hide the trigger.", "if", "(", "!", "oTrigger", "||", "!", "oControl", "||",...
updates the trigger state
[ "updates", "the", "trigger", "state" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/GrowingEnablement.js#L611-L679
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/Targets.js
function () { var sTargetName; EventProvider.prototype.destroy.apply(this); for (sTargetName in this._mTargets) { if (this._mTargets.hasOwnProperty(sTargetName)) { this._mTargets[sTargetName].destroy(); } } this._mTargets = null; this._oCache = null; this._oConfig = null; ...
javascript
function () { var sTargetName; EventProvider.prototype.destroy.apply(this); for (sTargetName in this._mTargets) { if (this._mTargets.hasOwnProperty(sTargetName)) { this._mTargets[sTargetName].destroy(); } } this._mTargets = null; this._oCache = null; this._oConfig = null; ...
[ "function", "(", ")", "{", "var", "sTargetName", ";", "EventProvider", ".", "prototype", ".", "destroy", ".", "apply", "(", "this", ")", ";", "for", "(", "sTargetName", "in", "this", ".", "_mTargets", ")", "{", "if", "(", "this", ".", "_mTargets", ".",...
Destroys the targets instance and all created targets. Does not destroy the views instance passed to the constructor. It has to be destroyed separately. @public @returns { sap.ui.core.routing.Targets } this for chaining.
[ "Destroys", "the", "targets", "instance", "and", "all", "created", "targets", ".", "Does", "not", "destroy", "the", "views", "instance", "passed", "to", "the", "constructor", ".", "It", "has", "to", "be", "destroyed", "separately", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Targets.js#L347-L363
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/Targets.js
function (sName, oTargetOptions) { var oOldTarget = this.getTarget(sName), oTarget; if (oOldTarget) { Log.error("Target with name " + sName + " already exists", this); } else { oTarget = this._createTarget(sName, oTargetOptions); this._addParentTo(oTarget); } return this; }
javascript
function (sName, oTargetOptions) { var oOldTarget = this.getTarget(sName), oTarget; if (oOldTarget) { Log.error("Target with name " + sName + " already exists", this); } else { oTarget = this._createTarget(sName, oTargetOptions); this._addParentTo(oTarget); } return this; }
[ "function", "(", "sName", ",", "oTargetOptions", ")", "{", "var", "oOldTarget", "=", "this", ".", "getTarget", "(", "sName", ")", ",", "oTarget", ";", "if", "(", "oOldTarget", ")", "{", "Log", ".", "error", "(", "\"Target with name \"", "+", "sName", "+"...
Creates a target by using the given name and options. If there's already a target with the same name exists, the existing target is kept from being overwritten and an error log will be written to the development console. @param {string} sName the name of a target @param {object} oTarget the options of a target. The op...
[ "Creates", "a", "target", "by", "using", "the", "given", "name", "and", "options", ".", "If", "there", "s", "already", "a", "target", "with", "the", "same", "name", "exists", "the", "existing", "target", "is", "kept", "from", "being", "overwritten", "and",...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Targets.js#L427-L439
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/Targets.js
function (sName, oTargetOptions) { var oTarget, oOptions; oOptions = jQuery.extend(true, { _name: sName }, this._oConfig, oTargetOptions); oTarget = this._constructTarget(oOptions); oTarget.attachDisplay(function (oEvent) { var oParameters = oEvent.getParameters(); this.fireDisplay({ ...
javascript
function (sName, oTargetOptions) { var oTarget, oOptions; oOptions = jQuery.extend(true, { _name: sName }, this._oConfig, oTargetOptions); oTarget = this._constructTarget(oOptions); oTarget.attachDisplay(function (oEvent) { var oParameters = oEvent.getParameters(); this.fireDisplay({ ...
[ "function", "(", "sName", ",", "oTargetOptions", ")", "{", "var", "oTarget", ",", "oOptions", ";", "oOptions", "=", "jQuery", ".", "extend", "(", "true", ",", "{", "_name", ":", "sName", "}", ",", "this", ".", "_oConfig", ",", "oTargetOptions", ")", ";...
created all targets @param {string} sName @param {object} oTargetOptions @return {sap.ui.core.routing.Target} The created target object @private
[ "created", "all", "targets" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Targets.js#L564-L583
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
addSapParams
function addSapParams(oUri) { ['sap-client', 'sap-server'].forEach(function(sName) { if (!oUri.hasSearch(sName)) { var sValue = sap.ui.getCore().getConfiguration().getSAPParam(sName); if (sValue) { oUri.addSearch(sName, sValue); } } }); }
javascript
function addSapParams(oUri) { ['sap-client', 'sap-server'].forEach(function(sName) { if (!oUri.hasSearch(sName)) { var sValue = sap.ui.getCore().getConfiguration().getSAPParam(sName); if (sValue) { oUri.addSearch(sName, sValue); } } }); }
[ "function", "addSapParams", "(", "oUri", ")", "{", "[", "'sap-client'", ",", "'sap-server'", "]", ".", "forEach", "(", "function", "(", "sName", ")", "{", "if", "(", "!", "oUri", ".", "hasSearch", "(", "sName", ")", ")", "{", "var", "sValue", "=", "s...
Utility function which adds SAP-specific parameters to a URI instance @param {URI} oUri URI.js instance @private
[ "Utility", "function", "which", "adds", "SAP", "-", "specific", "parameters", "to", "a", "URI", "instance" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L56-L65
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
mergeDefinitionSource
function mergeDefinitionSource(mDefinitions, mDefinitionSource, mSourceData, oSource) { if (mSourceData) { for (var sName in mDefinitions) { if (!mDefinitionSource[sName] && mSourceData[sName] && mSourceData[sName].uri) { mDefinitionSource[sName] = oSource; } } } }
javascript
function mergeDefinitionSource(mDefinitions, mDefinitionSource, mSourceData, oSource) { if (mSourceData) { for (var sName in mDefinitions) { if (!mDefinitionSource[sName] && mSourceData[sName] && mSourceData[sName].uri) { mDefinitionSource[sName] = oSource; } } } }
[ "function", "mergeDefinitionSource", "(", "mDefinitions", ",", "mDefinitionSource", ",", "mSourceData", ",", "oSource", ")", "{", "if", "(", "mSourceData", ")", "{", "for", "(", "var", "sName", "in", "mDefinitions", ")", "{", "if", "(", "!", "mDefinitionSource...
Utility function which merges a map of property definitions to track from which "source" a property was defined. This function is used to find out which Component has defined which "dataSource/model". @param {object} mDefinitions Map with definitions to check @param {object} mDefinitionSource Object to extend with de...
[ "Utility", "function", "which", "merges", "a", "map", "of", "property", "definitions", "to", "track", "from", "which", "source", "a", "property", "was", "defined", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L80-L88
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
getManifestEntry
function getManifestEntry(oMetadata, oManifest, sKey, bMerged) { var oData = oManifest.getEntry(sKey); // merge / extend should only be done for objects or when entry wasn't found if (oData !== undefined && !isPlainObject(oData)) { return oData; } // merge the configuration of the parent manifest with lo...
javascript
function getManifestEntry(oMetadata, oManifest, sKey, bMerged) { var oData = oManifest.getEntry(sKey); // merge / extend should only be done for objects or when entry wasn't found if (oData !== undefined && !isPlainObject(oData)) { return oData; } // merge the configuration of the parent manifest with lo...
[ "function", "getManifestEntry", "(", "oMetadata", ",", "oManifest", ",", "sKey", ",", "bMerged", ")", "{", "var", "oData", "=", "oManifest", ".", "getEntry", "(", "sKey", ")", ";", "// merge / extend should only be done for objects or when entry wasn't found", "if", "...
Returns the configuration of a manifest section or the value for a specific path. If no section or key is specified, the return value is null. @param {sap.ui.core.ComponentMetadata} oMetadata the Component metadata @param {sap.ui.core.Manifest} oManifest the manifest @param {string} sKey Either the manifest section na...
[ "Returns", "the", "configuration", "of", "a", "manifest", "section", "or", "the", "value", "for", "a", "specific", "path", ".", "If", "no", "section", "or", "key", "is", "specified", "the", "return", "value", "is", "null", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L102-L124
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
createMetadataProxy
function createMetadataProxy(oMetadata, oManifest) { // create a proxy for the metadata object and simulate to be an // instance of the original metadata object of the Component // => retrieving the prototype from the original metadata to // support to proxy sub-classes of ComponentMetadata var oMetadataP...
javascript
function createMetadataProxy(oMetadata, oManifest) { // create a proxy for the metadata object and simulate to be an // instance of the original metadata object of the Component // => retrieving the prototype from the original metadata to // support to proxy sub-classes of ComponentMetadata var oMetadataP...
[ "function", "createMetadataProxy", "(", "oMetadata", ",", "oManifest", ")", "{", "// create a proxy for the metadata object and simulate to be an", "// instance of the original metadata object of the Component", "// => retrieving the prototype from the original metadata to", "// support to ...
Utility function which creates a metadata proxy object for the given metadata object @param {sap.ui.core.ComponentMetadata} oMetadata the Component metadata @param {sap.ui.core.Manifest} oManifest the manifest @return {sap.ui.core.ComponentMetadata} a metadata proxy object
[ "Utility", "function", "which", "creates", "a", "metadata", "proxy", "object", "for", "the", "given", "metadata", "object" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L134-L170
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
activateServices
function activateServices(oComponent) { var oServices = oComponent.getManifestEntry("/sap.ui5/services"); for (var sService in oServices) { if (oServices[sService].lazy === false) { oComponent.getService(sService); } } }
javascript
function activateServices(oComponent) { var oServices = oComponent.getManifestEntry("/sap.ui5/services"); for (var sService in oServices) { if (oServices[sService].lazy === false) { oComponent.getService(sService); } } }
[ "function", "activateServices", "(", "oComponent", ")", "{", "var", "oServices", "=", "oComponent", ".", "getManifestEntry", "(", "\"/sap.ui5/services\"", ")", ";", "for", "(", "var", "sService", "in", "oServices", ")", "{", "if", "(", "oServices", "[", "sServ...
Internal activation function for non lazy services which should be started immediately @param {sap.ui.core.Component} oComponent The Component instance @private
[ "Internal", "activation", "function", "for", "non", "lazy", "services", "which", "should", "be", "started", "immediately" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L933-L940
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
getPreloadModelConfigsFromManifest
function getPreloadModelConfigsFromManifest(oManifest, oComponentData, mCacheTokens) { var mModelConfigs = { afterManifest: {}, afterPreload: {} }; // deep clone is needed as the mainfest only returns a read-only copy (freezed object) var oManifestDataSources = jQuery.extend(true, {}, oManifest.getEntry(...
javascript
function getPreloadModelConfigsFromManifest(oManifest, oComponentData, mCacheTokens) { var mModelConfigs = { afterManifest: {}, afterPreload: {} }; // deep clone is needed as the mainfest only returns a read-only copy (freezed object) var oManifestDataSources = jQuery.extend(true, {}, oManifest.getEntry(...
[ "function", "getPreloadModelConfigsFromManifest", "(", "oManifest", ",", "oComponentData", ",", "mCacheTokens", ")", "{", "var", "mModelConfigs", "=", "{", "afterManifest", ":", "{", "}", ",", "afterPreload", ":", "{", "}", "}", ";", "// deep clone is needed as the ...
Returns two maps of model configurations to be used for the model "preload" feature. Used within loadComponent to create models during component load. "afterManifest" Models that are activated for preload via "preload=true" or URI parameter. They will be created after the manifest is available. "afterPreload" Current...
[ "Returns", "two", "maps", "of", "model", "configurations", "to", "be", "used", "for", "the", "model", "preload", "feature", ".", "Used", "within", "loadComponent", "to", "create", "models", "during", "component", "load", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L1728-L1789
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
collectLoadManifestPromises
function collectLoadManifestPromises(oMetadata, oManifest) { // ComponentMetadata classes with a static manifest or with legacy metadata // do already have a manifest, so no action required if (!oMetadata._oManifest) { // TODO: If the "manifest" property is set, the code to load the manifest.json could be ...
javascript
function collectLoadManifestPromises(oMetadata, oManifest) { // ComponentMetadata classes with a static manifest or with legacy metadata // do already have a manifest, so no action required if (!oMetadata._oManifest) { // TODO: If the "manifest" property is set, the code to load the manifest.json could be ...
[ "function", "collectLoadManifestPromises", "(", "oMetadata", ",", "oManifest", ")", "{", "// ComponentMetadata classes with a static manifest or with legacy metadata", "// do already have a manifest, so no action required", "if", "(", "!", "oMetadata", ".", "_oManifest", ")", "{", ...
Collects the promises to load the manifest content and all of its parents manifest files. Gathers promises within aManifestsToLoad. Gathers associates meta data objects within aMetadataObjects. @param {object} oMetadata The metadata object @param {sap.ui.core.Manifest} [oManifest] root manifest, which is possibly alre...
[ "Collects", "the", "promises", "to", "load", "the", "manifest", "content", "and", "all", "of", "its", "parents", "manifest", "files", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L1821-L1862
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
function() { // create a copy of arguments for local modification // and later handover to Component constructor var args = Array.prototype.slice.call(arguments); // inject the manifest to the settings object var mSettings; if (args.length === 0 || typeof args[0] === "object") { mS...
javascript
function() { // create a copy of arguments for local modification // and later handover to Component constructor var args = Array.prototype.slice.call(arguments); // inject the manifest to the settings object var mSettings; if (args.length === 0 || typeof args[0] === "object") { mS...
[ "function", "(", ")", "{", "// create a copy of arguments for local modification", "// and later handover to Component constructor", "var", "args", "=", "Array", ".", "prototype", ".", "slice", ".", "call", "(", "arguments", ")", ";", "// inject the manifest to the settings o...
create the proxy class for passing the manifest
[ "create", "the", "proxy", "class", "for", "passing", "the", "manifest" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L2496-L2521
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Component.js
function(oPromise) { // In order to make the error handling of the Promise.all() happen after all Promises finish, we catch all rejected Promises and make them resolve with an marked object. oPromise = oPromise.then( function(v) { return { result: v, rejected: false }; ...
javascript
function(oPromise) { // In order to make the error handling of the Promise.all() happen after all Promises finish, we catch all rejected Promises and make them resolve with an marked object. oPromise = oPromise.then( function(v) { return { result: v, rejected: false }; ...
[ "function", "(", "oPromise", ")", "{", "// In order to make the error handling of the Promise.all() happen after all Promises finish, we catch all rejected Promises and make them resolve with an marked object.", "oPromise", "=", "oPromise", ".", "then", "(", "function", "(", "v", ")", ...
trigger loading of libraries and component preloads and collect the given promises
[ "trigger", "loading", "of", "libraries", "and", "component", "preloads", "and", "collect", "the", "given", "promises" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L2670-L2687
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Fragment.js
function(sTemplateName) { var sUrl = sap.ui.require.toUrl(sTemplateName.replace(/\./g, "/")) + ".fragment.html"; var sHTML = _mHTMLTemplates[sUrl]; var sResourceName; if (!sHTML) { sResourceName = sTemplateName.replace(/\./g, "/") + ".fragment.html"; sHTML = LoaderExtensions.loadResource(sResourceN...
javascript
function(sTemplateName) { var sUrl = sap.ui.require.toUrl(sTemplateName.replace(/\./g, "/")) + ".fragment.html"; var sHTML = _mHTMLTemplates[sUrl]; var sResourceName; if (!sHTML) { sResourceName = sTemplateName.replace(/\./g, "/") + ".fragment.html"; sHTML = LoaderExtensions.loadResource(sResourceN...
[ "function", "(", "sTemplateName", ")", "{", "var", "sUrl", "=", "sap", ".", "ui", ".", "require", ".", "toUrl", "(", "sTemplateName", ".", "replace", "(", "/", "\\.", "/", "g", ",", "\"/\"", ")", ")", "+", "\".fragment.html\"", ";", "var", "sHTML", "...
Loads and returns a template for the given template name. Templates are only loaded once. @param {string} sTemplateName The name of the template @return {string} the template data @private
[ "Loads", "and", "returns", "a", "template", "for", "the", "given", "template", "name", ".", "Templates", "are", "only", "loaded", "once", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Fragment.js#L759-L773
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function() { var sName; // lazy load of LocaleData to avoid cyclic dependencies if ( !LocaleData ) { LocaleData = sap.ui.requireSync("sap/ui/core/LocaleData"); } if (this.calendarType) { for (sName in CalendarType) { if (sName.toLowerCase() === this.calendarType.toLowerCase()) { this...
javascript
function() { var sName; // lazy load of LocaleData to avoid cyclic dependencies if ( !LocaleData ) { LocaleData = sap.ui.requireSync("sap/ui/core/LocaleData"); } if (this.calendarType) { for (sName in CalendarType) { if (sName.toLowerCase() === this.calendarType.toLowerCase()) { this...
[ "function", "(", ")", "{", "var", "sName", ";", "// lazy load of LocaleData to avoid cyclic dependencies", "if", "(", "!", "LocaleData", ")", "{", "LocaleData", "=", "sap", ".", "ui", ".", "requireSync", "(", "\"sap/ui/core/LocaleData\"", ")", ";", "}", "if", "(...
Returns the calendar type which is being used in locale dependent functionality. When it's explicitly set by calling <code>setCalendar</code>, the set calendar type is returned. Otherwise, the calendar type is determined by checking the format settings and current locale. @return {sap.ui.core.CalendarType} the curren...
[ "Returns", "the", "calendar", "type", "which", "is", "being", "used", "in", "locale", "dependent", "functionality", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L820-L860
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function(sFormatLocale) { var oFormatLocale = convertToLocaleOrNull(sFormatLocale), mChanges; check(sFormatLocale == null || typeof sFormatLocale === "string" && oFormatLocale, "sFormatLocale must be a BCP47 language tag or Java Locale id or null"); if ( toLanguageTag(oFormatLocale) !== toLanguageTag(thi...
javascript
function(sFormatLocale) { var oFormatLocale = convertToLocaleOrNull(sFormatLocale), mChanges; check(sFormatLocale == null || typeof sFormatLocale === "string" && oFormatLocale, "sFormatLocale must be a BCP47 language tag or Java Locale id or null"); if ( toLanguageTag(oFormatLocale) !== toLanguageTag(thi...
[ "function", "(", "sFormatLocale", ")", "{", "var", "oFormatLocale", "=", "convertToLocaleOrNull", "(", "sFormatLocale", ")", ",", "mChanges", ";", "check", "(", "sFormatLocale", "==", "null", "||", "typeof", "sFormatLocale", "===", "\"string\"", "&&", "oFormatLoca...
Sets a new format locale to be used from now on for retrieving locale specific formatters. Modifying this setting does not have an impact on the retrieval of translated texts! Can either be set to a concrete value (a BCP47 or Java locale compliant language tag) or to <code>null</code>. When set to <code>null</code> (d...
[ "Sets", "a", "new", "format", "locale", "to", "be", "used", "from", "now", "on", "for", "retrieving", "locale", "specific", "formatters", ".", "Modifying", "this", "setting", "does", "not", "have", "an", "impact", "on", "the", "retrieval", "of", "translated"...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L921-L934
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function(sAnimationMode) { checkEnum(Configuration.AnimationMode, sAnimationMode, "animationMode"); // Set the animation to on or off depending on the animation mode to ensure backward compatibility. this.animation = (sAnimationMode !== Configuration.AnimationMode.minimal && sAnimationMode !== Configuration.A...
javascript
function(sAnimationMode) { checkEnum(Configuration.AnimationMode, sAnimationMode, "animationMode"); // Set the animation to on or off depending on the animation mode to ensure backward compatibility. this.animation = (sAnimationMode !== Configuration.AnimationMode.minimal && sAnimationMode !== Configuration.A...
[ "function", "(", "sAnimationMode", ")", "{", "checkEnum", "(", "Configuration", ".", "AnimationMode", ",", "sAnimationMode", ",", "\"animationMode\"", ")", ";", "// Set the animation to on or off depending on the animation mode to ensure backward compatibility.", "this", ".", "...
Sets the current animation mode. Expects an animation mode as string and validates it. If a wrong animation mode was set, an error is thrown. If the mode is valid it is set, then the attributes <code>data-sap-ui-animation</code> and <code>data-sap-ui-animation-mode</code> of the HTML document root element are also upd...
[ "Sets", "the", "current", "animation", "mode", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1016-L1027
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function(bRTL) { check(bRTL === null || typeof bRTL === "boolean", "bRTL must be null or a boolean"); var oldRTL = this.getRTL(), mChanges; this.rtl = bRTL; if ( oldRTL != this.getRTL() ) { // also take the derived RTL flag into account for the before/after comparison! mChanges = this._collect(); ...
javascript
function(bRTL) { check(bRTL === null || typeof bRTL === "boolean", "bRTL must be null or a boolean"); var oldRTL = this.getRTL(), mChanges; this.rtl = bRTL; if ( oldRTL != this.getRTL() ) { // also take the derived RTL flag into account for the before/after comparison! mChanges = this._collect(); ...
[ "function", "(", "bRTL", ")", "{", "check", "(", "bRTL", "===", "null", "||", "typeof", "bRTL", "===", "\"boolean\"", ",", "\"bRTL must be null or a boolean\"", ")", ";", "var", "oldRTL", "=", "this", ".", "getRTL", "(", ")", ",", "mChanges", ";", "this", ...
Sets the character orientation mode to be used from now on. Can either be set to a concrete value (true meaning right-to-left, false meaning left-to-right) or to <code>null</code> which means that the character orientation mode should be derived from the current language (incl. region) setting. After changing the cha...
[ "Sets", "the", "character", "orientation", "mode", "to", "be", "used", "from", "now", "on", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1071-L1083
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function(mSettings) { function applyAll(ctx, m) { var sName, sMethod; for ( sName in m ) { sMethod = "set" + sName.slice(0,1).toUpperCase() + sName.slice(1); if ( sName === 'formatSettings' && ctx.oFormatSettings ) { applyAll(ctx.oFormatSettings, m[sName]); } else if ( typeof ctx[sMetho...
javascript
function(mSettings) { function applyAll(ctx, m) { var sName, sMethod; for ( sName in m ) { sMethod = "set" + sName.slice(0,1).toUpperCase() + sName.slice(1); if ( sName === 'formatSettings' && ctx.oFormatSettings ) { applyAll(ctx.oFormatSettings, m[sName]); } else if ( typeof ctx[sMetho...
[ "function", "(", "mSettings", ")", "{", "function", "applyAll", "(", "ctx", ",", "m", ")", "{", "var", "sName", ",", "sMethod", ";", "for", "(", "sName", "in", "m", ")", "{", "sMethod", "=", "\"set\"", "+", "sName", ".", "slice", "(", "0", ",", "...
Applies multiple changes to the configuration at once. If the changed settings contain localization related settings like <code>language</code> or <ode>calendarType</code>, then only a single <code>localizationChanged</code> event will be fired. As the framework has to inform all existing components, elements, models ...
[ "Applies", "multiple", "changes", "to", "the", "configuration", "at", "once", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1475-L1498
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
checkEnum
function checkEnum(oEnum, sValue, sPropertyName) { var aValidValues = []; for (var sKey in oEnum) { if (oEnum.hasOwnProperty(sKey)) { if (oEnum[sKey] === sValue) { return; } aValidValues.push(oEnum[sKey]); } } throw new Error("Unsupported Enumeration value for " + sPropertyName + ", valid...
javascript
function checkEnum(oEnum, sValue, sPropertyName) { var aValidValues = []; for (var sKey in oEnum) { if (oEnum.hasOwnProperty(sKey)) { if (oEnum[sKey] === sValue) { return; } aValidValues.push(oEnum[sKey]); } } throw new Error("Unsupported Enumeration value for " + sPropertyName + ", valid...
[ "function", "checkEnum", "(", "oEnum", ",", "sValue", ",", "sPropertyName", ")", "{", "var", "aValidValues", "=", "[", "]", ";", "for", "(", "var", "sKey", "in", "oEnum", ")", "{", "if", "(", "oEnum", ".", "hasOwnProperty", "(", "sKey", ")", ")", "{"...
Checks if a value exists within an enumerable list. @param {object} oEnum Enumeration object with values for validation @param {string} sValue Value to check against enumerable list @param {string} sPropertyName Name of the property which is checked @throws {Error} If the value could not be found, an error is thrown
[ "Checks", "if", "a", "value", "exists", "within", "an", "enumerable", "list", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1613-L1624
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function() { function fallback(that) { var oLocale = that.oConfiguration.language; // if any user settings have been defined, add the private use subtag "sapufmt" if ( !jQuery.isEmptyObject(that.mSettings) ) { // TODO move to Locale/LocaleData var l = oLocale.toString(); if ( l.indexOf("-x...
javascript
function() { function fallback(that) { var oLocale = that.oConfiguration.language; // if any user settings have been defined, add the private use subtag "sapufmt" if ( !jQuery.isEmptyObject(that.mSettings) ) { // TODO move to Locale/LocaleData var l = oLocale.toString(); if ( l.indexOf("-x...
[ "function", "(", ")", "{", "function", "fallback", "(", "that", ")", "{", "var", "oLocale", "=", "that", ".", "oConfiguration", ".", "language", ";", "// if any user settings have been defined, add the private use subtag \"sapufmt\"", "if", "(", "!", "jQuery", ".", ...
Returns the locale to be used for formatting. If no such locale has been defined, this method falls back to the language, see {@link sap.ui.core.Configuration#getLanguage Configuration.getLanguage()}. If any user preferences for date, time or number formatting have been set, and if no format locale has been specified...
[ "Returns", "the", "locale", "to", "be", "used", "for", "formatting", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1661-L1678
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function(sStyle, sPattern) { check(sStyle == "short" || sStyle == "medium" || sStyle == "long" || sStyle == "full", "sStyle must be short, medium, long or full"); this._set("dateFormats-" + sStyle, sPattern); return this; }
javascript
function(sStyle, sPattern) { check(sStyle == "short" || sStyle == "medium" || sStyle == "long" || sStyle == "full", "sStyle must be short, medium, long or full"); this._set("dateFormats-" + sStyle, sPattern); return this; }
[ "function", "(", "sStyle", ",", "sPattern", ")", "{", "check", "(", "sStyle", "==", "\"short\"", "||", "sStyle", "==", "\"medium\"", "||", "sStyle", "==", "\"long\"", "||", "sStyle", "==", "\"full\"", ",", "\"sStyle must be short, medium, long or full\"", ")", "...
Defines the preferred format pattern for the given date format style. Calling this method with a null or undefined pattern removes a previously set pattern. If a pattern is defined, it will be preferred over patterns derived from the current locale. See class {@link sap.ui.core.format.DateFormat} for details about t...
[ "Defines", "the", "preferred", "format", "pattern", "for", "the", "given", "date", "format", "style", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1846-L1850
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function(sType, sSymbol) { check(sType == "decimal" || sType == "group" || sType == "plusSign" || sType == "minusSign", "sType must be decimal, group, plusSign or minusSign"); this._set("symbols-latn-" + sType, sSymbol); return this; }
javascript
function(sType, sSymbol) { check(sType == "decimal" || sType == "group" || sType == "plusSign" || sType == "minusSign", "sType must be decimal, group, plusSign or minusSign"); this._set("symbols-latn-" + sType, sSymbol); return this; }
[ "function", "(", "sType", ",", "sSymbol", ")", "{", "check", "(", "sType", "==", "\"decimal\"", "||", "sType", "==", "\"group\"", "||", "sType", "==", "\"plusSign\"", "||", "sType", "==", "\"minusSign\"", ",", "\"sType must be decimal, group, plusSign or minusSign\"...
Defines the string to be used for the given number symbol. Calling this method with a null or undefined symbol removes a previously set symbol string. Note that an empty string is explicitly allowed. If a symbol is defined, it will be preferred over symbols derived from the current locale. See class {@link sap.ui.co...
[ "Defines", "the", "string", "to", "be", "used", "for", "the", "given", "number", "symbol", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1913-L1917
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function(mCurrencies) { check(typeof mCurrencies === "object" || mCurrencies == null, "mCurrencyDigits must be an object"); Object.keys(mCurrencies || {}).forEach(function(sCurrencyDigit) { check(typeof sCurrencyDigit === "string"); check(typeof mCurrencies[sCurrencyDigit] === "object"); }); this._s...
javascript
function(mCurrencies) { check(typeof mCurrencies === "object" || mCurrencies == null, "mCurrencyDigits must be an object"); Object.keys(mCurrencies || {}).forEach(function(sCurrencyDigit) { check(typeof sCurrencyDigit === "string"); check(typeof mCurrencies[sCurrencyDigit] === "object"); }); this._s...
[ "function", "(", "mCurrencies", ")", "{", "check", "(", "typeof", "mCurrencies", "===", "\"object\"", "||", "mCurrencies", "==", "null", ",", "\"mCurrencyDigits must be an object\"", ")", ";", "Object", ".", "keys", "(", "mCurrencies", "||", "{", "}", ")", "."...
Sets custom currencies and replaces existing entries. There is a special currency code named "DEFAULT" that is optional. In case it is set it will be used for all currencies not contained in the list, otherwise currency digits as defined by the CLDR will be used as a fallback. Example: To use CLDR, but override singl...
[ "Sets", "custom", "currencies", "and", "replaces", "existing", "entries", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1967-L1975
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Configuration.js
function(sFormatId) { sFormatId = sFormatId ? String(sFormatId).toUpperCase() : ""; check(!sFormatId || M_ABAP_DATE_FORMAT_PATTERN.hasOwnProperty(sFormatId), "sFormatId must be one of ['1','2','3','4','5','6','7','8','9','A','B','C'] or empty"); var mChanges = this.oConfiguration._collect(); this.sLegacyDat...
javascript
function(sFormatId) { sFormatId = sFormatId ? String(sFormatId).toUpperCase() : ""; check(!sFormatId || M_ABAP_DATE_FORMAT_PATTERN.hasOwnProperty(sFormatId), "sFormatId must be one of ['1','2','3','4','5','6','7','8','9','A','B','C'] or empty"); var mChanges = this.oConfiguration._collect(); this.sLegacyDat...
[ "function", "(", "sFormatId", ")", "{", "sFormatId", "=", "sFormatId", "?", "String", "(", "sFormatId", ")", ".", "toUpperCase", "(", ")", ":", "\"\"", ";", "check", "(", "!", "sFormatId", "||", "M_ABAP_DATE_FORMAT_PATTERN", ".", "hasOwnProperty", "(", "sFor...
Allows to specify one of the legacy ABAP date formats. This method modifies the date patterns for 'short' and 'medium' style with the corresponding ABAP format. When called with a null or undefined format id, any previously applied format will be removed. After changing the legacy date format, the framework tries to ...
[ "Allows", "to", "specify", "one", "of", "the", "legacy", "ABAP", "date", "formats", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L2057-L2066
train