akveo / akveo/ng2-smart-table

onComponentInitFunction doesnot working

Open
#364 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
867
PR merge metrics
No merged PRs in 30d

Description

Hi,
The method onComponentInitFunction in settings of table (as in demo site) is not fiting when i install ng2-smart-table from npm. My table settings:
settings = {
columns: {
User: {title:"Users"},
Plan{
title: "Plan",
type: 'custom',
renderComponent: IconViewComponent,
onComponentInitFunction(instance) {
instance.click.subscribe(row => {

console.log('event clicking');
alert(`${row.User} clicked!`);
});
}
},
};
The IconViewComponent is rendering correctly.
Do I need to set some extra parameters or any other requirements?

Thanks in advance
Audrius

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.