id
int32
0
58k
repo
stringlengths
5
67
path
stringlengths
4
116
func_name
stringlengths
0
58
original_string
stringlengths
52
373k
language
stringclasses
1 value
code
stringlengths
52
373k
code_tokens
list
docstring
stringlengths
4
11.8k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
86
226
4,000
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/Tree.js
rememberSelectedChildren
function rememberSelectedChildren(oNode, oRootNode) { var aNodes = oNode._getNodes(), oCurrentNode; for (var i = 0; i < aNodes.length; i++) { oCurrentNode = aNodes[i]; if (oCurrentNode.getIsSelected()) { oRootNode.addAssociation("selectedForNodes", oCurrentNode, true); } rememberSelectedChildr...
javascript
function rememberSelectedChildren(oNode, oRootNode) { var aNodes = oNode._getNodes(), oCurrentNode; for (var i = 0; i < aNodes.length; i++) { oCurrentNode = aNodes[i]; if (oCurrentNode.getIsSelected()) { oRootNode.addAssociation("selectedForNodes", oCurrentNode, true); } rememberSelectedChildr...
[ "function", "rememberSelectedChildren", "(", "oNode", ",", "oRootNode", ")", "{", "var", "aNodes", "=", "oNode", ".", "_getNodes", "(", ")", ",", "oCurrentNode", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "aNodes", ".", "length", ";", "i", ...
Adds references inside the collapsed node of all its selected children recursively. @param {sap.ui.commons.TreeNode} oNode The current node to look at @param {sap.ui.commons.TreeNode} oRootNode The root node that was collapsed
[ "Adds", "references", "inside", "the", "collapsed", "node", "of", "all", "its", "selected", "children", "recursively", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/Tree.js#L564-L577
4,001
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/MenuBar.js
function(oThis){ var iVisibleItems = 0; var jAreaRef = oThis.$("area"); var jItems = jAreaRef.children(); var bRtl = sap.ui.getCore().getConfiguration().getRTL(); var lastOffsetLeft = (bRtl ? 100000 : 0); jItems.each(function(iIdx) { if (iIdx == 0) { return true; } var currentOffsetLeft = t...
javascript
function(oThis){ var iVisibleItems = 0; var jAreaRef = oThis.$("area"); var jItems = jAreaRef.children(); var bRtl = sap.ui.getCore().getConfiguration().getRTL(); var lastOffsetLeft = (bRtl ? 100000 : 0); jItems.each(function(iIdx) { if (iIdx == 0) { return true; } var currentOffsetLeft = t...
[ "function", "(", "oThis", ")", "{", "var", "iVisibleItems", "=", "0", ";", "var", "jAreaRef", "=", "oThis", ".", "$", "(", "\"area\"", ")", ";", "var", "jItems", "=", "jAreaRef", ".", "children", "(", ")", ";", "var", "bRtl", "=", "sap", ".", "ui",...
Compute actual number of items currently hidden due to overflow
[ "Compute", "actual", "number", "of", "items", "currently", "hidden", "due", "to", "overflow" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/MenuBar.js#L446-L478
4,002
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/MenuBar.js
function(oThis){ var iVisibleItems = getVisibleItemCount(oThis); var _iVisibleItems = iVisibleItems; var jAreaRef = oThis.$("area"); var jItems = jAreaRef.children(); var jOvrFlwRef = oThis.$("ovrflw"); var bUpdateFocus = false; if (iVisibleItems < jItems.length - 1) { jOvrFlwRef.attr("style", "disp...
javascript
function(oThis){ var iVisibleItems = getVisibleItemCount(oThis); var _iVisibleItems = iVisibleItems; var jAreaRef = oThis.$("area"); var jItems = jAreaRef.children(); var jOvrFlwRef = oThis.$("ovrflw"); var bUpdateFocus = false; if (iVisibleItems < jItems.length - 1) { jOvrFlwRef.attr("style", "disp...
[ "function", "(", "oThis", ")", "{", "var", "iVisibleItems", "=", "getVisibleItemCount", "(", "oThis", ")", ";", "var", "_iVisibleItems", "=", "iVisibleItems", ";", "var", "jAreaRef", "=", "oThis", ".", "$", "(", "\"area\"", ")", ";", "var", "jItems", "=", ...
Handle the resize of the menubar
[ "Handle", "the", "resize", "of", "the", "menubar" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/MenuBar.js#L482-L547
4,003
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/ODataModel.js
parseAndValidateSystemQueryOption
function parseAndValidateSystemQueryOption (mOptions, sOptionName, aAllowed) { var sExpandOptionName, mExpandOptions, sExpandPath, vValue = mOptions[sOptionName]; if (!bSystemQueryOptionsAllowed || aAllowed.indexOf(sOptionName) < 0) { throw new Error("System query option " + sOptionName + " is n...
javascript
function parseAndValidateSystemQueryOption (mOptions, sOptionName, aAllowed) { var sExpandOptionName, mExpandOptions, sExpandPath, vValue = mOptions[sOptionName]; if (!bSystemQueryOptionsAllowed || aAllowed.indexOf(sOptionName) < 0) { throw new Error("System query option " + sOptionName + " is n...
[ "function", "parseAndValidateSystemQueryOption", "(", "mOptions", ",", "sOptionName", ",", "aAllowed", ")", "{", "var", "sExpandOptionName", ",", "mExpandOptions", ",", "sExpandPath", ",", "vValue", "=", "mOptions", "[", "sOptionName", "]", ";", "if", "(", "!", ...
Parses the query options for the given option name "sOptionName" in the given map of query options "mOptions" to an object if necessary. Validates if the given query option name is allowed. @param {object} mOptions Map of query options by name @param {string} sOptionName Name of the query option @param {string[]} aAll...
[ "Parses", "the", "query", "options", "for", "the", "given", "option", "name", "sOptionName", "in", "the", "given", "map", "of", "query", "options", "mOptions", "to", "an", "object", "if", "necessary", ".", "Validates", "if", "the", "given", "query", "option"...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/ODataModel.js#L724-L768
4,004
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/ODataModel.js
startsWithQualifiedName
function startsWithQualifiedName(sMetaPath) { var iDotPos = sMetaPath.indexOf("."), iSlashPos = sMetaPath.indexOf("/"); return iDotPos > 0 && (iSlashPos < 0 || iDotPos < iSlashPos); }
javascript
function startsWithQualifiedName(sMetaPath) { var iDotPos = sMetaPath.indexOf("."), iSlashPos = sMetaPath.indexOf("/"); return iDotPos > 0 && (iSlashPos < 0 || iDotPos < iSlashPos); }
[ "function", "startsWithQualifiedName", "(", "sMetaPath", ")", "{", "var", "iDotPos", "=", "sMetaPath", ".", "indexOf", "(", "\".\"", ")", ",", "iSlashPos", "=", "sMetaPath", ".", "indexOf", "(", "\"/\"", ")", ";", "return", "iDotPos", ">", "0", "&&", "(", ...
Checks if the given meta path contains a dot in its first segment. @param {string} sMetaPath The meta path @returns {boolean} Whether the given meta path contains a dot in its first segment
[ "Checks", "if", "the", "given", "meta", "path", "contains", "a", "dot", "in", "its", "first", "segment", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/ODataModel.js#L896-L901
4,005
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/plugin/Plugin.js
_checkAggregationBindingTemplateID
function _checkAggregationBindingTemplateID(oOverlay, vStableElement){ var mAggregationInfo = OverlayUtil.getAggregationInformation(oOverlay, oOverlay.getElement().sParentAggregationName); if (!mAggregationInfo.templateId) { return true; } else { return !FlexUtils.checkControlId(mAggregationInfo.templateId,...
javascript
function _checkAggregationBindingTemplateID(oOverlay, vStableElement){ var mAggregationInfo = OverlayUtil.getAggregationInformation(oOverlay, oOverlay.getElement().sParentAggregationName); if (!mAggregationInfo.templateId) { return true; } else { return !FlexUtils.checkControlId(mAggregationInfo.templateId,...
[ "function", "_checkAggregationBindingTemplateID", "(", "oOverlay", ",", "vStableElement", ")", "{", "var", "mAggregationInfo", "=", "OverlayUtil", ".", "getAggregationInformation", "(", "oOverlay", ",", "oOverlay", ".", "getElement", "(", ")", ".", "sParentAggregationNa...
Check if related binding template has stable id
[ "Check", "if", "related", "binding", "template", "has", "stable", "id" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/plugin/Plugin.js#L271-L278
4,006
SAP/openui5
src/sap.f/src/sap/f/FlexibleColumnLayoutSemanticHelper.js
function (oFlexibleColumnLayout, oSettings) { var oModeToMaxColumnsCountMapping = { Normal: 3, MasterDetail: 2, SingleColumn: 1 }, iInitial, iMax; oSettings || (oSettings = {}); this._oFCL = oFlexibleColumnLayout; // Layout types this._defaultLayoutType = LT.OneColumn; this._defaultTwo...
javascript
function (oFlexibleColumnLayout, oSettings) { var oModeToMaxColumnsCountMapping = { Normal: 3, MasterDetail: 2, SingleColumn: 1 }, iInitial, iMax; oSettings || (oSettings = {}); this._oFCL = oFlexibleColumnLayout; // Layout types this._defaultLayoutType = LT.OneColumn; this._defaultTwo...
[ "function", "(", "oFlexibleColumnLayout", ",", "oSettings", ")", "{", "var", "oModeToMaxColumnsCountMapping", "=", "{", "Normal", ":", "3", ",", "MasterDetail", ":", "2", ",", "SingleColumn", ":", "1", "}", ",", "iInitial", ",", "iMax", ";", "oSettings", "||...
Constructor for an sap.f.FlexibleColumnLayoutSemanticHelper. @class Helper class, facilitating the implementation of the recommended UX design of a <code>sap.f.FlexibleColumnLayout</code>-based app. <b>Note:</b> Using this class is not mandatory in order to build an app with <code>sap.f.FlexibleColumnLayout</code>, b...
[ "Constructor", "for", "an", "sap", ".", "f", ".", "FlexibleColumnLayoutSemanticHelper", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/FlexibleColumnLayoutSemanticHelper.js#L99-L134
4,007
SAP/openui5
src/sap.ui.core/src/sap/ui/debug/Highlighter.js
function(sId, bFilled, sColor, iBorderWidth) { this.sId = sId || uid(); this.bFilled = (bFilled == true); this.sColor = sColor || 'blue'; if ( isNaN(iBorderWidth ) ) { this.iBorderWidth = 2; } else if ( iBorderWidth <= 0 ) { this.iBorderWidth = 0; } else { this.iBorderWidth = iBorderWidth; } }
javascript
function(sId, bFilled, sColor, iBorderWidth) { this.sId = sId || uid(); this.bFilled = (bFilled == true); this.sColor = sColor || 'blue'; if ( isNaN(iBorderWidth ) ) { this.iBorderWidth = 2; } else if ( iBorderWidth <= 0 ) { this.iBorderWidth = 0; } else { this.iBorderWidth = iBorderWidth; } }
[ "function", "(", "sId", ",", "bFilled", ",", "sColor", ",", "iBorderWidth", ")", "{", "this", ".", "sId", "=", "sId", "||", "uid", "(", ")", ";", "this", ".", "bFilled", "=", "(", "bFilled", "==", "true", ")", ";", "this", ".", "sColor", "=", "sC...
Creates a new highlighter object without displaying it. The DOM node is not created until the first call to method {@link #highlight}. @param {string} [sId] id that is used by the new highlighter @param {boolean} [bFilled] whether the box of the highlighter is partially opaque (20%), defaults to false @param {string}...
[ "Creates", "a", "new", "highlighter", "object", "without", "displaying", "it", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/debug/Highlighter.js#L31-L42
4,008
SAP/openui5
src/sap.ui.table/src/sap/ui/table/CreationRow.js
createDefaultToolbar
function createDefaultToolbar(oCreationRow) { return new OverflowToolbar({ content: [ new ToolbarSpacer(), new Button({ text: TableUtils.getResourceText("TBL_CREATIONROW_APPLY"), type: MLibrary.ButtonType.Emphasized, enabled: oCreationRow.getApplyEnabled(), press: function() { oCr...
javascript
function createDefaultToolbar(oCreationRow) { return new OverflowToolbar({ content: [ new ToolbarSpacer(), new Button({ text: TableUtils.getResourceText("TBL_CREATIONROW_APPLY"), type: MLibrary.ButtonType.Emphasized, enabled: oCreationRow.getApplyEnabled(), press: function() { oCr...
[ "function", "createDefaultToolbar", "(", "oCreationRow", ")", "{", "return", "new", "OverflowToolbar", "(", "{", "content", ":", "[", "new", "ToolbarSpacer", "(", ")", ",", "new", "Button", "(", "{", "text", ":", "TableUtils", ".", "getResourceText", "(", "\...
Creates a default toolbar providing basic buttons and functionality. @param {sap.ui.table.CreationRow} oCreationRow The creation row to get the settings for the toolbar creation from. @returns {sap.m.OverflowToolbar} The default toolbar.
[ "Creates", "a", "default", "toolbar", "providing", "basic", "buttons", "and", "functionality", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/CreationRow.js#L165-L181
4,009
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/FormattedTextView.js
function (aControls) { if (this.hasControls()) { this.removeAllAggregation("controls"); } var bIsArray = Array.isArray(aControls); if (bIsArray && aControls.length > 0) { // iterate through the given array but suppress invalidate for (var i = 0; i < aControls.length; i++) { this.addAggrega...
javascript
function (aControls) { if (this.hasControls()) { this.removeAllAggregation("controls"); } var bIsArray = Array.isArray(aControls); if (bIsArray && aControls.length > 0) { // iterate through the given array but suppress invalidate for (var i = 0; i < aControls.length; i++) { this.addAggrega...
[ "function", "(", "aControls", ")", "{", "if", "(", "this", ".", "hasControls", "(", ")", ")", "{", "this", ".", "removeAllAggregation", "(", "\"controls\"", ")", ";", "}", "var", "bIsArray", "=", "Array", ".", "isArray", "(", "aControls", ")", ";", "if...
Sets the controls to be rendered. @param {array} aControls Controls should be rendered @private
[ "Sets", "the", "controls", "to", "be", "rendered", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/FormattedTextView.js#L227-L240
4,010
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Element.js
function(element, key) { var aData = element.getAggregation("customData"); if (aData) { for (var i = 0; i < aData.length; i++) { if (aData[i].getKey() == key) { return aData[i]; } } } return null; }
javascript
function(element, key) { var aData = element.getAggregation("customData"); if (aData) { for (var i = 0; i < aData.length; i++) { if (aData[i].getKey() == key) { return aData[i]; } } } return null; }
[ "function", "(", "element", ",", "key", ")", "{", "var", "aData", "=", "element", ".", "getAggregation", "(", "\"customData\"", ")", ";", "if", "(", "aData", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "aData", ".", "length", ";", ...
Returns the data object with the given key
[ "Returns", "the", "data", "object", "with", "the", "given", "key" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Element.js#L908-L918
4,011
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Element.js
function(element, key, value, writeToDom) { // DELETE if (value === null) { // delete this property var dataObject = getDataObject(element, key); if (!dataObject) { return; } var dataCount = element.getAggregation("customData").length; if (dataCount == 1) { element.destroyAggregati...
javascript
function(element, key, value, writeToDom) { // DELETE if (value === null) { // delete this property var dataObject = getDataObject(element, key); if (!dataObject) { return; } var dataCount = element.getAggregation("customData").length; if (dataCount == 1) { element.destroyAggregati...
[ "function", "(", "element", ",", "key", ",", "value", ",", "writeToDom", ")", "{", "// DELETE", "if", "(", "value", "===", "null", ")", "{", "// delete this property", "var", "dataObject", "=", "getDataObject", "(", "element", ",", "key", ")", ";", "if", ...
Contains the data modification logic
[ "Contains", "the", "data", "modification", "logic" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Element.js#L923-L952
4,012
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js
function (aSelectedRulesPlain) { // if we persist settings - load any selection presets, else use the default ones if (this.model.getProperty("/persistingSettings")) { var aPersistedPresets = Storage.getSelectionPresets(); if (aPersistedPresets) { this.model.setProperty("/selectionPresets", aPersiste...
javascript
function (aSelectedRulesPlain) { // if we persist settings - load any selection presets, else use the default ones if (this.model.getProperty("/persistingSettings")) { var aPersistedPresets = Storage.getSelectionPresets(); if (aPersistedPresets) { this.model.setProperty("/selectionPresets", aPersiste...
[ "function", "(", "aSelectedRulesPlain", ")", "{", "// if we persist settings - load any selection presets, else use the default ones", "if", "(", "this", ".", "model", ".", "getProperty", "(", "\"/persistingSettings\"", ")", ")", "{", "var", "aPersistedPresets", "=", "Stora...
Initializes the current selection preset @param {Array} aSelectedRulesPlain The plain list of selected rules (same format as in the presets json file)
[ "Initializes", "the", "current", "selection", "preset" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js#L34-L89
4,013
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js
function (aSelectedRulesPlain) { var oPreset = this.model.getProperty("/selectionPresetsCurrent"); oPreset.selections = aSelectedRulesPlain; if (!(oPreset.isModified || oPreset.isMySelection)) { oPreset.isModified = true; oPreset.title = oPreset.title + " *"; } this.model.setProperty("/selecti...
javascript
function (aSelectedRulesPlain) { var oPreset = this.model.getProperty("/selectionPresetsCurrent"); oPreset.selections = aSelectedRulesPlain; if (!(oPreset.isModified || oPreset.isMySelection)) { oPreset.isModified = true; oPreset.title = oPreset.title + " *"; } this.model.setProperty("/selecti...
[ "function", "(", "aSelectedRulesPlain", ")", "{", "var", "oPreset", "=", "this", ".", "model", ".", "getProperty", "(", "\"/selectionPresetsCurrent\"", ")", ";", "oPreset", ".", "selections", "=", "aSelectedRulesPlain", ";", "if", "(", "!", "(", "oPreset", "."...
Synchronizes the current rules selection with the current selection preset @param {Array} aSelectedRulesPlain The plain list of selected rules (same format as in the presets json file)
[ "Synchronizes", "the", "current", "rules", "selection", "with", "the", "current", "selection", "preset" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js#L95-L110
4,014
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js
function (sId, sTitle, sDescription, aSelections) { var oRulesToExport = { id: sId, title: sTitle, description: sDescription, dateExported: (new Date()).toISOString(), version: "1.0", selections: aSelections }; var oExportObject = JSON.stringify(oRulesToExport); File.save(oExportOb...
javascript
function (sId, sTitle, sDescription, aSelections) { var oRulesToExport = { id: sId, title: sTitle, description: sDescription, dateExported: (new Date()).toISOString(), version: "1.0", selections: aSelections }; var oExportObject = JSON.stringify(oRulesToExport); File.save(oExportOb...
[ "function", "(", "sId", ",", "sTitle", ",", "sDescription", ",", "aSelections", ")", "{", "var", "oRulesToExport", "=", "{", "id", ":", "sId", ",", "title", ":", "sTitle", ",", "description", ":", "sDescription", ",", "dateExported", ":", "(", "new", "Da...
Exports the given selections to a file @param {string} sId The id of the export @param {string} sTitle The title of the export @param {string} sDescription Some description of what is exported @param {array} aSelections An array of rules IDs which are selected
[ "Exports", "the", "given", "selections", "to", "a", "file" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js#L119-L132
4,015
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js
function (oImport) { var bIsFileValid = true; if (!oImport.hasOwnProperty("title")) { bIsFileValid = false; } if (!oImport.hasOwnProperty("selections")) { bIsFileValid = false; } else if (!Array.isArray(oImport.selections)) { bIsFileValid = false; } else { for (var i = 0; i < oImport...
javascript
function (oImport) { var bIsFileValid = true; if (!oImport.hasOwnProperty("title")) { bIsFileValid = false; } if (!oImport.hasOwnProperty("selections")) { bIsFileValid = false; } else if (!Array.isArray(oImport.selections)) { bIsFileValid = false; } else { for (var i = 0; i < oImport...
[ "function", "(", "oImport", ")", "{", "var", "bIsFileValid", "=", "true", ";", "if", "(", "!", "oImport", ".", "hasOwnProperty", "(", "\"title\"", ")", ")", "{", "bIsFileValid", "=", "false", ";", "}", "if", "(", "!", "oImport", ".", "hasOwnProperty", ...
Validates if the given import is in the correct format. @param {Object} oImport The preset object to import @return {boolean} Is the import data a valid rule preset file
[ "Validates", "if", "the", "given", "import", "is", "in", "the", "correct", "format", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js#L139-L161
4,016
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Core.js
preloadLibraryAsync
function preloadLibraryAsync(libConfig) { var that = this; libConfig = evalLibConfig(libConfig); var lib = libConfig.name, fileType = libConfig.fileType, libPackage = lib.replace(/\./g, '/'), http2 = this.oConfiguration.getDepCache(); if ( fileType === 'none' || !!sap.ui.loader._.getModuleState(lib...
javascript
function preloadLibraryAsync(libConfig) { var that = this; libConfig = evalLibConfig(libConfig); var lib = libConfig.name, fileType = libConfig.fileType, libPackage = lib.replace(/\./g, '/'), http2 = this.oConfiguration.getDepCache(); if ( fileType === 'none' || !!sap.ui.loader._.getModuleState(lib...
[ "function", "preloadLibraryAsync", "(", "libConfig", ")", "{", "var", "that", "=", "this", ";", "libConfig", "=", "evalLibConfig", "(", "libConfig", ")", ";", "var", "lib", "=", "libConfig", ".", "name", ",", "fileType", "=", "libConfig", ".", "fileType", ...
Preloads a library asynchronously. @param {string|object} libConfig Name of the library to preload or settings object describing library @param {string} [libConfig.name] Name of the library to preload @param {boolean|undefined} [libConfig.json] Whether library supports only JSON (<code>true</code>) or only JS (<code>f...
[ "Preloads", "a", "library", "asynchronously", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Core.js#L1599-L1669
4,017
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Core.js
registerPreloadedModules
function registerPreloadedModules(oData, sURL) { var modules = oData.modules, fnUI5ToRJS = function(sName) { return /^jquery\.sap\./.test(sName) ? sName : sName.replace(/\./g, "/"); }; if ( Version(oData.version || "1.0").compareTo("2.0") < 0 ) { modules = {}; for ( var sName in oData.modules ...
javascript
function registerPreloadedModules(oData, sURL) { var modules = oData.modules, fnUI5ToRJS = function(sName) { return /^jquery\.sap\./.test(sName) ? sName : sName.replace(/\./g, "/"); }; if ( Version(oData.version || "1.0").compareTo("2.0") < 0 ) { modules = {}; for ( var sName in oData.modules ...
[ "function", "registerPreloadedModules", "(", "oData", ",", "sURL", ")", "{", "var", "modules", "=", "oData", ".", "modules", ",", "fnUI5ToRJS", "=", "function", "(", "sName", ")", "{", "return", "/", "^jquery\\.sap\\.", "/", ".", "test", "(", "sName", ")",...
Adds all resources from a preload bundle to the preload cache. When a resource exists already in the cache, the new content is ignored. @param {object} oData Preload bundle @param {string} [oData.url] URL from which the bundle has been loaded @param {string} [oData.name] Unique name of the bundle @param {string} [oDa...
[ "Adds", "all", "resources", "from", "a", "preload", "bundle", "to", "the", "preload", "cache", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Core.js#L1716-L1728
4,018
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Core.js
preprocessDependencies
function preprocessDependencies(dependencies) { if (Array.isArray(dependencies)) { // remove .library-preload suffix from dependencies return dependencies.map(function (dep) { return dep.replace(/\.library-preload$/, ''); }); } return dependencies; }
javascript
function preprocessDependencies(dependencies) { if (Array.isArray(dependencies)) { // remove .library-preload suffix from dependencies return dependencies.map(function (dep) { return dep.replace(/\.library-preload$/, ''); }); } return dependencies; }
[ "function", "preprocessDependencies", "(", "dependencies", ")", "{", "if", "(", "Array", ".", "isArray", "(", "dependencies", ")", ")", "{", "// remove .library-preload suffix from dependencies", "return", "dependencies", ".", "map", "(", "function", "(", "dep", ")"...
Preprocessed given dependencies @param {object} oDependencies - Dependencies to preprocess @returns {object} oDependencies - Proprocessed dependencies
[ "Preprocessed", "given", "dependencies" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Core.js#L1736-L1744
4,019
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Core.js
preloadLibrarySync
function preloadLibrarySync(libConfig) { libConfig = evalLibConfig(libConfig); var lib = libConfig.name, fileType = libConfig.fileType, libPackage = lib.replace(/\./g, '/'), libLoaded = !!sap.ui.loader._.getModuleState(libPackage + '/library.js'); if ( fileType === 'none' || libLoaded ) { return; ...
javascript
function preloadLibrarySync(libConfig) { libConfig = evalLibConfig(libConfig); var lib = libConfig.name, fileType = libConfig.fileType, libPackage = lib.replace(/\./g, '/'), libLoaded = !!sap.ui.loader._.getModuleState(libPackage + '/library.js'); if ( fileType === 'none' || libLoaded ) { return; ...
[ "function", "preloadLibrarySync", "(", "libConfig", ")", "{", "libConfig", "=", "evalLibConfig", "(", "libConfig", ")", ";", "var", "lib", "=", "libConfig", ".", "name", ",", "fileType", "=", "libConfig", ".", "fileType", ",", "libPackage", "=", "lib", ".", ...
Preloads a library synchronously. @param {string|object} libConfig Name of the library to preload or settings object describing library. @param {string} [libConfig.name] Name of the library to preload @param {boolean|undefined} [libConfig.json] Whether library supports only JSON (<code>true</code>) or only JS (<code>f...
[ "Preloads", "a", "library", "synchronously", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Core.js#L1777-L1840
4,020
SAP/openui5
src/sap.ui.core/src/sap/ui/core/Core.js
getModulePath
function getModulePath(sModuleName, sSuffix){ return sap.ui.require.toUrl(sModuleName.replace(/\./g, "/") + sSuffix); }
javascript
function getModulePath(sModuleName, sSuffix){ return sap.ui.require.toUrl(sModuleName.replace(/\./g, "/") + sSuffix); }
[ "function", "getModulePath", "(", "sModuleName", ",", "sSuffix", ")", "{", "return", "sap", ".", "ui", ".", "require", ".", "toUrl", "(", "sModuleName", ".", "replace", "(", "/", "\\.", "/", "g", ",", "\"/\"", ")", "+", "sSuffix", ")", ";", "}" ]
Retrieves the module path. @param {string} sModuleName module name. @param {string} sSuffix is used untouched (dots are not replaced with slashes). @returns {string} module path.
[ "Retrieves", "the", "module", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Core.js#L1870-L1872
4,021
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/appVariant/Feature.js
function(bAsKeyUser) { var oDescriptor = fnGetDescriptor(); return new Promise(function(resolve) { var fnCancel = function() { AppVariantUtils.closeOverviewDialog(); }; sap.ui.require(["sap/ui/rta/appVariant/AppVariantOverviewDialog"], function(AppVariantOverviewDialog) { if (!oAppVariantOv...
javascript
function(bAsKeyUser) { var oDescriptor = fnGetDescriptor(); return new Promise(function(resolve) { var fnCancel = function() { AppVariantUtils.closeOverviewDialog(); }; sap.ui.require(["sap/ui/rta/appVariant/AppVariantOverviewDialog"], function(AppVariantOverviewDialog) { if (!oAppVariantOv...
[ "function", "(", "bAsKeyUser", ")", "{", "var", "oDescriptor", "=", "fnGetDescriptor", "(", ")", ";", "return", "new", "Promise", "(", "function", "(", "resolve", ")", "{", "var", "fnCancel", "=", "function", "(", ")", "{", "AppVariantUtils", ".", "closeOv...
To see the overview of app variants, a key user has created from an app
[ "To", "see", "the", "overview", "of", "app", "variants", "a", "key", "user", "has", "created", "from", "an", "app" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/appVariant/Feature.js#L98-L122
4,022
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/appVariant/Feature.js
processArray
function processArray(aPromises) { return aPromises.reduce(function(pacc, fn) { return pacc.then(fn); }, Promise.resolve()) .catch(function() { return Promise.resolve(false); }); }
javascript
function processArray(aPromises) { return aPromises.reduce(function(pacc, fn) { return pacc.then(fn); }, Promise.resolve()) .catch(function() { return Promise.resolve(false); }); }
[ "function", "processArray", "(", "aPromises", ")", "{", "return", "aPromises", ".", "reduce", "(", "function", "(", "pacc", ",", "fn", ")", "{", "return", "pacc", ".", "then", "(", "fn", ")", ";", "}", ",", "Promise", ".", "resolve", "(", ")", ")", ...
Execute a list of Promises
[ "Execute", "a", "list", "of", "Promises" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/appVariant/Feature.js#L263-L270
4,023
SAP/openui5
src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js
_stringify
function _stringify(vObject) { var sData = "", sProp; var type = typeof vObject; if (vObject == null || (type != "object" && type != "function")) { sData = vObject; } else if (isPlainObject(vObject)) { sData = JSON.stringify(vObject); } else if (vObject instanceof ManagedObject) { sData = vObject.ge...
javascript
function _stringify(vObject) { var sData = "", sProp; var type = typeof vObject; if (vObject == null || (type != "object" && type != "function")) { sData = vObject; } else if (isPlainObject(vObject)) { sData = JSON.stringify(vObject); } else if (vObject instanceof ManagedObject) { sData = vObject.ge...
[ "function", "_stringify", "(", "vObject", ")", "{", "var", "sData", "=", "\"\"", ",", "sProp", ";", "var", "type", "=", "typeof", "vObject", ";", "if", "(", "vObject", "==", "null", "||", "(", "type", "!=", "\"object\"", "&&", "type", "!=", "\"function...
Serialize the object to a string to support change detection @param vObject @returns {string} a serialization of the object to a string @private
[ "Serialize", "the", "object", "to", "a", "string", "to", "support", "change", "detection" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js#L98-L121
4,024
SAP/openui5
src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js
function(oContext) { // use the id of the ManagedObject instance as the identifier // for the extended change detection var oObject = oContext.getObject(); if (oObject instanceof ManagedObject) { return oObject.getId(); } return JSONListBinding.prototype.getEntryKey.apply(this, arguments); }
javascript
function(oContext) { // use the id of the ManagedObject instance as the identifier // for the extended change detection var oObject = oContext.getObject(); if (oObject instanceof ManagedObject) { return oObject.getId(); } return JSONListBinding.prototype.getEntryKey.apply(this, arguments); }
[ "function", "(", "oContext", ")", "{", "// use the id of the ManagedObject instance as the identifier", "// for the extended change detection", "var", "oObject", "=", "oContext", ".", "getObject", "(", ")", ";", "if", "(", "oObject", "instanceof", "ManagedObject", ")", "{...
Use the id of the ManagedObject instance as the unique key to identify the entry in the extended change detection. The default implementation in the parent class which uses JSON.stringify to serialize the instance doesn't fit here because none of the ManagedObject instance can be Serialized. @param {sap.ui.model.Conte...
[ "Use", "the", "id", "of", "the", "ManagedObject", "instance", "as", "the", "unique", "key", "to", "identify", "the", "entry", "in", "the", "extended", "change", "detection", ".", "The", "default", "implementation", "in", "the", "parent", "class", "which", "u...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js#L140-L149
4,025
SAP/openui5
src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js
function(iStartIndex, iLength) { var iSizeLimit; if (this._oAggregation) { var oInnerListBinding = this._oOriginMO.getBinding(this._sMember); //check if the binding is a list binding if (oInnerListBinding) { var oModel = oInnerListBinding.getModel(); iSizeLimit = oModel.iSizeLimit; } ...
javascript
function(iStartIndex, iLength) { var iSizeLimit; if (this._oAggregation) { var oInnerListBinding = this._oOriginMO.getBinding(this._sMember); //check if the binding is a list binding if (oInnerListBinding) { var oModel = oInnerListBinding.getModel(); iSizeLimit = oModel.iSizeLimit; } ...
[ "function", "(", "iStartIndex", ",", "iLength", ")", "{", "var", "iSizeLimit", ";", "if", "(", "this", ".", "_oAggregation", ")", "{", "var", "oInnerListBinding", "=", "this", ".", "_oOriginMO", ".", "getBinding", "(", "this", ".", "_sMember", ")", ";", ...
In order to be able to page from an outer control an inner aggregation binding must be forced to page also @override
[ "In", "order", "to", "be", "able", "to", "page", "from", "an", "outer", "control", "an", "inner", "aggregation", "binding", "must", "be", "forced", "to", "page", "also" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/base/ManagedObjectModel.js#L166-L201
4,026
SAP/openui5
src/sap.f/src/sap/f/shellBar/Accessibility.js
function (oContext) { if (oContext) { oControl = oContext; oControl.addDelegate(this._controlDelegate, false, this); } this.oRb = Core.getLibraryResourceBundle("sap.f"); }
javascript
function (oContext) { if (oContext) { oControl = oContext; oControl.addDelegate(this._controlDelegate, false, this); } this.oRb = Core.getLibraryResourceBundle("sap.f"); }
[ "function", "(", "oContext", ")", "{", "if", "(", "oContext", ")", "{", "oControl", "=", "oContext", ";", "oControl", ".", "addDelegate", "(", "this", ".", "_controlDelegate", ",", "false", ",", "this", ")", ";", "}", "this", ".", "oRb", "=", "Core", ...
This class is used to maintain all the accessibility roles, tooltips, etc., needed for the ShellBar control life cycle. @alias sap/f/shellBar/Accessibility @since 1.64 @private
[ "This", "class", "is", "used", "to", "maintain", "all", "the", "accessibility", "roles", "tooltips", "etc", ".", "needed", "for", "the", "ShellBar", "control", "life", "cycle", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/shellBar/Accessibility.js#L19-L26
4,027
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Batch.js
function (aRequests) { var oBatchRequest = _serializeBatchRequest(aRequests); return { body : oBatchRequest.body.join(""), headers : { "Content-Type" : "multipart/mixed; boundary=" + oBatchRequest.batchBoundary, "MIME-Version" : "1.0" } }; }
javascript
function (aRequests) { var oBatchRequest = _serializeBatchRequest(aRequests); return { body : oBatchRequest.body.join(""), headers : { "Content-Type" : "multipart/mixed; boundary=" + oBatchRequest.batchBoundary, "MIME-Version" : "1.0" } }; }
[ "function", "(", "aRequests", ")", "{", "var", "oBatchRequest", "=", "_serializeBatchRequest", "(", "aRequests", ")", ";", "return", "{", "body", ":", "oBatchRequest", ".", "body", ".", "join", "(", "\"\"", ")", ",", "headers", ":", "{", "\"Content-Type\"", ...
Serializes an array of requests to an object containing the batch request body and mandatory headers for the batch request. @param {object[]} aRequests An array consisting of request objects <code>oRequest</code> or out of array(s) of request objects <code>oRequest</code>, in case requests need to be sent in scope of ...
[ "Serializes", "an", "array", "of", "requests", "to", "an", "object", "containing", "the", "batch", "request", "body", "and", "mandatory", "headers", "for", "the", "batch", "request", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Batch.js#L395-L405
4,028
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js
function(aEnum, oEnumComparison) { if (aEnum && Array.isArray(aEnum) && aEnum.length) { for (var i = 0; i < aEnum.length; i++) { if (oEnumComparison.hasOwnProperty(aEnum[i])) { continue; } else { return false; } } return true; } return false; }
javascript
function(aEnum, oEnumComparison) { if (aEnum && Array.isArray(aEnum) && aEnum.length) { for (var i = 0; i < aEnum.length; i++) { if (oEnumComparison.hasOwnProperty(aEnum[i])) { continue; } else { return false; } } return true; } return false; }
[ "function", "(", "aEnum", ",", "oEnumComparison", ")", "{", "if", "(", "aEnum", "&&", "Array", ".", "isArray", "(", "aEnum", ")", "&&", "aEnum", ".", "length", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "aEnum", ".", "length", ";"...
Validates any given collection. Basically you can validate Audiences, Categories, Severity etc - everything that meets the criteria Positive cases : - "Capitalcase" @private @param {array} aEnum Enum to be validated. @param {array} oEnumComparison Enum comparison. @returns {boolean} Boolean response if the provided c...
[ "Validates", "any", "given", "collection", ".", "Basically", "you", "can", "validate", "Audiences", "Categories", "Severity", "etc", "-", "everything", "that", "meets", "the", "criteria" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js#L64-L82
4,029
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js
function(sId) { //Match camelCase - case sensitive var idRegEx = /^[a-z][a-zA-Z]+$/; if ( !sId || typeof sId !== 'string') { return false; } if (sId.match(idRegEx) && this.validateStringLength(sId, 6, 50)) { return true; } return false; }
javascript
function(sId) { //Match camelCase - case sensitive var idRegEx = /^[a-z][a-zA-Z]+$/; if ( !sId || typeof sId !== 'string') { return false; } if (sId.match(idRegEx) && this.validateStringLength(sId, 6, 50)) { return true; } return false; }
[ "function", "(", "sId", ")", "{", "//Match camelCase - case sensitive", "var", "idRegEx", "=", "/", "^[a-z][a-zA-Z]+$", "/", ";", "if", "(", "!", "sId", "||", "typeof", "sId", "!==", "'string'", ")", "{", "return", "false", ";", "}", "if", "(", "sId", "....
Validates the id of a rule each id. The Id has to be of type string, and needs to be camelCase. Positive cases : - "validId" @private @param {string} sId Id in string format. @returns {boolean} Boolean response if the provided id is valid.
[ "Validates", "the", "id", "of", "a", "rule", "each", "id", ".", "The", "Id", "has", "to", "be", "of", "type", "string", "and", "needs", "to", "be", "camelCase", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js#L94-L109
4,030
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/MessageBox.js
cell
function cell(oContent) { return new MatrixLayoutCell({ padding: Padding.None, vAlign: VAlign.Top, content: oContent }); }
javascript
function cell(oContent) { return new MatrixLayoutCell({ padding: Padding.None, vAlign: VAlign.Top, content: oContent }); }
[ "function", "cell", "(", "oContent", ")", "{", "return", "new", "MatrixLayoutCell", "(", "{", "padding", ":", "Padding", ".", "None", ",", "vAlign", ":", "VAlign", ".", "Top", ",", "content", ":", "oContent", "}", ")", ";", "}" ]
wraps the given control in a top aligned MatrixLayoutCell with no padding
[ "wraps", "the", "given", "control", "in", "a", "top", "aligned", "MatrixLayoutCell", "with", "no", "padding" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/MessageBox.js#L234-L240
4,031
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/MessageBox.js
image
function image(oIcon) { var oImage = new Image({ id: sDialogId + "--icon", tooltip: rb && rb.getText("MSGBOX_ICON_" + oIcon), decorative: true }); oImage.addStyleClass("sapUiMboxIcon"); oImage.addStyleClass(mIconClass[oIcon]); return oImage; }
javascript
function image(oIcon) { var oImage = new Image({ id: sDialogId + "--icon", tooltip: rb && rb.getText("MSGBOX_ICON_" + oIcon), decorative: true }); oImage.addStyleClass("sapUiMboxIcon"); oImage.addStyleClass(mIconClass[oIcon]); return oImage; }
[ "function", "image", "(", "oIcon", ")", "{", "var", "oImage", "=", "new", "Image", "(", "{", "id", ":", "sDialogId", "+", "\"--icon\"", ",", "tooltip", ":", "rb", "&&", "rb", ".", "getText", "(", "\"MSGBOX_ICON_\"", "+", "oIcon", ")", ",", "decorative"...
creates an Image for the given icon type
[ "creates", "an", "Image", "for", "the", "given", "icon", "type" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/MessageBox.js#L243-L252
4,032
SAP/openui5
src/sap.m/src/sap/m/library.js
function(sEmail, sSubject, sBody, sCC, sBCC) { var aParams = [], sURL = "mailto:", encode = encodeURIComponent; // Within mailto URLs, the characters "?", "=", "&" are reserved isValidString(sEmail) && (sURL += encode(jQuery.trim(sEmail))); isValidString(sSubject) && aParams.push("subject=" +...
javascript
function(sEmail, sSubject, sBody, sCC, sBCC) { var aParams = [], sURL = "mailto:", encode = encodeURIComponent; // Within mailto URLs, the characters "?", "=", "&" are reserved isValidString(sEmail) && (sURL += encode(jQuery.trim(sEmail))); isValidString(sSubject) && aParams.push("subject=" +...
[ "function", "(", "sEmail", ",", "sSubject", ",", "sBody", ",", "sCC", ",", "sBCC", ")", "{", "var", "aParams", "=", "[", "]", ",", "sURL", "=", "\"mailto:\"", ",", "encode", "=", "encodeURIComponent", ";", "// Within mailto URLs, the characters \"?\", \"=\", \"&...
Builds Email URI from given parameter. Trims spaces from email addresses. @param {string} [sEmail] Destination email address @param {string} [sSubject] Subject of the email address @param {string} [sBody] Default message text @param {string} [sCC] Carbon Copy email address @param {string} [sBCC] Blind carbon copy emai...
[ "Builds", "Email", "URI", "from", "given", "parameter", ".", "Trims", "spaces", "from", "email", "addresses", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/library.js#L4050-L4066
4,033
SAP/openui5
src/sap.m/src/sap/m/library.js
function (sURL, bNewWindow) { assert(isValidString(sURL), this + "#redirect: URL must be a string" ); this.fireEvent("redirect", sURL); if (!bNewWindow) { window.location.href = sURL; } else { var oWindow = window.open(sURL, "_blank"); if (!oWindow) { Log.error(this + "#redirect: Co...
javascript
function (sURL, bNewWindow) { assert(isValidString(sURL), this + "#redirect: URL must be a string" ); this.fireEvent("redirect", sURL); if (!bNewWindow) { window.location.href = sURL; } else { var oWindow = window.open(sURL, "_blank"); if (!oWindow) { Log.error(this + "#redirect: Co...
[ "function", "(", "sURL", ",", "bNewWindow", ")", "{", "assert", "(", "isValidString", "(", "sURL", ")", ",", "this", "+", "\"#redirect: URL must be a string\"", ")", ";", "this", ".", "fireEvent", "(", "\"redirect\"", ",", "sURL", ")", ";", "if", "(", "!",...
Redirects to the given URL. This method fires "redirect" event before opening the URL. @param {string} sURL Uniform resource locator @param {boolean} [bNewWindow] Opens URL in a new browser window or tab. Please note that, opening a new window/tab can be ignored by browsers (e.g. on Windows Phone) or by popup blocker...
[ "Redirects", "to", "the", "given", "URL", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/library.js#L4079-L4094
4,034
SAP/openui5
src/sap.m/src/sap/m/library.js
checkAndSetProperty
function checkAndSetProperty(oControl, property, value) { if (value !== undefined) { var fSetter = oControl['set' + capitalize(property)]; if (typeof (fSetter) === "function") { fSetter.call(oControl, value); return true; } } return false; }
javascript
function checkAndSetProperty(oControl, property, value) { if (value !== undefined) { var fSetter = oControl['set' + capitalize(property)]; if (typeof (fSetter) === "function") { fSetter.call(oControl, value); return true; } } return false; }
[ "function", "checkAndSetProperty", "(", "oControl", ",", "property", ",", "value", ")", "{", "if", "(", "value", "!==", "undefined", ")", "{", "var", "fSetter", "=", "oControl", "[", "'set'", "+", "capitalize", "(", "property", ")", "]", ";", "if", "(", ...
Checks if value is not undefined, in which case the setter function for a given property is called. Returns true if value is set, false otherwise. @private
[ "Checks", "if", "value", "is", "not", "undefined", "in", "which", "case", "the", "setter", "function", "for", "a", "given", "property", "is", "called", ".", "Returns", "true", "if", "value", "is", "set", "false", "otherwise", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/library.js#L4289-L4298
4,035
SAP/openui5
src/sap.m/src/sap/m/library.js
function(sPercentage, fBaseSize){ if (typeof sPercentage !== "string") { Log.warning("sap.m.PopupHelper: calcPercentageSize, the first parameter" + sPercentage + "isn't with type string"); return null; } if (sPercentage.indexOf("%") <= 0) { Log.warning("sap.m.PopupHelper: calcPercentageSize, the f...
javascript
function(sPercentage, fBaseSize){ if (typeof sPercentage !== "string") { Log.warning("sap.m.PopupHelper: calcPercentageSize, the first parameter" + sPercentage + "isn't with type string"); return null; } if (sPercentage.indexOf("%") <= 0) { Log.warning("sap.m.PopupHelper: calcPercentageSize, the f...
[ "function", "(", "sPercentage", ",", "fBaseSize", ")", "{", "if", "(", "typeof", "sPercentage", "!==", "\"string\"", ")", "{", "Log", ".", "warning", "(", "\"sap.m.PopupHelper: calcPercentageSize, the first parameter\"", "+", "sPercentage", "+", "\"isn't with type strin...
Converts the given percentage value to an absolute number based on the given base size. @param {string} sPercentage A percentage value in string format, for example "25%" @param {float} fBaseSize A float number which the calculation is based on. @returns {int} The calculated size string with "px" as unit or null when ...
[ "Converts", "the", "given", "percentage", "value", "to", "an", "absolute", "number", "based", "on", "the", "given", "base", "size", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/library.js#L4377-L4392
4,036
SAP/openui5
src/sap.f/src/sap/f/GridContainer.js
isGridSupportedByBrowser
function isGridSupportedByBrowser() { return !Device.browser.msie && !(Device.browser.edge && Device.browser.version < EDGE_VERSION_WITH_GRID_SUPPORT); }
javascript
function isGridSupportedByBrowser() { return !Device.browser.msie && !(Device.browser.edge && Device.browser.version < EDGE_VERSION_WITH_GRID_SUPPORT); }
[ "function", "isGridSupportedByBrowser", "(", ")", "{", "return", "!", "Device", ".", "browser", ".", "msie", "&&", "!", "(", "Device", ".", "browser", ".", "edge", "&&", "Device", ".", "browser", ".", "version", "<", "EDGE_VERSION_WITH_GRID_SUPPORT", ")", ";...
Indicates whether the grid is supported by the browser. @private @returns {boolean} If native grid is supported by the browser
[ "Indicates", "whether", "the", "grid", "is", "supported", "by", "the", "browser", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/GridContainer.js#L35-L37
4,037
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (oEvent) { if (this._oView) { this._oView.destroy(); // If we had a view that means this is a navigation so we need to init the busy state this._oContainerPage.setBusy(true); } var oComponent = this.getOwnerComponent(); this._sTopicid = decodeURIComponent(oEvent.getParameter("a...
javascript
function (oEvent) { if (this._oView) { this._oView.destroy(); // If we had a view that means this is a navigation so we need to init the busy state this._oContainerPage.setBusy(true); } var oComponent = this.getOwnerComponent(); this._sTopicid = decodeURIComponent(oEvent.getParameter("a...
[ "function", "(", "oEvent", ")", "{", "if", "(", "this", ".", "_oView", ")", "{", "this", ".", "_oView", ".", "destroy", "(", ")", ";", "// If we had a view that means this is a navigation so we need to init the busy state", "this", ".", "_oContainerPage", ".", "setB...
Binds the view to the object path and expands the aggregated line items. @function @param {sap.ui.base.Event} oEvent pattern match event in route 'api' @private
[ "Binds", "the", "view", "to", "the", "object", "path", "and", "expands", "the", "aggregated", "line", "items", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L55-L93
4,038
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (oView) { var oController = oView.getController(); // Add the sub view to the current one this._oContainerPage.addContent(oView); this._oContainerPage.setBusy(false); // Init the sub view and controller with the needed references.The view's are nested and work in a // mimic way so the...
javascript
function (oView) { var oController = oView.getController(); // Add the sub view to the current one this._oContainerPage.addContent(oView); this._oContainerPage.setBusy(false); // Init the sub view and controller with the needed references.The view's are nested and work in a // mimic way so the...
[ "function", "(", "oView", ")", "{", "var", "oController", "=", "oView", ".", "getController", "(", ")", ";", "// Add the sub view to the current one", "this", ".", "_oContainerPage", ".", "addContent", "(", "oView", ")", ";", "this", ".", "_oContainerPage", ".",...
Init the Sub View and controller @param {sap.ui.view} oView the pre-processed sub view @private
[ "Init", "the", "Sub", "View", "and", "controller" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L100-L121
4,039
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (oBorrowedData) { // Attach resolved borrowed data this._oControlData.borrowed = oBorrowedData; // Pre-process data and create model this._bindData(this._sTopicid); // Create the sub-view and controller this._oView = sap.ui.view({ height: "100%", viewName: "sap.ui.documentat...
javascript
function (oBorrowedData) { // Attach resolved borrowed data this._oControlData.borrowed = oBorrowedData; // Pre-process data and create model this._bindData(this._sTopicid); // Create the sub-view and controller this._oView = sap.ui.view({ height: "100%", viewName: "sap.ui.documentat...
[ "function", "(", "oBorrowedData", ")", "{", "// Attach resolved borrowed data", "this", ".", "_oControlData", ".", "borrowed", "=", "oBorrowedData", ";", "// Pre-process data and create model", "this", ".", "_bindData", "(", "this", ".", "_sTopicid", ")", ";", "// Cre...
Create the JSON model and the Sub View. The model will be used in both lifecycle phases of the sub view by the preprocessor and by the view initiation afterwards. @param {object} oBorrowedData the data extracted by the borrowed methods promise @return {Promise} sap.ui.view.loaded promise @private
[ "Create", "the", "JSON", "model", "and", "the", "Sub", "View", ".", "The", "model", "will", "be", "used", "in", "both", "lifecycle", "phases", "of", "the", "sub", "view", "by", "the", "preprocessor", "and", "by", "the", "view", "initiation", "afterwards", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L130-L154
4,040
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (aLibsData) { var oLibItem, iLen, i; // Find entity in loaded libs data for (i = 0, iLen = aLibsData.length; i < iLen; i++) { oLibItem = aLibsData[i]; if (oLibItem.name === this._sTopicid) { // Check if we are allowed to display the requested symbol // BCP: 18702690...
javascript
function (aLibsData) { var oLibItem, iLen, i; // Find entity in loaded libs data for (i = 0, iLen = aLibsData.length; i < iLen; i++) { oLibItem = aLibsData[i]; if (oLibItem.name === this._sTopicid) { // Check if we are allowed to display the requested symbol // BCP: 18702690...
[ "function", "(", "aLibsData", ")", "{", "var", "oLibItem", ",", "iLen", ",", "i", ";", "// Find entity in loaded libs data", "for", "(", "i", "=", "0", ",", "iLen", "=", "aLibsData", ".", "length", ";", "i", "<", "iLen", ";", "i", "++", ")", "{", "oL...
Extract current symbol data from api.json file for the current library @param {array} aLibsData data from api.json file for the current library @returns {object} current symbol data @private
[ "Extract", "current", "symbol", "data", "from", "api", ".", "json", "file", "for", "the", "current", "library" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L176-L198
4,041
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (aData) { var oEntityData, oMasterController, sTopicId = this._sTopicid; // Cache api-index data this._aApiIndex = aData; // Find symbol function findSymbol (a) { return a.some(function (o) { var bFound = o.name === sTopicId; if (!bFound && o.nodes) { ret...
javascript
function (aData) { var oEntityData, oMasterController, sTopicId = this._sTopicid; // Cache api-index data this._aApiIndex = aData; // Find symbol function findSymbol (a) { return a.some(function (o) { var bFound = o.name === sTopicId; if (!bFound && o.nodes) { ret...
[ "function", "(", "aData", ")", "{", "var", "oEntityData", ",", "oMasterController", ",", "sTopicId", "=", "this", ".", "_sTopicid", ";", "// Cache api-index data", "this", ".", "_aApiIndex", "=", "aData", ";", "// Find symbol", "function", "findSymbol", "(", "a"...
Process data from api-index file and if symbol is found load the corresponding api.json file for the symbol library. If the symbol is not resolved this method returns a rejected promise which triggers navigation to not found page. @param {array} aData data from api-index file @return {Promise} resolved or rejected prom...
[ "Process", "data", "from", "api", "-", "index", "file", "and", "if", "symbol", "is", "found", "load", "the", "corresponding", "api", ".", "json", "file", "for", "the", "symbol", "library", ".", "If", "the", "symbol", "is", "not", "resolved", "this", "met...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L208-L249
4,042
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (aElements, fnFilter, fnFormat) { var i, iLength = aElements.length, aNewElements = [], oElement; for (i = 0; i < iLength; i++) { oElement = aElements[i]; if (fnFilter && !fnFilter(oElement)) { continue; } if (fnFormat) { fnFormat(oElement); } ...
javascript
function (aElements, fnFilter, fnFormat) { var i, iLength = aElements.length, aNewElements = [], oElement; for (i = 0; i < iLength; i++) { oElement = aElements[i]; if (fnFilter && !fnFilter(oElement)) { continue; } if (fnFormat) { fnFormat(oElement); } ...
[ "function", "(", "aElements", ",", "fnFilter", ",", "fnFormat", ")", "{", "var", "i", ",", "iLength", "=", "aElements", ".", "length", ",", "aNewElements", "=", "[", "]", ",", "oElement", ";", "for", "(", "i", "=", "0", ";", "i", "<", "iLength", ";...
Filter and format elements @param {array} aElements list of elements @param {function} fnFilter filtering function @param {function} fnFormat formatting function @returns {array} transformed elements list
[ "Filter", "and", "format", "elements" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js#L603-L621
4,043
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js
preloadModules
function preloadModules (oData) { // prealod the modules from the live-edited src sap.ui.require.preload(oData.src); // require the init module sap.ui.require([oData.moduleNameToRequire]); }
javascript
function preloadModules (oData) { // prealod the modules from the live-edited src sap.ui.require.preload(oData.src); // require the init module sap.ui.require([oData.moduleNameToRequire]); }
[ "function", "preloadModules", "(", "oData", ")", "{", "// prealod the modules from the live-edited src", "sap", ".", "ui", ".", "require", ".", "preload", "(", "oData", ".", "src", ")", ";", "// require the init module", "sap", ".", "ui", ".", "require", "(", "[...
Preload the modules of the live-edited sample so that the framework obtains the module content from the editor-supplied src, insted of making a network request to obtain them @param oData the editor-supplied src
[ "Preload", "the", "modules", "of", "the", "live", "-", "edited", "sample", "so", "that", "the", "framework", "obtains", "the", "module", "content", "from", "the", "editor", "-", "supplied", "src", "insted", "of", "making", "a", "network", "request", "to", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js#L38-L45
4,044
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js
addOnErrorHook
function addOnErrorHook () { window.addEventListener("error", function(error) { error.preventDefault(); var oErrorOutput = document.createElement("span"); oErrorOutput.innerText = error.message; // use save API oErrorOutput.style.cssText = "position:absolute; top:1rem; left:1rem"; if (!document.body) ...
javascript
function addOnErrorHook () { window.addEventListener("error", function(error) { error.preventDefault(); var oErrorOutput = document.createElement("span"); oErrorOutput.innerText = error.message; // use save API oErrorOutput.style.cssText = "position:absolute; top:1rem; left:1rem"; if (!document.body) ...
[ "function", "addOnErrorHook", "(", ")", "{", "window", ".", "addEventListener", "(", "\"error\"", ",", "function", "(", "error", ")", "{", "error", ".", "preventDefault", "(", ")", ";", "var", "oErrorOutput", "=", "document", ".", "createElement", "(", "\"sp...
Listen for errors and display them in the DOM, so that the user does not need to open the console
[ "Listen", "for", "errors", "and", "display", "them", "in", "the", "DOM", "so", "that", "the", "user", "does", "not", "need", "to", "open", "the", "console" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js#L51-L63
4,045
SAP/openui5
src/sap.ui.core/src/sap/base/util/Version.js
Version
function Version(vMajor, iMinor, iPatch, sSuffix) { if ( vMajor instanceof Version ) { // note: even a constructor may return a value different from 'this' return vMajor; } if ( !(this instanceof Version) ) { // act as a cast operator when called as function (not as a constructor) return new Version(v...
javascript
function Version(vMajor, iMinor, iPatch, sSuffix) { if ( vMajor instanceof Version ) { // note: even a constructor may return a value different from 'this' return vMajor; } if ( !(this instanceof Version) ) { // act as a cast operator when called as function (not as a constructor) return new Version(v...
[ "function", "Version", "(", "vMajor", ",", "iMinor", ",", "iPatch", ",", "sSuffix", ")", "{", "if", "(", "vMajor", "instanceof", "Version", ")", "{", "// note: even a constructor may return a value different from 'this'", "return", "vMajor", ";", "}", "if", "(", "...
Returns a Version instance created from the given parameters. This function can either be called as a constructor (using <code>new</code>) or as a normal function. It always returns an immutable Version instance. The parts of the version number (major, minor, patch, suffix) can be provided in several ways: <ul> <li>V...
[ "Returns", "a", "Version", "instance", "created", "from", "the", "given", "parameters", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/base/util/Version.js#L46-L146
4,046
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(sLogType, aMessageComponents, aValuesToInsert, sCallStack) { var sLogMessage = aMessageComponents.join(' '); sLogMessage = formatMessage(sLogMessage, aValuesToInsert); this.log[sLogType](sLogMessage, sCallStack || ""); }
javascript
function(sLogType, aMessageComponents, aValuesToInsert, sCallStack) { var sLogMessage = aMessageComponents.join(' '); sLogMessage = formatMessage(sLogMessage, aValuesToInsert); this.log[sLogType](sLogMessage, sCallStack || ""); }
[ "function", "(", "sLogType", ",", "aMessageComponents", ",", "aValuesToInsert", ",", "sCallStack", ")", "{", "var", "sLogMessage", "=", "aMessageComponents", ".", "join", "(", "' '", ")", ";", "sLogMessage", "=", "formatMessage", "(", "sLogMessage", ",", "aValue...
Formats the log message by replacing placeholders with values and logging the message. @param {string} sLogType - Logging type to be used. Possible values: info | warning | debug | error @param {array.<string>} aMessageComponents - Individual parts of the message text @param {array.<any>} aValuesToInsert - The values ...
[ "Formats", "the", "log", "message", "by", "replacing", "placeholders", "with", "values", "and", "logging", "the", "message", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L90-L94
4,047
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oModel; if (!oControl) { return ""; } // Get Model if (oControl && typeof oControl.getModel === "function") { oModel = oControl.getModel(); return Utils._getXSRFTokenFromModel(oModel); } return ""; }
javascript
function (oControl) { var oModel; if (!oControl) { return ""; } // Get Model if (oControl && typeof oControl.getModel === "function") { oModel = oControl.getModel(); return Utils._getXSRFTokenFromModel(oModel); } return ""; }
[ "function", "(", "oControl", ")", "{", "var", "oModel", ";", "if", "(", "!", "oControl", ")", "{", "return", "\"\"", ";", "}", "// Get Model", "if", "(", "oControl", "&&", "typeof", "oControl", ".", "getModel", "===", "\"function\"", ")", "{", "oModel", ...
Tries to retrieve the xsrf token from the controls OData Model. Returns empty string if retrieval failed. @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {String} XSRF Token @public @function @name sap.ui.fl.Utils.getXSRFTokenFromControl
[ "Tries", "to", "retrieve", "the", "xsrf", "token", "from", "the", "controls", "OData", "Model", ".", "Returns", "empty", "string", "if", "retrieval", "failed", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L105-L117
4,048
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oModel) { var mHeaders; if (!oModel) { return ""; } if (typeof oModel.getHeaders === "function") { mHeaders = oModel.getHeaders(); if (mHeaders) { return mHeaders["x-csrf-token"]; } } return ""; }
javascript
function (oModel) { var mHeaders; if (!oModel) { return ""; } if (typeof oModel.getHeaders === "function") { mHeaders = oModel.getHeaders(); if (mHeaders) { return mHeaders["x-csrf-token"]; } } return ""; }
[ "function", "(", "oModel", ")", "{", "var", "mHeaders", ";", "if", "(", "!", "oModel", ")", "{", "return", "\"\"", ";", "}", "if", "(", "typeof", "oModel", ".", "getHeaders", "===", "\"function\"", ")", "{", "mHeaders", "=", "oModel", ".", "getHeaders"...
Returns XSRF Token from the Odata Model. Returns empty string if retrieval failed @param {sap.ui.model.odata.ODataModel} oModel - OData Model @returns {String} XSRF Token @private
[ "Returns", "XSRF", "Token", "from", "the", "Odata", "Model", ".", "Returns", "empty", "string", "if", "retrieval", "failed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L126-L138
4,049
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oAppComponent; // determine UI5 component out of given control if (oControl) { // always return the app component oAppComponent = this.getAppComponentForControl(oControl); // check if the component is an application variant and assigned an application descriptor then use...
javascript
function (oControl) { var oAppComponent; // determine UI5 component out of given control if (oControl) { // always return the app component oAppComponent = this.getAppComponentForControl(oControl); // check if the component is an application variant and assigned an application descriptor then use...
[ "function", "(", "oControl", ")", "{", "var", "oAppComponent", ";", "// determine UI5 component out of given control", "if", "(", "oControl", ")", "{", "// always return the app component", "oAppComponent", "=", "this", ".", "getAppComponentForControl", "(", "oControl", "...
Returns the class name of the component the given control belongs to. @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {String} The component class name, ending with ".Component" @see sap.ui.core.Component.getOwnerIdFor @public @function @name sap.ui.fl.Utils.getComponentClassName
[ "Returns", "the", "class", "name", "of", "the", "component", "the", "given", "control", "belongs", "to", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L151-L173
4,050
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oManifest = null, oComponent = null, oComponentMetaData = null; // determine UI5 component out of given control if (oControl) { oComponent = this.getAppComponentForControl(oControl); // determine manifest out of found component if (oComponent && oComponent.getMetadata) {...
javascript
function (oControl) { var oManifest = null, oComponent = null, oComponentMetaData = null; // determine UI5 component out of given control if (oControl) { oComponent = this.getAppComponentForControl(oControl); // determine manifest out of found component if (oComponent && oComponent.getMetadata) {...
[ "function", "(", "oControl", ")", "{", "var", "oManifest", "=", "null", ",", "oComponent", "=", "null", ",", "oComponentMetaData", "=", "null", ";", "// determine UI5 component out of given control", "if", "(", "oControl", ")", "{", "oComponent", "=", "this", "....
Returns the appDescriptor of the component for the given control @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {object} that represent the appDescriptor @public @function @name sap.ui.fl.Utils.getAppDescriptor
[ "Returns", "the", "appDescriptor", "of", "the", "component", "for", "the", "given", "control" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L226-L243
4,051
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var sSiteId = null, oAppComponent = null; // determine UI5 component out of given control if (oControl) { oAppComponent = this.getAppComponentForControl(oControl); // determine siteId from ComponentData if (oAppComponent) { //Workaround for back-end check: isApplicatio...
javascript
function (oControl) { var sSiteId = null, oAppComponent = null; // determine UI5 component out of given control if (oControl) { oAppComponent = this.getAppComponentForControl(oControl); // determine siteId from ComponentData if (oAppComponent) { //Workaround for back-end check: isApplicatio...
[ "function", "(", "oControl", ")", "{", "var", "sSiteId", "=", "null", ",", "oAppComponent", "=", "null", ";", "// determine UI5 component out of given control", "if", "(", "oControl", ")", "{", "oAppComponent", "=", "this", ".", "getAppComponentForControl", "(", "...
Returns the siteId of a component @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {string} siteId - that represent the found siteId @public @function @name sap.ui.fl.Utils.getSiteId
[ "Returns", "the", "siteId", "of", "a", "component" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L254-L275
4,052
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (sPropertyValue) { var bIsBinding = false; if (sPropertyValue && typeof sPropertyValue === "string" && sPropertyValue.substring(0, 1) === "{" && sPropertyValue.slice(-1) === "}") { bIsBinding = true; } return bIsBinding; }
javascript
function (sPropertyValue) { var bIsBinding = false; if (sPropertyValue && typeof sPropertyValue === "string" && sPropertyValue.substring(0, 1) === "{" && sPropertyValue.slice(-1) === "}") { bIsBinding = true; } return bIsBinding; }
[ "function", "(", "sPropertyValue", ")", "{", "var", "bIsBinding", "=", "false", ";", "if", "(", "sPropertyValue", "&&", "typeof", "sPropertyValue", "===", "\"string\"", "&&", "sPropertyValue", ".", "substring", "(", "0", ",", "1", ")", "===", "\"{\"", "&&", ...
Indicates if the property value represents a binding @param {object} sPropertyValue - Property value @returns {boolean} true if value represents a binding @public @function @name sap.ui.fl.Utils.isBinding
[ "Indicates", "if", "the", "property", "value", "represents", "a", "binding" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L316-L322
4,053
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var sFlexReference = Utils.getComponentClassName(oControl); var oAppComponent = Utils.getAppComponentForControl(oControl); var sComponentName = Utils.getComponentName(oAppComponent); return sFlexReference !== sComponentName; }
javascript
function (oControl) { var sFlexReference = Utils.getComponentClassName(oControl); var oAppComponent = Utils.getAppComponentForControl(oControl); var sComponentName = Utils.getComponentName(oAppComponent); return sFlexReference !== sComponentName; }
[ "function", "(", "oControl", ")", "{", "var", "sFlexReference", "=", "Utils", ".", "getComponentClassName", "(", "oControl", ")", ";", "var", "oAppComponent", "=", "Utils", ".", "getAppComponentForControl", "(", "oControl", ")", ";", "var", "sComponentName", "="...
Indicates if the current application is a variant of an existing one @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {boolean} true if it's an application variant @public @function @name sap.ui.fl.Utils.isApplicationVariant
[ "Indicates", "if", "the", "current", "application", "is", "a", "variant", "of", "an", "existing", "one" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L350-L355
4,054
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oComponent, sParameterName) { var startUpParameterContent = null; if (sParameterName) { if (oComponent && oComponent.getComponentData) { startUpParameterContent = this._getStartUpParameter(oComponent.getComponentData(), sParameterName); } } return startUpParameterContent; }
javascript
function (oComponent, sParameterName) { var startUpParameterContent = null; if (sParameterName) { if (oComponent && oComponent.getComponentData) { startUpParameterContent = this._getStartUpParameter(oComponent.getComponentData(), sParameterName); } } return startUpParameterContent; }
[ "function", "(", "oComponent", ",", "sParameterName", ")", "{", "var", "startUpParameterContent", "=", "null", ";", "if", "(", "sParameterName", ")", "{", "if", "(", "oComponent", "&&", "oComponent", ".", "getComponentData", ")", "{", "startUpParameterContent", ...
Determines the content for a given startUpParameter name @param {sap.ui.core.Component} oComponent - component instance @param {String} sParameterName - startUpParameterName that shall be determined @returns {String} content of found startUpParameter @private
[ "Determines", "the", "content", "for", "a", "given", "startUpParameter", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L451-L461
4,055
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oComponent) { var sComponentName = ""; if (oComponent) { sComponentName = oComponent.getMetadata().getName(); } if (sComponentName.length > 0 && sComponentName.indexOf(".Component") < 0) { sComponentName += ".Component"; } return sComponentName; }
javascript
function (oComponent) { var sComponentName = ""; if (oComponent) { sComponentName = oComponent.getMetadata().getName(); } if (sComponentName.length > 0 && sComponentName.indexOf(".Component") < 0) { sComponentName += ".Component"; } return sComponentName; }
[ "function", "(", "oComponent", ")", "{", "var", "sComponentName", "=", "\"\"", ";", "if", "(", "oComponent", ")", "{", "sComponentName", "=", "oComponent", ".", "getMetadata", "(", ")", ".", "getName", "(", ")", ";", "}", "if", "(", "sComponentName", "."...
Gets the component name for a component instance. @param {sap.ui.core.Component} oComponent component instance @returns {String} component name @public
[ "Gets", "the", "component", "name", "for", "a", "component", "instance", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L478-L487
4,056
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var sComponentId = Utils._getOwnerIdForControl(oControl); if (!sComponentId) { if (oControl && typeof oControl.getParent === "function") { var oParent = oControl.getParent(); if (oParent) { return Utils._getComponentIdForControl(oParent); } } } return sComp...
javascript
function (oControl) { var sComponentId = Utils._getOwnerIdForControl(oControl); if (!sComponentId) { if (oControl && typeof oControl.getParent === "function") { var oParent = oControl.getParent(); if (oParent) { return Utils._getComponentIdForControl(oParent); } } } return sComp...
[ "function", "(", "oControl", ")", "{", "var", "sComponentId", "=", "Utils", ".", "_getOwnerIdForControl", "(", "oControl", ")", ";", "if", "(", "!", "sComponentId", ")", "{", "if", "(", "oControl", "&&", "typeof", "oControl", ".", "getParent", "===", "\"fu...
Returns ComponentId of the control. If the control has no component, it walks up the control tree in order to find a control having one @param {sap.ui.core.Control} oControl - SAPUI5 control @returns {String} The component id or empty string if component id couldn't be found @see sap.ui.core.Component.getOwnerIdFor @p...
[ "Returns", "ComponentId", "of", "the", "control", ".", "If", "the", "control", "has", "no", "component", "it", "walks", "up", "the", "control", "tree", "in", "order", "to", "find", "a", "control", "having", "one" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L512-L523
4,057
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oComponent = null; var sComponentId = null; // determine UI5 component out of given control if (oControl) { sComponentId = Utils._getComponentIdForControl(oControl); if (sComponentId) { oComponent = Utils._getComponent(sComponentId); } } return oComponent; ...
javascript
function (oControl) { var oComponent = null; var sComponentId = null; // determine UI5 component out of given control if (oControl) { sComponentId = Utils._getComponentIdForControl(oControl); if (sComponentId) { oComponent = Utils._getComponent(sComponentId); } } return oComponent; ...
[ "function", "(", "oControl", ")", "{", "var", "oComponent", "=", "null", ";", "var", "sComponentId", "=", "null", ";", "// determine UI5 component out of given control", "if", "(", "oControl", ")", "{", "sComponentId", "=", "Utils", ".", "_getComponentIdForControl",...
Returns the Component that belongs to given control. If the control has no component, it walks up the control tree in order to find a control having one. @param {sap.ui.base.ManagedObject} oControl - Managed object instance @returns {sap.ui.core.Component|null} found component @private
[ "Returns", "the", "Component", "that", "belongs", "to", "given", "control", ".", "If", "the", "control", "has", "no", "component", "it", "walks", "up", "the", "control", "tree", "in", "order", "to", "find", "a", "control", "having", "one", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L558-L571
4,058
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oComponent) { var oSapApp = null; // special case for Fiori Elements to reach the real appComponent if (oComponent && oComponent.getAppComponent) { return oComponent.getAppComponent(); } // special case for OVP if (oComponent && oComponent.oComponentData && oComponent.oComponentData.app...
javascript
function (oComponent) { var oSapApp = null; // special case for Fiori Elements to reach the real appComponent if (oComponent && oComponent.getAppComponent) { return oComponent.getAppComponent(); } // special case for OVP if (oComponent && oComponent.oComponentData && oComponent.oComponentData.app...
[ "function", "(", "oComponent", ")", "{", "var", "oSapApp", "=", "null", ";", "// special case for Fiori Elements to reach the real appComponent", "if", "(", "oComponent", "&&", "oComponent", ".", "getAppComponent", ")", "{", "return", "oComponent", ".", "getAppComponent...
Returns the Component that belongs to given component whose type is "application". @param {sap.ui.core.Component} oComponent - SAPUI5 component @returns {sap.ui.core.Component|null} component instance if found or null @private
[ "Returns", "the", "Component", "that", "belongs", "to", "given", "component", "whose", "type", "is", "application", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L580-L609
4,059
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (bIsEndUser) { var oUriParams, sLayer; if (bIsEndUser) { return "USER"; } oUriParams = this._getUriParameters(); sLayer = oUriParams.get("sap-ui-layer") || ""; sLayer = sLayer.toUpperCase(); return sLayer || "CUSTOMER"; }
javascript
function (bIsEndUser) { var oUriParams, sLayer; if (bIsEndUser) { return "USER"; } oUriParams = this._getUriParameters(); sLayer = oUriParams.get("sap-ui-layer") || ""; sLayer = sLayer.toUpperCase(); return sLayer || "CUSTOMER"; }
[ "function", "(", "bIsEndUser", ")", "{", "var", "oUriParams", ",", "sLayer", ";", "if", "(", "bIsEndUser", ")", "{", "return", "\"USER\"", ";", "}", "oUriParams", "=", "this", ".", "_getUriParameters", "(", ")", ";", "sLayer", "=", "oUriParams", ".", "ge...
Returns the current layer as defined by the url parameter. If the end user flag is set, it always returns "USER". @param {boolean} bIsEndUser - the end user flag @returns {string} the current layer @public @function @name sap.ui.fl.Utils.getCurrentLayer
[ "Returns", "the", "current", "layer", "as", "defined", "by", "the", "url", "parameter", ".", "If", "the", "end", "user", "flag", "is", "set", "it", "always", "returns", "USER", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L693-L703
4,060
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) { var oMetadata; if (oControl && typeof oControl.getMetadata === "function") { oMetadata = oControl.getMetadata(); if (oMetadata && typeof oMetadata.getElementName === "function") { return oMetadata.getElementName(); } } }
javascript
function (oControl) { var oMetadata; if (oControl && typeof oControl.getMetadata === "function") { oMetadata = oControl.getMetadata(); if (oMetadata && typeof oMetadata.getElementName === "function") { return oMetadata.getElementName(); } } }
[ "function", "(", "oControl", ")", "{", "var", "oMetadata", ";", "if", "(", "oControl", "&&", "typeof", "oControl", ".", "getMetadata", "===", "\"function\"", ")", "{", "oMetadata", "=", "oControl", ".", "getMetadata", "(", ")", ";", "if", "(", "oMetadata",...
Retrieves the controlType of the control @param {sap.ui.core.Control} oControl Control instance @returns {string} control type of the control - undefined if controlType cannot be determined @private
[ "Retrieves", "the", "controlType", "of", "the", "control" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L800-L808
4,061
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (ascii) { var asciiArray = ascii.split(","); var parsedString = ""; jQuery.each(asciiArray, function (index, asciiChar) { parsedString += String.fromCharCode(asciiChar); }); return parsedString; }
javascript
function (ascii) { var asciiArray = ascii.split(","); var parsedString = ""; jQuery.each(asciiArray, function (index, asciiChar) { parsedString += String.fromCharCode(asciiChar); }); return parsedString; }
[ "function", "(", "ascii", ")", "{", "var", "asciiArray", "=", "ascii", ".", "split", "(", "\",\"", ")", ";", "var", "parsedString", "=", "\"\"", ";", "jQuery", ".", "each", "(", "asciiArray", ",", "function", "(", "index", ",", "asciiChar", ")", "{", ...
Converts ASCII coding into a string. Required for restoring stored code extensions @param {String} ascii string containing ascii code valid numbers separated by ',' @returns {String} parsedString parsed string
[ "Converts", "ASCII", "coding", "into", "a", "string", ".", "Required", "for", "restoring", "stored", "code", "extensions" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L816-L826
4,062
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (string) { var ascii = ""; for (var i = 0; i < string.length; i++) { ascii += string.charCodeAt(i) + ","; } // remove last "," ascii = ascii.substring(0, ascii.length - 1); return ascii; }
javascript
function (string) { var ascii = ""; for (var i = 0; i < string.length; i++) { ascii += string.charCodeAt(i) + ","; } // remove last "," ascii = ascii.substring(0, ascii.length - 1); return ascii; }
[ "function", "(", "string", ")", "{", "var", "ascii", "=", "\"\"", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "string", ".", "length", ";", "i", "++", ")", "{", "ascii", "+=", "string", ".", "charCodeAt", "(", "i", ")", "+", "\",\"", ...
Converts a string into ASCII coding. Required for restoring stored code extensions @param {String} string string which has to be encoded @returns {String} ascii imput parsed to ascii numbers separated by ','
[ "Converts", "a", "string", "into", "ASCII", "coding", ".", "Required", "for", "restoring", "stored", "code", "extensions" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L834-L845
4,063
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(){ var oUshellContainer = Utils.getUshellContainer(); if (oUshellContainer) { var oURLParser = oUshellContainer.getService("URLParsing"); var oParsedHash = oURLParser.parseShellHash(hasher.getHash()); return oParsedHash ? oParsedHash : { }; } return { }; }
javascript
function(){ var oUshellContainer = Utils.getUshellContainer(); if (oUshellContainer) { var oURLParser = oUshellContainer.getService("URLParsing"); var oParsedHash = oURLParser.parseShellHash(hasher.getHash()); return oParsedHash ? oParsedHash : { }; } return { }; }
[ "function", "(", ")", "{", "var", "oUshellContainer", "=", "Utils", ".", "getUshellContainer", "(", ")", ";", "if", "(", "oUshellContainer", ")", "{", "var", "oURLParser", "=", "oUshellContainer", ".", "getService", "(", "\"URLParsing\"", ")", ";", "var", "o...
Returns URL hash when ushell container is available @returns {object} Returns the parsed URL hash object or an empty object if ushell container is not available
[ "Returns", "URL", "hash", "when", "ushell", "container", "is", "available" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L891-L899
4,064
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oComponent, sParameterName, aValues) { var oParsedHash = Utils.getParsedURLHash(sParameterName); if (oParsedHash.params) { hasher.changed.active = false; //disable changed signal var mTechnicalParameters = Utils.getTechnicalParametersForComponent(oComponent); // if mTechnicalParameter...
javascript
function (oComponent, sParameterName, aValues) { var oParsedHash = Utils.getParsedURLHash(sParameterName); if (oParsedHash.params) { hasher.changed.active = false; //disable changed signal var mTechnicalParameters = Utils.getTechnicalParametersForComponent(oComponent); // if mTechnicalParameter...
[ "function", "(", "oComponent", ",", "sParameterName", ",", "aValues", ")", "{", "var", "oParsedHash", "=", "Utils", ".", "getParsedURLHash", "(", "sParameterName", ")", ";", "if", "(", "oParsedHash", ".", "params", ")", "{", "hasher", ".", "changed", ".", ...
Sets the values for url hash and technical parameters for the component data. Deactivates hash based navigation while performing the operations, which is then re-activated upon completion. If the passed doesn't exist in the url hash or technical parameters, then a new object is added respectively. @param {object} oCom...
[ "Sets", "the", "values", "for", "url", "hash", "and", "technical", "parameters", "for", "the", "component", "data", ".", "Deactivates", "hash", "based", "navigation", "while", "performing", "the", "operations", "which", "is", "then", "re", "-", "activated", "u...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L910-L931
4,065
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (mPropertyBag) { var sAppVersion = mPropertyBag.appVersion; var bDeveloperMode = mPropertyBag.developerMode; var sScenario = mPropertyBag.scenario; var oValidAppVersions = { creation: sAppVersion, from: sAppVersion }; if (this._isValidAppVersionToRequired(sAppVersion, bDeveloperMode, ...
javascript
function (mPropertyBag) { var sAppVersion = mPropertyBag.appVersion; var bDeveloperMode = mPropertyBag.developerMode; var sScenario = mPropertyBag.scenario; var oValidAppVersions = { creation: sAppVersion, from: sAppVersion }; if (this._isValidAppVersionToRequired(sAppVersion, bDeveloperMode, ...
[ "function", "(", "mPropertyBag", ")", "{", "var", "sAppVersion", "=", "mPropertyBag", ".", "appVersion", ";", "var", "bDeveloperMode", "=", "mPropertyBag", ".", "developerMode", ";", "var", "sScenario", "=", "mPropertyBag", ".", "scenario", ";", "var", "oValidAp...
Generates a ValidAppVersions object for changes and variants; Depending on the parameters passed a 'to' field is included. @param {map} mPropertyBag @param {string} mPropertyBag.appVersion Version to be filled into the validAppVersions object fields @param {boolean} mPropertyBag.developerMode Flag if the creation of t...
[ "Generates", "a", "ValidAppVersions", "object", "for", "changes", "and", "variants", ";", "Depending", "on", "the", "parameters", "passed", "a", "to", "field", "is", "included", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1043-L1055
4,066
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (sAppVersion, bDeveloperMode, sScenario) { return !!sAppVersion && !!bDeveloperMode && sScenario !== sap.ui.fl.Scenario.AdaptationProject && sScenario !== sap.ui.fl.Scenario.AppVariant; }
javascript
function (sAppVersion, bDeveloperMode, sScenario) { return !!sAppVersion && !!bDeveloperMode && sScenario !== sap.ui.fl.Scenario.AdaptationProject && sScenario !== sap.ui.fl.Scenario.AppVariant; }
[ "function", "(", "sAppVersion", ",", "bDeveloperMode", ",", "sScenario", ")", "{", "return", "!", "!", "sAppVersion", "&&", "!", "!", "bDeveloperMode", "&&", "sScenario", "!==", "sap", ".", "ui", ".", "fl", ".", "Scenario", ".", "AdaptationProject", "&&", ...
Determines if a 'to' field is required in a validAppVersions object. @param sAppVersion @param bDeveloperMode @param sScenario @returns {boolean} @private
[ "Determines", "if", "a", "to", "field", "is", "required", "in", "a", "validAppVersions", "object", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1065-L1070
4,067
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oManifest) { var sUri = ""; if (oManifest){ var oSapApp = (oManifest.getEntry) ? oManifest.getEntry("sap.app") : oManifest["sap.app"]; if (oSapApp && oSapApp.dataSources && oSapApp.dataSources.mainService && oSapApp.dataSources.mainService.uri){ sUri = oSapApp.dataSources.mainService.uri; ...
javascript
function (oManifest) { var sUri = ""; if (oManifest){ var oSapApp = (oManifest.getEntry) ? oManifest.getEntry("sap.app") : oManifest["sap.app"]; if (oSapApp && oSapApp.dataSources && oSapApp.dataSources.mainService && oSapApp.dataSources.mainService.uri){ sUri = oSapApp.dataSources.mainService.uri; ...
[ "function", "(", "oManifest", ")", "{", "var", "sUri", "=", "\"\"", ";", "if", "(", "oManifest", ")", "{", "var", "oSapApp", "=", "(", "oManifest", ".", "getEntry", ")", "?", "oManifest", ".", "getEntry", "(", "\"sap.app\"", ")", ":", "oManifest", "[",...
Returns the uri of the main service specified in the app manifest @param {object} oManifest - Manifest of the component @returns {string} Returns the uri if the manifest is available, otherwise an empty string @public
[ "Returns", "the", "uri", "of", "the", "main", "service", "specified", "in", "the", "app", "manifest" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1172-L1183
4,068
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(aArray, oObject) { var iObjectIndex = -1; aArray.some(function(oArrayObject, iIndex) { var aKeysArray, aKeysObject; if (!oArrayObject) { aKeysArray = []; } else { aKeysArray = Object.keys(oArrayObject); } if (!oObject) { aKeysObject = []; } else { aKeysObject ...
javascript
function(aArray, oObject) { var iObjectIndex = -1; aArray.some(function(oArrayObject, iIndex) { var aKeysArray, aKeysObject; if (!oArrayObject) { aKeysArray = []; } else { aKeysArray = Object.keys(oArrayObject); } if (!oObject) { aKeysObject = []; } else { aKeysObject ...
[ "function", "(", "aArray", ",", "oObject", ")", "{", "var", "iObjectIndex", "=", "-", "1", ";", "aArray", ".", "some", "(", "function", "(", "oArrayObject", ",", "iIndex", ")", "{", "var", "aKeysArray", ",", "aKeysObject", ";", "if", "(", "!", "oArrayO...
Checks if an object is in an array or not and returns the index or -1 @param {object[]} aArray Array of objects @param {object} oObject object that should be part of the array @returns {int} Returns the index of the object in the array, -1 if it is not in the array @public
[ "Checks", "if", "an", "object", "is", "in", "an", "array", "or", "not", "and", "returns", "the", "index", "or", "-", "1" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1248-L1275
4,069
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(mChanges, sChangeId) { var oResult; Object.keys(mChanges).forEach(function(sControlId) { mChanges[sControlId].some(function(oChange) { if (oChange.getId() === sChangeId) { oResult = oChange; return true; } }); }); return oResult; }
javascript
function(mChanges, sChangeId) { var oResult; Object.keys(mChanges).forEach(function(sControlId) { mChanges[sControlId].some(function(oChange) { if (oChange.getId() === sChangeId) { oResult = oChange; return true; } }); }); return oResult; }
[ "function", "(", "mChanges", ",", "sChangeId", ")", "{", "var", "oResult", ";", "Object", ".", "keys", "(", "mChanges", ")", ".", "forEach", "(", "function", "(", "sControlId", ")", "{", "mChanges", "[", "sControlId", "]", ".", "some", "(", "function", ...
Function that gets a specific change from a map of changes. @param {map} mChanges Map of all changes @param {string} sChangeId Id of the change that should be retrieved @returns {sap.ui.fl.Change | undefined} Returns the change if it is in the map, otherwise undefined
[ "Function", "that", "gets", "a", "specific", "change", "from", "a", "map", "of", "changes", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1395-L1406
4,070
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/Utils.js
function(sModuleName) { //TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value return new Promise(function(fnResolve, fnReject) { sap.ui.require([sModuleName], function(oModule) { fnResolve(oModule); }, function(oError) { fnReject(oError); }); ...
javascript
function(sModuleName) { //TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value return new Promise(function(fnResolve, fnReject) { sap.ui.require([sModuleName], function(oModule) { fnResolve(oModule); }, function(oError) { fnReject(oError); }); ...
[ "function", "(", "sModuleName", ")", "{", "//TODO: get rid of require async as soon as sap.ui.require has learned Promises as return value", "return", "new", "Promise", "(", "function", "(", "fnResolve", ",", "fnReject", ")", "{", "sap", ".", "ui", ".", "require", "(", ...
Wraps the async sap.ui.require call into a Promise. @param {string} sModuleName Name of the required module @returns {Promise} Returns a promise.
[ "Wraps", "the", "async", "sap", ".", "ui", ".", "require", "call", "into", "a", "Promise", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/Utils.js#L1413-L1423
4,071
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sPath, oItem) { if (oItem) { if (!mMap[sPath]) { mMap[sPath] = [oItem]; } else if (mMap[sPath].indexOf(oItem) < 0) { mMap[sPath].push(oItem); } } }
javascript
function (mMap, sPath, oItem) { if (oItem) { if (!mMap[sPath]) { mMap[sPath] = [oItem]; } else if (mMap[sPath].indexOf(oItem) < 0) { mMap[sPath].push(oItem); } } }
[ "function", "(", "mMap", ",", "sPath", ",", "oItem", ")", "{", "if", "(", "oItem", ")", "{", "if", "(", "!", "mMap", "[", "sPath", "]", ")", "{", "mMap", "[", "sPath", "]", "=", "[", "oItem", "]", ";", "}", "else", "if", "(", "mMap", "[", "...
Adds an item to the given map by path. @param {object} mMap A map from path to a list of items @param {string} sPath The path @param {object} [oItem] The item; if it is <code>undefined</code>, nothing happens
[ "Adds", "an", "item", "to", "the", "given", "map", "by", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L37-L45
4,072
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (aChildren, aAncestors, mChildren) { if (aAncestors.length) { aChildren.forEach(function (sPath) { var aSegments; if (aAncestors.indexOf(sPath) >= 0) { mChildren[sPath] = true; return; } aSegments = sPath.split("/"); aSegments.pop(); while (aSegments.length) {...
javascript
function (aChildren, aAncestors, mChildren) { if (aAncestors.length) { aChildren.forEach(function (sPath) { var aSegments; if (aAncestors.indexOf(sPath) >= 0) { mChildren[sPath] = true; return; } aSegments = sPath.split("/"); aSegments.pop(); while (aSegments.length) {...
[ "function", "(", "aChildren", ",", "aAncestors", ",", "mChildren", ")", "{", "if", "(", "aAncestors", ".", "length", ")", "{", "aChildren", ".", "forEach", "(", "function", "(", "sPath", ")", "{", "var", "aSegments", ";", "if", "(", "aAncestors", ".", ...
Adds all given children to the given hash set which either appear in the given list or have some ancestor in it. Note: "a/b/c" is deemed a child of the ancestors "a/b" and "a", but not "b" or "a/b/c/d". @param {string[]} aChildren - List of non-empty child paths (unmodified) @param {string[]} aAncestors - List of anc...
[ "Adds", "all", "given", "children", "to", "the", "given", "hash", "set", "which", "either", "appear", "in", "the", "given", "list", "or", "have", "some", "ancestor", "in", "it", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L58-L79
4,073
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function () { var i, sPath = "", sSegment; for (i = 0; i < arguments.length; i += 1) { sSegment = arguments[i]; if (sSegment || sSegment === 0) { if (sPath && sPath !== "/" && sSegment[0] !== "(") { sPath += "/"; } sPath += sSegment; } } return sPath; }
javascript
function () { var i, sPath = "", sSegment; for (i = 0; i < arguments.length; i += 1) { sSegment = arguments[i]; if (sSegment || sSegment === 0) { if (sPath && sPath !== "/" && sSegment[0] !== "(") { sPath += "/"; } sPath += sSegment; } } return sPath; }
[ "function", "(", ")", "{", "var", "i", ",", "sPath", "=", "\"\"", ",", "sSegment", ";", "for", "(", "i", "=", "0", ";", "i", "<", "arguments", ".", "length", ";", "i", "+=", "1", ")", "{", "sSegment", "=", "arguments", "[", "i", "]", ";", "if...
Builds a relative path from the given arguments. Iterates over the arguments and appends them to the path if defined and non-empty. The arguments are expected to be strings or integers, but this is not checked. Examples: buildPath() --> "" buildPath("base", "relative") --> "base/relative" buildPath("base", "") --> "ba...
[ "Builds", "a", "relative", "path", "from", "the", "given", "arguments", ".", "Iterates", "over", "the", "arguments", "and", "appends", "them", "to", "the", "path", "if", "defined", "and", "non", "-", "empty", ".", "The", "arguments", "are", "expected", "to...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L113-L128
4,074
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sPart, bEncodeEquals) { var sEncoded = encodeURI(sPart) .replace(rAmpersand, "%26") .replace(rHash, "%23") .replace(rPlus, "%2B"); if (bEncodeEquals) { sEncoded = sEncoded.replace(rEquals, "%3D"); } return sEncoded; }
javascript
function (sPart, bEncodeEquals) { var sEncoded = encodeURI(sPart) .replace(rAmpersand, "%26") .replace(rHash, "%23") .replace(rPlus, "%2B"); if (bEncodeEquals) { sEncoded = sEncoded.replace(rEquals, "%3D"); } return sEncoded; }
[ "function", "(", "sPart", ",", "bEncodeEquals", ")", "{", "var", "sEncoded", "=", "encodeURI", "(", "sPart", ")", ".", "replace", "(", "rAmpersand", ",", "\"%26\"", ")", ".", "replace", "(", "rHash", ",", "\"%23\"", ")", ".", "replace", "(", "rPlus", "...
Encodes a query part, either a key or a value. @param {string} sPart The query part @param {boolean} bEncodeEquals If true, "=" is encoded, too @returns {string} The encoded query part
[ "Encodes", "a", "query", "part", "either", "a", "key", "or", "a", "value", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L363-L372
4,075
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sKey, sValue) { return _Helper.encode(sKey, true) + "=" + _Helper.encode(sValue, false); }
javascript
function (sKey, sValue) { return _Helper.encode(sKey, true) + "=" + _Helper.encode(sValue, false); }
[ "function", "(", "sKey", ",", "sValue", ")", "{", "return", "_Helper", ".", "encode", "(", "sKey", ",", "true", ")", "+", "\"=\"", "+", "_Helper", ".", "encode", "(", "sValue", ",", "false", ")", ";", "}" ]
Encodes a key-value pair. @param {string} sKey The key @param {string} sValue The sValue @returns {string} The encoded key-value pair in the form "key=value"
[ "Encodes", "a", "key", "-", "value", "pair", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L384-L386
4,076
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mChangeListeners, sPropertyPath, vValue) { var aListeners = mChangeListeners[sPropertyPath], i; if (aListeners) { for (i = 0; i < aListeners.length; i += 1) { aListeners[i].onChange(vValue); } } }
javascript
function (mChangeListeners, sPropertyPath, vValue) { var aListeners = mChangeListeners[sPropertyPath], i; if (aListeners) { for (i = 0; i < aListeners.length; i += 1) { aListeners[i].onChange(vValue); } } }
[ "function", "(", "mChangeListeners", ",", "sPropertyPath", ",", "vValue", ")", "{", "var", "aListeners", "=", "mChangeListeners", "[", "sPropertyPath", "]", ",", "i", ";", "if", "(", "aListeners", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "aL...
Fires a change event to all listeners for the given path in mChangeListeners. @param {object} mChangeListeners A map of change listeners by path @param {string} sPropertyPath The path @param {any} vValue The value to report to the listeners
[ "Fires", "a", "change", "event", "to", "all", "listeners", "for", "the", "given", "path", "in", "mChangeListeners", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L395-L404
4,077
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mChangeListeners, sPath, oValue, bRemoved) { Object.keys(oValue).forEach(function (sProperty) { var sPropertyPath = _Helper.buildPath(sPath, sProperty), vValue = oValue[sProperty]; if (vValue && typeof vValue === "object") { _Helper.fireChanges(mChangeListeners, sPropertyPath, vValue, bR...
javascript
function (mChangeListeners, sPath, oValue, bRemoved) { Object.keys(oValue).forEach(function (sProperty) { var sPropertyPath = _Helper.buildPath(sPath, sProperty), vValue = oValue[sProperty]; if (vValue && typeof vValue === "object") { _Helper.fireChanges(mChangeListeners, sPropertyPath, vValue, bR...
[ "function", "(", "mChangeListeners", ",", "sPath", ",", "oValue", ",", "bRemoved", ")", "{", "Object", ".", "keys", "(", "oValue", ")", ".", "forEach", "(", "function", "(", "sProperty", ")", "{", "var", "sPropertyPath", "=", "_Helper", ".", "buildPath", ...
Iterates recursively over all properties of the given value and fires change events to all listeners. Also fires a change event for the object itself, for example in case of an advertised action. @param {object} mChangeListeners A map of change listeners by path @param {string} sPath The path of the current value @par...
[ "Iterates", "recursively", "over", "all", "properties", "of", "the", "given", "value", "and", "fires", "change", "events", "to", "all", "listeners", ".", "Also", "fires", "a", "change", "event", "for", "the", "object", "itself", "for", "example", "in", "case...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L417-L431
4,078
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (vValue, sType) { if (vValue === undefined) { throw new Error("Illegal value: undefined"); } if (vValue === null) { return "null"; } switch (sType) { case "Edm.Binary": return "binary'" + vValue + "'"; case "Edm.Boolean": case "Edm.Byte": case "Edm.Double": case "Edm...
javascript
function (vValue, sType) { if (vValue === undefined) { throw new Error("Illegal value: undefined"); } if (vValue === null) { return "null"; } switch (sType) { case "Edm.Binary": return "binary'" + vValue + "'"; case "Edm.Boolean": case "Edm.Byte": case "Edm.Double": case "Edm...
[ "function", "(", "vValue", ",", "sType", ")", "{", "if", "(", "vValue", "===", "undefined", ")", "{", "throw", "new", "Error", "(", "\"Illegal value: undefined\"", ")", ";", "}", "if", "(", "vValue", "===", "null", ")", "{", "return", "\"null\"", ";", ...
Formats a given internal value into a literal suitable for usage in URLs. @param {any} vValue The value according to "OData JSON Format Version 4.0" section "7.1 Primitive Value" @param {string} sType The OData Edm type, e.g. "Edm.String" @returns {string} The literal according to "OData Version 4.0 Part 2: URL Conven...
[ "Formats", "a", "given", "internal", "value", "into", "a", "literal", "suitable", "for", "usage", "in", "URLs", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L446-L484
4,079
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (oInstance, sMetaPath, mTypeForMetaPath) { var aFilters = [], sKey, mKey2Value = _Helper.getKeyProperties(oInstance, sMetaPath, mTypeForMetaPath); if (!mKey2Value) { return undefined; } for (sKey in mKey2Value) { aFilters.push(sKey + " eq " + mKey2Value[sKey]); } return aFil...
javascript
function (oInstance, sMetaPath, mTypeForMetaPath) { var aFilters = [], sKey, mKey2Value = _Helper.getKeyProperties(oInstance, sMetaPath, mTypeForMetaPath); if (!mKey2Value) { return undefined; } for (sKey in mKey2Value) { aFilters.push(sKey + " eq " + mKey2Value[sKey]); } return aFil...
[ "function", "(", "oInstance", ",", "sMetaPath", ",", "mTypeForMetaPath", ")", "{", "var", "aFilters", "=", "[", "]", ",", "sKey", ",", "mKey2Value", "=", "_Helper", ".", "getKeyProperties", "(", "oInstance", ",", "sMetaPath", ",", "mTypeForMetaPath", ")", ";...
Returns a filter identifying the given instance via its key properties. @param {object} oInstance Entity instance runtime data @param {string} sMetaPath The absolute meta path of the given instance @param {object} mTypeForMetaPath Maps meta paths to the corresponding entity or complex types @returns {string} A filter ...
[ "Returns", "a", "filter", "identifying", "the", "given", "instance", "via", "its", "key", "properties", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L501-L514
4,080
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (oInstance, sMetaPath, mTypeForMetaPath, bReturnAlias) { var bFailed, mKey2Value = {}; bFailed = mTypeForMetaPath[sMetaPath].$Key.some(function (vKey) { var sKey, sKeyPath, aPath, sPropertyName, oType, vValue; if (typeof vKey === "string") { sKey = sKeyPath = vKey; } else { sK...
javascript
function (oInstance, sMetaPath, mTypeForMetaPath, bReturnAlias) { var bFailed, mKey2Value = {}; bFailed = mTypeForMetaPath[sMetaPath].$Key.some(function (vKey) { var sKey, sKeyPath, aPath, sPropertyName, oType, vValue; if (typeof vKey === "string") { sKey = sKeyPath = vKey; } else { sK...
[ "function", "(", "oInstance", ",", "sMetaPath", ",", "mTypeForMetaPath", ",", "bReturnAlias", ")", "{", "var", "bFailed", ",", "mKey2Value", "=", "{", "}", ";", "bFailed", "=", "mTypeForMetaPath", "[", "sMetaPath", "]", ".", "$Key", ".", "some", "(", "func...
Returns the key properties mapped to values from the given entity using the given meta data. @param {object} oInstance Entity instance runtime data @param {string} sMetaPath The absolute meta path of the given instance @param {object} mTypeForMetaPath Maps meta paths to the corresponding entity or complex types @param...
[ "Returns", "the", "key", "properties", "mapped", "to", "values", "from", "the", "given", "entity", "using", "the", "given", "meta", "data", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L572-L604
4,081
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mQueryOptions, sPath) { sPath = sPath[0] === "(" ? _Helper.getMetaPath(sPath).slice(1) // avoid leading "/" : _Helper.getMetaPath(sPath); if (sPath) { sPath.split("/").some(function (sSegment) { mQueryOptions = mQueryOptions && mQueryOptions.$expand && mQueryOptions.$expand[sSegme...
javascript
function (mQueryOptions, sPath) { sPath = sPath[0] === "(" ? _Helper.getMetaPath(sPath).slice(1) // avoid leading "/" : _Helper.getMetaPath(sPath); if (sPath) { sPath.split("/").some(function (sSegment) { mQueryOptions = mQueryOptions && mQueryOptions.$expand && mQueryOptions.$expand[sSegme...
[ "function", "(", "mQueryOptions", ",", "sPath", ")", "{", "sPath", "=", "sPath", "[", "0", "]", "===", "\"(\"", "?", "_Helper", ".", "getMetaPath", "(", "sPath", ")", ".", "slice", "(", "1", ")", "// avoid leading \"/\"", ":", "_Helper", ".", "getMetaPat...
Returns the properties that have been selected for the given path. @param {object} [mQueryOptions] A map of query options as returned by {@link sap.ui.model.odata.v4.ODataModel#buildQueryOptions} @param {string} sPath The path of the cache value in the cache @returns {string[]} aSelect The properties that have been se...
[ "Returns", "the", "properties", "that", "have", "been", "selected", "for", "the", "given", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L650-L662
4,082
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (iNumber) { if (typeof iNumber !== "number" || !isFinite(iNumber)) { return false; } iNumber = Math.abs(iNumber); // The safe integers consist of all integers from -(2^53 - 1) inclusive to 2^53 - 1 // inclusive. // 2^53 - 1 = 9007199254740991 return iNumber <= 9007199254740991 && Math....
javascript
function (iNumber) { if (typeof iNumber !== "number" || !isFinite(iNumber)) { return false; } iNumber = Math.abs(iNumber); // The safe integers consist of all integers from -(2^53 - 1) inclusive to 2^53 - 1 // inclusive. // 2^53 - 1 = 9007199254740991 return iNumber <= 9007199254740991 && Math....
[ "function", "(", "iNumber", ")", "{", "if", "(", "typeof", "iNumber", "!==", "\"number\"", "||", "!", "isFinite", "(", "iNumber", ")", ")", "{", "return", "false", ";", "}", "iNumber", "=", "Math", ".", "abs", "(", "iNumber", ")", ";", "// The safe int...
Checks that the value is a safe integer. @param {number} iNumber The value @returns {boolean} True if the value is a safe integer
[ "Checks", "that", "the", "value", "is", "a", "safe", "integer", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L819-L828
4,083
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sUrl, sBase) { return new URI(sUrl).absoluteTo(sBase).toString() .replace(rEscapedTick, "'") .replace(rEscapedOpenBracket, "(") .replace(rEscapedCloseBracket, ")"); }
javascript
function (sUrl, sBase) { return new URI(sUrl).absoluteTo(sBase).toString() .replace(rEscapedTick, "'") .replace(rEscapedOpenBracket, "(") .replace(rEscapedCloseBracket, ")"); }
[ "function", "(", "sUrl", ",", "sBase", ")", "{", "return", "new", "URI", "(", "sUrl", ")", ".", "absoluteTo", "(", "sBase", ")", ".", "toString", "(", ")", ".", "replace", "(", "rEscapedTick", ",", "\"'\"", ")", ".", "replace", "(", "rEscapedOpenBracke...
Make the given URL absolute using the given base URL. The URLs must not contain a host or protocol part. Ensures that key predicates are not %-encoded. @param {string} sUrl The URL @param {string} sBase The base URL @returns {string} The absolute URL
[ "Make", "the", "given", "URL", "absolute", "using", "the", "given", "base", "URL", ".", "The", "URLs", "must", "not", "contain", "a", "host", "or", "protocol", "part", ".", "Ensures", "that", "key", "predicates", "are", "not", "%", "-", "encoded", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L841-L846
4,084
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sName) { var iIndex = sName.indexOf("/"); if (iIndex >= 0) { // consider only the first path segment sName = sName.slice(0, iIndex); } // now we have a qualified name, drop the last segment (the name) iIndex = sName.lastIndexOf("."); return iIndex < 0 ? "" : sName.slice(0, iIndex);...
javascript
function (sName) { var iIndex = sName.indexOf("/"); if (iIndex >= 0) { // consider only the first path segment sName = sName.slice(0, iIndex); } // now we have a qualified name, drop the last segment (the name) iIndex = sName.lastIndexOf("."); return iIndex < 0 ? "" : sName.slice(0, iIndex);...
[ "function", "(", "sName", ")", "{", "var", "iIndex", "=", "sName", ".", "indexOf", "(", "\"/\"", ")", ";", "if", "(", "iIndex", ">=", "0", ")", "{", "// consider only the first path segment", "sName", "=", "sName", ".", "slice", "(", "0", ",", "iIndex", ...
Determines the namespace of the given qualified name. @param {string} sName The qualified name @returns {string} The namespace
[ "Determines", "the", "namespace", "of", "the", "given", "qualified", "name", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L886-L897
4,085
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sLiteral, sType, sPath) { function checkNaN(nValue) { if (!isFinite(nValue)) { // this rejects NaN, Infinity, -Infinity throw new Error(sPath + ": Not a valid " + sType + " literal: " + sLiteral); } return nValue; } if (sLiteral === "null") { return null; } switch (sType...
javascript
function (sLiteral, sType, sPath) { function checkNaN(nValue) { if (!isFinite(nValue)) { // this rejects NaN, Infinity, -Infinity throw new Error(sPath + ": Not a valid " + sType + " literal: " + sLiteral); } return nValue; } if (sLiteral === "null") { return null; } switch (sType...
[ "function", "(", "sLiteral", ",", "sType", ",", "sPath", ")", "{", "function", "checkNaN", "(", "nValue", ")", "{", "if", "(", "!", "isFinite", "(", "nValue", ")", ")", "{", "// this rejects NaN, Infinity, -Infinity", "throw", "new", "Error", "(", "sPath", ...
Parses a literal to the model value. The types "Edm.Binary" and "Edm.String" are unsupported. @param {string} sLiteral The literal value @param {string} sType The type @param {string} sPath The path for this literal (for error messages) @returns {*} The model value @throws {Error} If the type is invalid or unsupported...
[ "Parses", "a", "literal", "to", "the", "model", "value", ".", "The", "types", "Edm", ".", "Binary", "and", "Edm", ".", "String", "are", "unsupported", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L910-L946
4,086
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sPath, oItem) { var aItems = mMap[sPath], iIndex; if (aItems) { iIndex = aItems.indexOf(oItem); if (iIndex >= 0) { if (aItems.length === 1) { delete mMap[sPath]; } else { aItems.splice(iIndex, 1); } } } }
javascript
function (mMap, sPath, oItem) { var aItems = mMap[sPath], iIndex; if (aItems) { iIndex = aItems.indexOf(oItem); if (iIndex >= 0) { if (aItems.length === 1) { delete mMap[sPath]; } else { aItems.splice(iIndex, 1); } } } }
[ "function", "(", "mMap", ",", "sPath", ",", "oItem", ")", "{", "var", "aItems", "=", "mMap", "[", "sPath", "]", ",", "iIndex", ";", "if", "(", "aItems", ")", "{", "iIndex", "=", "aItems", ".", "indexOf", "(", "oItem", ")", ";", "if", "(", "iIndex...
Removes an item from the given map by path. @param {object} mMap A map from path to a list of items @param {string} sPath The path @param {object} oItem The item
[ "Removes", "an", "item", "from", "the", "given", "map", "by", "path", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L977-L991
4,087
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mHeaders) { var vIfMatchValue = mHeaders && mHeaders["If-Match"]; if (vIfMatchValue && typeof vIfMatchValue === "object") { vIfMatchValue = vIfMatchValue["@odata.etag"]; mHeaders = Object.assign({}, mHeaders); if (vIfMatchValue === undefined) { delete mHeaders["If-Match"]; } else {...
javascript
function (mHeaders) { var vIfMatchValue = mHeaders && mHeaders["If-Match"]; if (vIfMatchValue && typeof vIfMatchValue === "object") { vIfMatchValue = vIfMatchValue["@odata.etag"]; mHeaders = Object.assign({}, mHeaders); if (vIfMatchValue === undefined) { delete mHeaders["If-Match"]; } else {...
[ "function", "(", "mHeaders", ")", "{", "var", "vIfMatchValue", "=", "mHeaders", "&&", "mHeaders", "[", "\"If-Match\"", "]", ";", "if", "(", "vIfMatchValue", "&&", "typeof", "vIfMatchValue", "===", "\"object\"", ")", "{", "vIfMatchValue", "=", "vIfMatchValue", ...
Resolves the "If-Match" header in the given map of request-specific headers. For lazy determination of the ETag, the "If-Match" header may contain an object containing the current ETag. If needed create a copy of the given map and replace the value of the "If-Match" header by the current ETag. @param {object} [mHeader...
[ "Resolves", "the", "If", "-", "Match", "header", "in", "the", "given", "map", "of", "request", "-", "specific", "headers", ".", "For", "lazy", "determination", "of", "the", "ETag", "the", "If", "-", "Match", "header", "may", "contain", "an", "object", "c...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L1004-L1017
4,088
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (oObject, sAnnotation, vValue) { var oPrivateNamespace = oObject["@$ui5._"]; if (!oPrivateNamespace) { oPrivateNamespace = oObject["@$ui5._"] = {}; } oPrivateNamespace[sAnnotation] = vValue; }
javascript
function (oObject, sAnnotation, vValue) { var oPrivateNamespace = oObject["@$ui5._"]; if (!oPrivateNamespace) { oPrivateNamespace = oObject["@$ui5._"] = {}; } oPrivateNamespace[sAnnotation] = vValue; }
[ "function", "(", "oObject", ",", "sAnnotation", ",", "vValue", ")", "{", "var", "oPrivateNamespace", "=", "oObject", "[", "\"@$ui5._\"", "]", ";", "if", "(", "!", "oPrivateNamespace", ")", "{", "oPrivateNamespace", "=", "oObject", "[", "\"@$ui5._\"", "]", "=...
Sets the new value of the private client-side instance annotation with the given unqualified name at the given object. @param {object} oObject Any object @param {string} sAnnotation The unqualified name of a private client-side instance annotation (hidden inside namespace "@$ui5._") @param {any} vValue The annotation'...
[ "Sets", "the", "new", "value", "of", "the", "private", "client", "-", "side", "instance", "annotation", "with", "the", "given", "unqualified", "name", "at", "the", "given", "object", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L1050-L1057
4,089
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sTransientPredicate, sPredicate) { var sPath; for (sPath in mMap) { if (sPath.includes(sTransientPredicate)) { // A path may contain multiple different transient predicates ($uid=...) but a // certain transient predicate can only be once in the path and cannot collide // with a...
javascript
function (mMap, sTransientPredicate, sPredicate) { var sPath; for (sPath in mMap) { if (sPath.includes(sTransientPredicate)) { // A path may contain multiple different transient predicates ($uid=...) but a // certain transient predicate can only be once in the path and cannot collide // with a...
[ "function", "(", "mMap", ",", "sTransientPredicate", ",", "sPredicate", ")", "{", "var", "sPath", ";", "for", "(", "sPath", "in", "mMap", ")", "{", "if", "(", "sPath", ".", "includes", "(", "sTransientPredicate", ")", ")", "{", "// A path may contain multipl...
Updates certain transient paths from the given map, replacing the given transient predicate with the given key predicate. @param {object} mMap A map from path to anything @param {string} sTransientPredicate A (temporary) key predicate for the transient entity: "($uid=...)" @param {string} sPredicate The key predicate
[ "Updates", "certain", "transient", "paths", "from", "the", "given", "map", "replacing", "the", "given", "transient", "predicate", "with", "the", "given", "key", "predicate", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js#L1291-L1305
4,090
SAP/openui5
src/sap.uxap/src/sap/uxap/component/ObjectPageComponentContainer.js
function () { var oObjectPageLayoutInstance = null; if (this._oComponent && this._oComponent._oView) { oObjectPageLayoutInstance = this._oComponent._oView.byId("ObjectPageLayout"); } else { Log.error("ObjectPageComponentContainer :: cannot find children ObjectPageLayout, has it been rendered alrea...
javascript
function () { var oObjectPageLayoutInstance = null; if (this._oComponent && this._oComponent._oView) { oObjectPageLayoutInstance = this._oComponent._oView.byId("ObjectPageLayout"); } else { Log.error("ObjectPageComponentContainer :: cannot find children ObjectPageLayout, has it been rendered alrea...
[ "function", "(", ")", "{", "var", "oObjectPageLayoutInstance", "=", "null", ";", "if", "(", "this", ".", "_oComponent", "&&", "this", ".", "_oComponent", ".", "_oView", ")", "{", "oObjectPageLayoutInstance", "=", "this", ".", "_oComponent", ".", "_oView", "....
Returns the instantiated objectPageLayout for further api manipulations or null if not not rendered already. @returns {sap.uxap.ObjectPageLayout} Layout instanse
[ "Returns", "the", "instantiated", "objectPageLayout", "for", "further", "api", "manipulations", "or", "null", "if", "not", "not", "rendered", "already", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.uxap/src/sap/uxap/component/ObjectPageComponentContainer.js#L59-L68
4,091
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/ODataBinding.js
ODataBinding
function ODataBinding() { // maps a canonical path of a quasi-absolute or relative binding to a cache object that may // be reused this.mCacheByResourcePath = undefined; this.oCachePromise = SyncPromise.resolve(); this.mCacheQueryOptions = undefined; // used to create cache only for the latest call to #fetc...
javascript
function ODataBinding() { // maps a canonical path of a quasi-absolute or relative binding to a cache object that may // be reused this.mCacheByResourcePath = undefined; this.oCachePromise = SyncPromise.resolve(); this.mCacheQueryOptions = undefined; // used to create cache only for the latest call to #fetc...
[ "function", "ODataBinding", "(", ")", "{", "// maps a canonical path of a quasi-absolute or relative binding to a cache object that may", "// be reused", "this", ".", "mCacheByResourcePath", "=", "undefined", ";", "this", ".", "oCachePromise", "=", "SyncPromise", ".", "resolve"...
A mixin for all OData V4 bindings. @alias sap.ui.model.odata.v4.ODataBinding @mixin
[ "A", "mixin", "for", "all", "OData", "V4", "bindings", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/ODataBinding.js#L27-L37
4,092
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableDragAndDropExtension.js
function(oDragSession, oSessionData, sKey) { oDragSession.setComplexData(SESSION_DATA_KEY_NAMESPACE + (sKey == null ? "" : "-" + sKey), oSessionData); }
javascript
function(oDragSession, oSessionData, sKey) { oDragSession.setComplexData(SESSION_DATA_KEY_NAMESPACE + (sKey == null ? "" : "-" + sKey), oSessionData); }
[ "function", "(", "oDragSession", ",", "oSessionData", ",", "sKey", ")", "{", "oDragSession", ".", "setComplexData", "(", "SESSION_DATA_KEY_NAMESPACE", "+", "(", "sKey", "==", "null", "?", "\"\"", ":", "\"-\"", "+", "sKey", ")", ",", "oSessionData", ")", ";",...
Sets the session data to the drag session. To set the session data that is shared by all table instances, do not specify a key. @param {Object} oDragSession The drag session. @param {any} oSessionData The session data. @param {string} [sKey=undefined] The key of the session data.
[ "Sets", "the", "session", "data", "to", "the", "drag", "session", ".", "To", "set", "the", "session", "data", "that", "is", "shared", "by", "all", "table", "instances", "do", "not", "specify", "a", "key", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableDragAndDropExtension.js#L33-L35
4,093
SAP/openui5
src/sap.ui.layout/src/sap/ui/layout/cssgrid/VirtualGrid.js
expandVertically
function expandVertically() { var growWith = 0; for (var i = 0; i < this.virtualGridMatrix.length; i++) { if (this.virtualGridMatrix[i][0] !== 0) { growWith++; } } if (growWith > 0) { this.addEmptyRows(growWith); } }
javascript
function expandVertically() { var growWith = 0; for (var i = 0; i < this.virtualGridMatrix.length; i++) { if (this.virtualGridMatrix[i][0] !== 0) { growWith++; } } if (growWith > 0) { this.addEmptyRows(growWith); } }
[ "function", "expandVertically", "(", ")", "{", "var", "growWith", "=", "0", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "this", ".", "virtualGridMatrix", ".", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "virtualGridMatrix", ...
Add empty rows at bottom of the virtual grid.
[ "Add", "empty", "rows", "at", "bottom", "of", "the", "virtual", "grid", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.layout/src/sap/ui/layout/cssgrid/VirtualGrid.js#L14-L24
4,094
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableRenderer.js
collectHeaderSpans
function collectHeaderSpans(oColumn, index, aCols) { var colSpan = TableUtils.Column.getHeaderSpan(oColumn, iRow), iColIndex; if (nSpan < 1) { if (colSpan > 1) { // In case when a user makes some of the underlying columns invisible, adjust colspan iColIndex = oColumn.getIndex(); colSpan = ...
javascript
function collectHeaderSpans(oColumn, index, aCols) { var colSpan = TableUtils.Column.getHeaderSpan(oColumn, iRow), iColIndex; if (nSpan < 1) { if (colSpan > 1) { // In case when a user makes some of the underlying columns invisible, adjust colspan iColIndex = oColumn.getIndex(); colSpan = ...
[ "function", "collectHeaderSpans", "(", "oColumn", ",", "index", ",", "aCols", ")", "{", "var", "colSpan", "=", "TableUtils", ".", "Column", ".", "getHeaderSpan", "(", "oColumn", ",", "iRow", ")", ",", "iColIndex", ";", "if", "(", "nSpan", "<", "1", ")", ...
collect header spans and find the last visible column header
[ "collect", "header", "spans", "and", "find", "the", "last", "visible", "column", "header" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableRenderer.js#L992-L1012
4,095
SAP/openui5
src/sap.m/src/sap/m/MenuButton.js
isForbiddenType
function isForbiddenType(sType) { var aTypes = [ButtonType.Up, ButtonType.Back, ButtonType.Unstyled]; return aTypes.indexOf(sType) !== -1; }
javascript
function isForbiddenType(sType) { var aTypes = [ButtonType.Up, ButtonType.Back, ButtonType.Unstyled]; return aTypes.indexOf(sType) !== -1; }
[ "function", "isForbiddenType", "(", "sType", ")", "{", "var", "aTypes", "=", "[", "ButtonType", ".", "Up", ",", "ButtonType", ".", "Back", ",", "ButtonType", ".", "Unstyled", "]", ";", "return", "aTypes", ".", "indexOf", "(", "sType", ")", "!==", "-", ...
Several button type property values are not allowed
[ "Several", "button", "type", "property", "values", "are", "not", "allowed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/MenuButton.js#L528-L531
4,096
SAP/openui5
src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js
_applyTriggerHook
function _applyTriggerHook(sEventType) { if (!jQuery.event.special[sEventType]) { jQuery.event.special[sEventType] = {}; } var oSpecialEvent = jQuery.event.special[sEventType], originalTriggerHook = oSpecialEvent.trigger; oSpecialEvent.trigger = fnTriggerHook; return originalTriggerHook; }
javascript
function _applyTriggerHook(sEventType) { if (!jQuery.event.special[sEventType]) { jQuery.event.special[sEventType] = {}; } var oSpecialEvent = jQuery.event.special[sEventType], originalTriggerHook = oSpecialEvent.trigger; oSpecialEvent.trigger = fnTriggerHook; return originalTriggerHook; }
[ "function", "_applyTriggerHook", "(", "sEventType", ")", "{", "if", "(", "!", "jQuery", ".", "event", ".", "special", "[", "sEventType", "]", ")", "{", "jQuery", ".", "event", ".", "special", "[", "sEventType", "]", "=", "{", "}", ";", "}", "var", "o...
Register special jQuery.trigger event hook
[ "Register", "special", "jQuery", ".", "trigger", "event", "hook" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js#L52-L62
4,097
SAP/openui5
src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js
suppressTriggeredEvent
function suppressTriggeredEvent(sEventType, oDomRef, aExcludedDomRefs) { var mEventInfo = mTriggerEventInfo[sEventType]; var sId = uid(); if (!mEventInfo) { mEventInfo = mTriggerEventInfo[sEventType] = { domRefs: {}, originalTriggerHook: _applyTriggerHook(sEventType) }; } mEventInfo.domRefs[sI...
javascript
function suppressTriggeredEvent(sEventType, oDomRef, aExcludedDomRefs) { var mEventInfo = mTriggerEventInfo[sEventType]; var sId = uid(); if (!mEventInfo) { mEventInfo = mTriggerEventInfo[sEventType] = { domRefs: {}, originalTriggerHook: _applyTriggerHook(sEventType) }; } mEventInfo.domRefs[sI...
[ "function", "suppressTriggeredEvent", "(", "sEventType", ",", "oDomRef", ",", "aExcludedDomRefs", ")", "{", "var", "mEventInfo", "=", "mTriggerEventInfo", "[", "sEventType", "]", ";", "var", "sId", "=", "uid", "(", ")", ";", "if", "(", "!", "mEventInfo", ")"...
Suppress jQuery.trigger events for a given DOM element mTriggerEventInfo example: mTriggerEventInfo: { 'EventType': { domRefs: { 'DomRefId': { domRef: 'DomRef', excludedDomRefs: aDomRefs } }, hookApplied: 'boolean' originalTriggerHook: 'fnHook' } } @param {string} sEventType Event type to suppress jQuery.trigger for...
[ "Suppress", "jQuery", ".", "trigger", "events", "for", "a", "given", "DOM", "element" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js#L88-L108
4,098
SAP/openui5
src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js
releaseTriggeredEvent
function releaseTriggeredEvent(oHandler) { if (!oHandler) { Log.error("Release trigger events must not be called without passing a valid handler!"); return; } var mEventInfo = mTriggerEventInfo[oHandler.type]; if (!mEventInfo) { return; } else if (!mEventInfo.domRefs[oHandler.id] || !mEventInfo.dom...
javascript
function releaseTriggeredEvent(oHandler) { if (!oHandler) { Log.error("Release trigger events must not be called without passing a valid handler!"); return; } var mEventInfo = mTriggerEventInfo[oHandler.type]; if (!mEventInfo) { return; } else if (!mEventInfo.domRefs[oHandler.id] || !mEventInfo.dom...
[ "function", "releaseTriggeredEvent", "(", "oHandler", ")", "{", "if", "(", "!", "oHandler", ")", "{", "Log", ".", "error", "(", "\"Release trigger events must not be called without passing a valid handler!\"", ")", ";", "return", ";", "}", "var", "mEventInfo", "=", ...
Stop suppressing jQuery.trigger events for a given DOM element @param {Object} oHandler The suppression handler @private
[ "Stop", "suppressing", "jQuery", ".", "trigger", "events", "for", "a", "given", "DOM", "element" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/jquery/EventTriggerHook.js#L116-L132
4,099
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js
fetchIndex
function fetchIndex() { return new Promise(function(resolve, reject) { var oIndex = oIndexCache["index"], oSerializedIndex; if (oIndex) { resolve(oIndex); return; } var req = new XMLHttpRequest(), onload = function (oEvent) { oSerializedIndex = oEvent.target.response || oEvent.t...
javascript
function fetchIndex() { return new Promise(function(resolve, reject) { var oIndex = oIndexCache["index"], oSerializedIndex; if (oIndex) { resolve(oIndex); return; } var req = new XMLHttpRequest(), onload = function (oEvent) { oSerializedIndex = oEvent.target.response || oEvent.t...
[ "function", "fetchIndex", "(", ")", "{", "return", "new", "Promise", "(", "function", "(", "resolve", ",", "reject", ")", "{", "var", "oIndex", "=", "oIndexCache", "[", "\"index\"", "]", ",", "oSerializedIndex", ";", "if", "(", "oIndex", ")", "{", "resol...
Obtains the index via network request or from cache @returns {Promise<any>}
[ "Obtains", "the", "index", "via", "network", "request", "or", "from", "cache" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js#L106-L149