1.0.0 • Published 6 years ago
@dev-cosmos/ng2-toolbelt v1.0.0
How to use it
Install npm and import on your AppModule
npm install ng2-toolbelt --save
@NgModule({
imports: [
...,
Ng2ToolbeltModule,
...
]
})
And in your .html file
<ng2-toolbet-table #table [source_url]="url" [method]="method" [id_field]="id_field" [columns]="columns"></ng2-toolbet-table>
Configuraton
@Inputs
[source_url]
URL of your back-end endpoint of data provider[method]
Method which will be used to retrive data from back-end (GET/POST)[source_data]
Data to populate table (If no source_url is provided)[id_field]
Key of field with id of the row[columns]
Configuration object for table columns
1.0.0
6 years ago