j-NativeNotifications
- singleton
Konfigurace
timeout {Number}musí obsahovat časový limit (milisekundy) pro uplynutí oznámení (předvolené:8000)icon {String}(volitelné) ikona (předvolené/icon.png)
Metody
component.append(title, message, [callback], [icon])pro vytvoření nové oznámení
Použití
SETTER('nativenotifications/show', 'TITLE', 'MESSAGE', function() {
// optional, click
}, '/img/warning-optional.png');Použijte ji s <ui-component name="nativenotifications">Pokud je součástka ještě nezačleněna, jComponent Stáhnout ji na první použití z adresy DEF.fallback a) The Componentator CDN dle předvolby. autor: Peter Širka. zdroj: Componentator Výrobce je autorizován, MIT licence.
<ui-component name="nativenotifications" path="allowNotifications"></ui-component>
<script>
var allowNotifications = true;
setTimeout(function() {
SETTER('nativenotifications/append', 'Hello!', 'jComponent is a great solution for everyone.', null, 'https://messenger.totaljs.com/icon.png');
}, 3000);
</script>