1.0.1 • Published 2 years ago

@drbackmischung/notification-ui5 v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

UI5 Charts

npm install @drbackmischung/notification-ui5

Import

import '@drbackmischung/notification-ui5/main.js';

Example

Bind a method to e.g. a button. This method opens the notification.

    <script>
      window.addEventListener("load", function() {
        if (document.getElementById("button")) {
          document.getElementById("button").addEventListener("click", test);
        }
      });
      function test() {
        var element = document.getElementById("notification");
        element.open();
      }
    </script>
    <button type="button" id="button">Klick mich!</button>
    <ui5-notification id="notification" text="Ich bin ein Text! :-)"></ui5-notification>