1.0.1 • Published 3 years ago

ngx-ssc-popover v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

NgxSscPopover

Angular Scania Shared Components Popover

This library was generated with Angular CLI version 12.2.0 & build on Angular Material.

Installation

Run npm install ngx-ssc-popover --save in your Angular project.

Note: Don't forget to install ng add @angular/materialnpm if you don't have it in your project

Import NgxSscPopoverModule in your app.module.ts file.

Import @import "../node_modules/ngx-ssc-popover/ngx-ssc-popover.scss" in your global style file styles.scss/less/css file.

Usage

<mat-icon
        headerTitle="Popover Title"
        placement="above"
        
        [headerIcon]="ngxSscPopoverHeaderIcon"
        [sscPopoverErrorMessage]="ngxSscPopoverErrorMessage"
        [sscPopover]="ngxSscPopoverContent"
       
        (reFetchContent)="onFetchPopoverContent()"
>info</mat-icon>

Development workflow

First Headertypedefaultusage
placementPopoverPlacementleft, right, above, below, autoaboveTo defined the popover placement.
delaynumber500Popover delay when opening.
headerIconSSCIcon, undefinedundefinedTo add an icon in the header of the popover that emits an event.
headerTitlestring, undefinedundefinedTo add a title in the header of the popover.
sscPopoverstring, undefinedundefinedPopover content
sscPopoverErrorMessagestring, undefinedundefinedPopover error message if an error happened during fetching the content
(reFetchContent)EventEmit an event if the header icon got clicked.

SSCIcon class that is used as a type for headerIcon take two properties

Propertiestypesdefaultusage
namestring, undefinedundefinedThe icon name, can add find the list of icons under https://www.angularjswiki.com/angular/angular-material-icons-list-mat-icon-list
colorsuccess, info, danger, warninginfoThe icon color

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

1.0.1

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago