8.0.1 • Published 2 months ago

@project-sunbird/sb-notification v8.0.1

Weekly downloads
-
License
-
Repository
github
Last release
2 months ago

Sunbird

@project-sunbird/sb-notification

NPM version

@project-sunbird/sb-notification is a lightweight and very complete Angular library for notifications module in Sunbird.


Getting started

How to use @project-sunbird/sb-notification in your projects

Using library locally

  1. Build library
npm run build
  1. Link library to your project
npm link @project-sunbird/sb-notification

Table of contents


Installation

$ npm i @project-sunbird/sb-notification

Import in Angular

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { SbNotificationModule } from '@project-sunbird/sb-notification';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    SbNotificationModule
  ],
  providers: [ ],
  bootstrap: [ AppComponent ]
})
export class AppModule { }
<sb-notification tabindex="0" [notificationList]="notificationList" [inAppNotificationConfig]="inAppNotificationConfig" (showMore)="handleShowMore($event)" (showLess)="handleShowLess($event)"></sb-notification>

Options

  • notificationList: Array of notification objects.
  • inAppNotificationConfig: Object of in-app notification configuration.

      title: string;
      subTitle: string;
      clearText: string;
      moreText: string;
      lessText: string;
      minNotificationViewCount: number;
  • (showMore): Event emitted when user clicks on "Show more"

  • (showLess): Event emitted when user clicks on "Show less"

Versions

release branchnpm package versionAngular Version
release-5.1.0_v95.0.2NG V9
release-5.1.0_v105.0.3NG V10
release-5.1.0_v105.0.4NG V10
release-5.1.0_v115.0.5NG V11
release-5.1.0_v125.0.6NG V12
release-5.1.0_v105.0.8NG V10
release-5.1.0_v125.0.9NG V12
release-6.0.0_v136.0.0NG V13
release-6.0.0_v146.1.0NG V14
8.0.0_v158.0.0NG V15
8.0.0_v168.0.1NG V16
8.0.1

2 months ago

8.0.0

2 months ago

6.0.0

1 year ago

5.0.11

1 year ago

5.0.12

1 year ago

5.0.9

1 year ago

5.0.8

1 year ago

5.0.6

1 year ago

5.0.5

1 year ago

5.0.4

1 year ago

5.0.3

1 year ago

5.0.2

1 year ago

5.0.7

1 year ago

5.0.1

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago