server-table
v1.0.5
Published
<h6>Step 1: Install ng-select:</h6> npm install --save server-table
Downloads
29
Readme
@NgModule({ declarations: [AppComponent], imports: [ServerTableModule], bootstrap: [AppComponent] }) export class AppModule {}
public tableSettings = {
service:'https://yourservice',
pagination:{'align':'end'}, //start,center,end
actions:[
{
'html':'<i class="icon"></i>',
'callback': (data) => { //onClick
console.log('data);
}
},
{
'html':'<i class="icon"></i>',
'callback': (data) => {
console.log(data);
}
}
],
// beforeRender: ( rowData ) => {
// return rowData;
// },
columns: [
{
title: 'First Name',
key: 'first_name',
order: 'asc',
width:'30%'
},
{
title: 'Last Name',
key: 'last_name',
width:'30%'
},
{
title: 'Email',
key: 'email',
width:'30%'
},
],
};