ngu-datatable

This library is used to create a table for Angular

Usage no npm install needed!

<script type="module">
  import nguDatatable from 'https://cdn.skypack.dev/ngu-datatable';
</script>

README

NguDatatable

This library is used to create a table for Angular

Installation

To install ngu-datatable, run npm install through npm package manager using the below command

npm i ngu-datatable

Import Module

Import NguDatatableModule in the imports section of your angular module.

Creating a new datatable

<ngu-datatable [data]="data">
    <ngu-datatable-column property="id">
        <ng-container *nguDatatableHeader>header1</ng-container>
        <ng-container *nguDatatableCell="let row">
            <input [value]="row.id">
        </ng-container>
   </ngu-datatable-column>
   <ngu-datatable-column property="title">
        <ng-container *nguDatatableHeader>header 2</ng-container>
        <ng-container *nguDatatableCell="let row">{{ row.title }}</ng-container>
   </ngu-datatable-column>
</ngu-datatable>

Further help