pwp-shared
v0.0.10
Published
> Pwp Shared Module is collections of pipe for help you to build application ongular
Readme
Pwp Shared Module
Pwp Shared Module is collections of pipe for help you to build application ongular
Install
npm i pwp-sharedPipes Libraries
Usage
Import PwpSharedModule on your apps module
List Of Pipe
- DatePipeCustom
convert date to string with month on bahasa, ex:
2019-02-03T09:01:32.607became03 Februari 2019for long date and03 Feb 2019for short date - TruncatePipe truncate your string, default is 150 char
- StripHtmlPipe Remove html tag
- SafeHtmlPipe For safe html(inner html)
Pagination Module
Pagination component
Usage
Import PaginationModule
API
| Name | Descripstion | | ------------- |:-------------:| | @Input() offset(0): number | Page Number or offset pagination | | @Input() limit(20): number | Limit for content pagination | | @Input() totalData(0): number | Total of data | | @Input() currentPage(1): number | Current Page | | @Ouput() paginationClick(): void | Triggered when page changing |
