nw-menu-notification
v1.3.5
Published
This a simple component to show user notifications from notify api
Downloads
4
Readme
nw-menu-notification
Notification to platform component
How to use
Add the nw-menu-notification
in your package.json using the newer version or from master (unstable).
"nw-menu-notification": "git+https://gitlab.neoway.com.br/vulgar-modules/nw-menu-notification.git#1.2.0",
Just import the file javascript nw-menu-notification
and file css nw-nmenu
from dist folder and add the code below in your project
@import '../node_modules/nw-menu-notification/dist/nw-nmenu.css';
/** or with you want use scss */
@import '../node_modules/nw-menu-notification/src/styles/scss/nw-nmenu.scss';
import NMenu from 'nw-menu-notification'
const menuEl = NMenu.getInstance().config({
appName: 'report',
origins: ['matching', 'files', 'reached_limit', 'report']
});
menuEl.renderTo("ct-menu");
Where the first param is the project that you want to recive the notifications and the second param is the origins of notifications do want recice in the component by default the component use these origins ['matching', 'reached_limit']