bk-angular-table
v0.0.7
Published
An Angular 15 table, with pagination, sorting, filter etc.
Downloads
4
Maintainers
Readme
BkAngularTable
This library was generated with Angular CLI version 15.0.0.
Plugin detail
This bk-angular-table plugin adds the ability to generate dynamic angular material tables.
HTML File to use this plugin
[displayedColumns]="displayedColumn"
[dataSource]="this.data"
(selectedRow$)="onSelectedChange($event)"
(pagination$)="onPagination($event)"
class="bk-table"
columnClass="bk-customer-heading"
>
</bk-angular-table>
Attributes details
DisplayedColumn
you have to pass your title and field for table
example:-displayedColumn = [ { field: 'name', title: 'Name' }, { field: 'org', title: 'Organization' }, { field: 'place', title: 'Place' }, { field: 'code', title: 'Code' }, ];
DataSource:
-table data.SelectedRow$
:-SelectedRow$ will retun you selected row.Pagination$:-
If you want to add pagination for this table then you can access current page index using pagination$columnClass
will allow you to adjust table header width
import
import { BkTableModule } from 'bk-angular-table'
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.