bk-angular-table
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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.

Package Sidebar

Install

npm i bk-angular-table

Weekly Downloads

3

Version

0.0.7

License

MIT

Unpacked Size

880 kB

Total Files

16

Last publish

Collaborators

  • bharat947