custom-tables
v1.0.2
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
Downloads
12
Readme
Dynamictable
This library was generated with Angular CLI version 7.2.0.
you just pass list to this library and it will show table with pagination and sorting
#inputs
@input list => your dynamic list goes here
@input rowStyleArr => you can pass style object for styleing rows (optional)
structure is [
{rowid:1,
style{color:red}
}
]
rowId 0 stats that css will apply to all the rows.
rowId is index+1 of row.
@input actions => this are the clickable actions for your each row you just pass icon class name and id for your identification i.e what that action will do structure =>[ { id:1 name: xyz icon: fa fa-times } ] make sure you have loaded icon class in your code (favicon are defaulty loaded).
#output
@output ActionTaken => emits on action button click we can identify on id that which button is clicked. which we inputted in actions.
#selectors
<dyn-table [list]="list" >
<dyn-table [list]="list" [rowStyleArr]="style" [actions]="action" (ActionTaken)="act($event)" >
except list every field is options
#Author
Hrushikesh Godse (harya godse)