Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javadbat/jb-notification
notification ui web-component
https://github.com/javadbat/jb-notification
Last synced: 7 days ago
JSON representation
notification ui web-component
- Host: GitHub
- URL: https://github.com/javadbat/jb-notification
- Owner: javadbat
- License: mit
- Created: 2023-10-03T03:47:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-15T08:42:28.000Z (6 months ago)
- Last Synced: 2024-12-10T11:42:34.281Z (12 days ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jb-notification
notification ui web component to show notification directly from pure js code without any framework## set title & description
```js
document.querySelector('jb-notification').title = "Information Message";
document.querySelector('jb-notification').description = "optional detail about what happen you may not set it";
```
```html
```
## set notification type
```js
document.querySelector('jb-notification').type = "SUCCESS";
```
```html
```
## MessageTypes:we have several types of message the types are : `SUCCESS`,`ERROR`,`WARNING`,`INFO`;