This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
invalidate: function () { | |
var oBinding = this.getBinding("plannings"); | |
// do not rerender during odate request is running since it causes heavy blinking | |
if (!oBinding || !oBinding.bPendingRequest) { | |
Control.prototype.invalidate.apply(this, arguments); | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show available versions of an npm package | |
npm show [PACKAGE_NAME] versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<core:View xmlns:core="sap.ui.core" | |
xmlns="sap.m" | |
controllerName="ui5experts.Root"> | |
<core:Fragment fragmentName="ui5experts.fragment.Fragment" type="XML" /> | |
</core:View> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Karma configuration | |
// Generated on Wed Mar 08 2017 11:21:46 GMT+0100 (CET) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ISO Date as string | |
function (a, b) { | |
var valA = a.split("T")[0]; | |
var valB = b.split("T")[0]; | |
if (valA < valB) return -1; | |
if (valA > valB) return 1; | |
return 0; | |
}; | |
// string as number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var oBinding = this.byId("Control").getBinding("items"); | |
oBinding.suspend(); | |
// ... | |
oBinding.bPendingRefresh = false; | |
oBinding.resume(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.base.ManagedObject.html#findAggregatedObjects | |
var aResults = oObject.findAggregatedObjects(true, function(o) { return o.getId() === "TEST"; }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @namespace | |
* @name ui5experts.toolbox | |
* @public | |
*/ | |
sap.ui.define([ | |
"sap/ui/base/ManagedObject" | |
], function ( | |
ManagedObject) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////// | |
// Controller Lifecycle | |
onInit: function () { | |
this.getRouter().attachRoutePatternMatched(this.onAnyRoutePatternMatched, this); | |
}, | |
onExit: function () { | |
this.getRouter().detachRoutePatternMatched(this.onAnyRoutePatternMatched, this); | |
this.getRouter().getRoute(this.routeName).detachPatternMatched(this.onRoutePatternMatched, this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FnConstructor = jQuery.sap.getObject(sType); |