Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 779 Bytes

README.md

File metadata and controls

21 lines (19 loc) · 779 Bytes

jb-notification

notification ui web component to show notification directly from pure js code without any framework

set title & description

document.querySelector('jb-notification').title = "Information Message";
document.querySelector('jb-notification').description = "optional detail about what happen you may not set it";
    <jb-notification title="message title" description="description below title text to tell more about what happen"></jb-notification>

set notification type

document.querySelector('jb-notification').type = "SUCCESS";
    <jb-notification title="message title" type="SUCCESS"></jb-notification>

MessageTypes:

we have several types of message the types are : SUCCESS,ERROR,WARNING,INFO;