Socket
Book a DemoInstallSign in
Socket

ngu-mx-table

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngu-mx-table

ngu-mx-table ngu-mx-table is a simple table to show the data in the matrix or grid format along with the form components.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

ngu-mx-table

ngu-mx-table is a simple table to show the data in the matrix or grid format along with the form components.


Installation

install library from npm

npm i ngu-mx-table

How to use

  • Import the 'NguMatrixTableModule' in the app.module.ts
import { NguMatrixTableModule } from 'ngu-mx-table';

  • Add to NgModule import section
@NgModule({
	declarations: [],
	imports: [NguMatrixTableModule],
	providers: [],
	bootstrap: []
})
export class AppModule { }
  • Use the ngu-mx-table in the html or templat where ever required.
 <ngu-mx-table>
    <ngu-mx-th [headers]="headers"></ngu-mx-th>
    <ngu-mx-tr [data]="dataList" *ngFor="let row of dataList">
      <ngu-mx-td *ngFor="let data of row.values">
       // your component goes here
      </ngu-mx-td>
    </ngu-mx-tr>
  </ngu-mx-table>

Components and attributes

CompoenetAttributesComments
ngu-mx-tableIts the table contains the child components
ngu-mx-thheadersIts the table header component and pass array od string which will the table header labels
ngu-mx-trdataIts the table row like traditional tr of the table
ngu-mx-tdIts the table data and in the body we can set any html component and render

Keywords

grid table

FAQs

Package last updated on 14 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts