1.0.5 • Published 4 years ago
server-table v1.0.5
@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%'
},
],
};