Skip to content

Instantly share code, notes, and snippets.

@StErMi
Last active June 22, 2017 11:17
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/94a2aa79f2f09bbdc7fbdabb91392c70 to your computer and use it in GitHub Desktop.
Save StErMi/94a2aa79f2f09bbdc7fbdabb91392c70 to your computer and use it in GitHub Desktop.
QRCode Custom Control library.js
/**
* Initialization Code and shared classes of library it.designfuture.qrcode.
*/
sap.ui.define([
'jquery.sap.global',
'sap/ui/core/library' // library dependency
], function(jQuery, library) {
"use strict";
/**
* Suite controls library.
*
* @namespace
* @name it.designfuture.qrcode
* @author Emanuele Ricci <stermi@gmail.com>
* @version ${version}
* @public
*/
// delegate further initialization of this library to the Core
sap.ui.getCore().initLibrary({
name : "it.designfuture.qrcode",
noLibraryCSS: false,
version: "${version}",
dependencies : ["sap.ui.core", "sap.m"],
types: [],
interfaces: [],
controls: [
"it.designfuture.qrcode.QRCode"
],
elements: []
});
return it.designfuture.qrcode;
}, /* bExport= */ false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment