0.0.2 • Published 3 years ago

tri-lab v0.0.2

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

use Case

table view by enabling columns keys

<tri-tables rows="rows" columns="columns">

Show Data as TimeLine

<tri-custom-timeline data="{name: 'Hello', 'des'}, {name: 'World', 'des'}" title="Timeline">

Capitalize Pipe

{{title | triCapitalize}}

Convert lakhs/cr

{{100000000 | triCustomCurr}}

Time

{{date | triCustomTime}}

Date

{{date | triCustomDate}}

h/m/s

{{3600 | triFormatTime}}

quantity

{{2333333 | triQuantity}}

Indian Currency

{{200000.766 | triInc}}

Round

{{200000.766 | triRound}}

object as NgFor

<ng-container *ngFor="let item of rows0 | triObjNgFor"> {{item}}

underscore remove

{{'j_k_l_m' | triUnderscoreSeparate}}

Sort By Key

<ng-container *ngFor="let item of rows | triSortBy : 'age'">{{item.name}}

Sort By Key with reverse order

<ng-container *ngFor="let item of rows | triSortBy : 'name' : true">{{item.name}}

Unique Array with key

<ng-container *ngFor="let item of rows | triUniqueObjectInArray : 'name'">{{item.name}}

Concat two arrays

{{'A', 'B' | triConcatArrays : 'C' , 'D'}}

Arrays Group By Key

{{rows | triGroupBy : 'name' | json}}

Sum in Arrays

{{2,3,45,3 | triSum}}

Filter in Arrays

{{'A','B', 'A', 'S', 'D' | triFilter : 'A'}}

Filter in Arrays of object with key

{{rows | triFilterBykey : 'A' : 'name'}}

0.0.2

3 years ago

0.0.1

4 years ago