Skip to content

Instantly share code, notes, and snippets.

@StErMi
Last active May 22, 2017 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StErMi/f0da746e7b353587dec325286a4beb15 to your computer and use it in GitHub Desktop.
Save StErMi/f0da746e7b353587dec325286a4beb15 to your computer and use it in GitHub Desktop.
it.designfuture.qrcode.QRCode example
sap.ui.define([
"sap/ui/core/Control"
], function (Control) {
"use strict";
return Control.extend("it.designfuture.qrcode.QRCode", {
metadata : {
properties : {},
aggregations : {},
events : {}
},
// Function called when your control should be rendered. Here you will write your HTML
renderer : function (oRM, oControl) {}
// It is called by the framework while the constructor of an element is executed.
// Custom Controls should override this hook to implement any necessary initialization.
init : function () {},
// This function is called before the rendering of the control is started.
// Custom Controls should override this hook to implement any necessary actions before the rendering.
onBeforeRendering : function() {},
// This function is called when the rendering of the control is completed.
// Custom Controls should override this hook to implement any necessary actions after the rendering.
onAfterRendering : function() {},
// It is called by the framework while the constructor of an element is executed.
// Custom Controls should override this hook to implement any necessary cleanup.
exit : function () {}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment