2.4.0 • Published 8 years ago
sanji-navbar-ui v2.4.0
sanji-navbar-ui
Notifications
The notification feature allows the system to show some inportant information to users.
How to add / remove a notification to navbar
1. Create a notification with a following format
const notification = {
// Currently, we only support 'info' tag.
category: 'info',
item: {
// The name MUST be a key for i18n json.
name: 'NOTIFICATIONS_CHANGE_PASSWORD',
// The url should be a name of angularJS ui-router.
url: 'accounts/'
}
};
2. Use redux to update notification statement
// Notice!!: You should inject $ngRedux and navbarAction before you copy the code below.
$ngRedux.dispatch(this.navbarAction.updateNotifications(nitification));
3. Use redux to remove a specific notification
// Notice!!: You should inject $ngRedux and navbarAction before you copy the code below.
$ngRedux.dispatch(this.navbarAction.removeMotifications(nitification));
4. Show notification icon
// Notice!!: You should inject $ngRedux and navbarAction before you copy the code below.
$ngRedux.dispatch(this.navbarAction.updateNavbarStatus({ config: { isShowNotification: true } }));
2.4.0
8 years ago
2.3.1
8 years ago
2.3.0
8 years ago
2.2.4
8 years ago
2.2.3
9 years ago
2.2.2
9 years ago
2.2.1
9 years ago
2.2.0
9 years ago
2.1.2
9 years ago
2.1.1
9 years ago
2.1.0
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.8.0
9 years ago
1.7.1
9 years ago
1.7.0
9 years ago
1.6.3
9 years ago
1.6.2
9 years ago
1.6.1
9 years ago
1.6.0
9 years ago
1.5.0
9 years ago
1.4.3
9 years ago
1.4.2
9 years ago
1.4.1
9 years ago
1.4.0
10 years ago
1.3.1
10 years ago
1.3.0
10 years ago
1.2.2
10 years ago
1.2.1
10 years ago
1.2.0
10 years ago
1.1.0
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago