akveo / akveo/ng2-smart-table

Remove Empty row from the table -as we dont need add functionality

Open
#880 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
867
PR merge metrics
No merged PRs in 30d

Description

settings1 = {
columns: {
id: {
title: 'First Name',
filter: false,
editable: false,
addable: false,
},
firstName: {
title: 'First Name',
filter: false,
editable: false,
addable: false,
},
lastName: {
title: 'Last Name',
filter: false,
editable: false,
addable: false,
},
email: {
title: 'Email',
filter: false,
editable: false,
addable: false,
},
// button: {
// title: '',
// type: 'custom',
// filter: false,
// addable: false,
// renderComponent: ButtonViewComponent,
// onComponentInitFunction(instance) {
// instance.save.subscribe(row => {
// alert(`${row.name} saved!`);
// });
// }
// },
},
actions: {
add: false,
edit: false,
delete: false
}
};
data1 = [
{
id: 1,
firstName: 'Leanne',
lastName: 'Graham',
email: 'Sincere@april.biz',
// button: 'Send invitation '
},
{
id: 2,
firstName: 'Shanna',
lastName: 'Melissa',
email: 'Shanna@melissa.tv',
// button: 'Send invitation '
},
{
id: 3,
firstName: 'Nicholas',
lastName: 'DuBuque',
email: 'Rey.Padberg@rosamond.biz',
// button: 'Re-send invitation '
}
];

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.