Name | Type | Default | Description |
---|---|---|---|
closeButton | boolean | false | Optionally enable a close button |
debug | boolean | false | Show more debug informations |
progressBar | boolean | false | Visually indicate how long before a toast expires. |
preventDuplicates | boolean | false | Rather than having identical toasts stack, set the preventDuplicates property to true. Duplicates are matched to the previous toast based on their message content. |
tapToDismiss | boolean | true | Tap toast to dismiss it |
newestOnTop | boolean | true | Show newest toast at bottom |
showEasing | boolean | "swing" | Animation easing |
hideEasing | boolean | "linear" | Animation easing |
This file contains 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
// Provides control it.designfuture.qrcode.QRCode | |
sap.ui.define([ | |
"sap/ui/core/Control", | |
"sap/ui/core/HTML", | |
"./3rdparty/qrcode" | |
], function (Control, HTML, qrcode) { | |
"use strict"; | |
/** | |
* Constructor for a new QRCode. |
This file contains 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
this.__qrcode = new QRCode( this.getDomRef(), { | |
text: this.getText(), | |
width: this.getWidth(), | |
height: this.getHeight(), | |
colorDark: this.getColorDark(), | |
colorLight: this.getColorLight(), | |
correctLevel: iCorrectLevel | |
}); |
This file contains 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
init: function() { | |
this.setAggregation("__qrcodeHTML", new HTML({ | |
content: "<div class='openui5-qrcode' id='" + this.getId() + "-qrcode'></div>" | |
})); | |
}, | |
onAfterRendering: function() { | |
var iCorrectLevel = this.getCorrectLevel() < 0 || this.getCorrectLevel() > 3 ? QRCode.CorrectLevel.H : this.getCorrectLevel(); | |
if( this.__qrcode ) { | |
this.__qrcode._htOption.width = this.getWidth(); |
This file contains 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
{ | |
"name": "openui5-flatpickr", | |
"version": "0.0.1", | |
"description": "An openui5 custom control to use flatpickr (https://github.com/chmln/flatpickr)", | |
"main": "index.js", | |
"repository": { | |
"type": "git", | |
"url": "https://github.com/StErMi/openui5-flatpickr" | |
}, | |
"keywords": [ |
This file contains 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
/*! | |
* ${copyright} | |
*/ | |
@import (less) "../../../../../flatpickr/dist/flatpickr.min.css"; |
This file contains 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
dir: { | |
src: 'src', | |
dest: 'dist', | |
demo: 'test/demo', | |
src_flatpickr: 'node_modules/flatpickr/dist', | |
bower_components: 'bower_components', | |
node_modules: 'node_modules', |
This file contains 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
jQuery.sap.registerPreloadedModules({ | |
"version": "2.0", | |
"name": "it.designfuture.flatpickr.library-preload", | |
"modules": { | |
"it/designfuture/flatpickr/FlatDatePicker.js": "/*!\r\n * ${copyright}\r\n */\r\n\r\n// Provides control it.designfuture.flatpickr.FlatDatePicker\r\nsap.ui.define([\r\n\t\t'jquery.sap.global',\r\n\t\t'sap/m/InputBase',\r\n\t\t'./3rdparty/flatpickr',\r\n\t\t'./library'\r\n\t], function(jQuery, InputBase, flatpickr, library) {\r\n\t\"use strict\";\r\n\r\n\t/**\r\n\t * Constructor for a new FlatDatePicker.\r\n\t *\r\n\t * @param {string} [sId] id for the new control, generated automatically if no id is given \r\n\t * @param {object} [mSettings] initial settings for the new control\r\n\t *\r\n\t * @class\r\n\t * FlatDatePicker TODO ADD HERE A DESCRIPTION\r\n\t * @extends sap.m.InputBase\r\n\t * @version ${version}\r\n\t *\r\n\t * @constructor\r\n\t * @public\r\n\t * @since 1.40\r\n\t * @name it.designfuture.flatpickr.FlatDatePicker\r\n\t */\r\n\r\n\tvar FlatDatePicker = InputBase.extend(\ |
This file contains 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
"sap.ui5": { | |
... | |
"dependencies": { | |
"minUI5Version": "1.30.0", | |
"libs": { | |
... | |
"it.designfuture.toastr": {} | |
} | |
}, | |
"resourceRoots": { |
This file contains 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
Toastr.info('This is a call title', 'And this is a call message', { | |
"closeButton": false, | |
"debug": false, | |
"progressBar": false, | |
"preventDuplicates": false, | |
"tapToDismiss": true, | |
"newestOnTop": true, | |
"showEasing": "swing", | |
"hideEasing": "linear", | |
"showMethod": "fadeIn", |