onComponentInitFunction doesnot working
See original GitHub issueHi, 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
Issue Analytics
- State:
- Created 6 years ago
- Comments:13
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you! I updated my ng2-smart-table from 1.1.0 to 1.2.2 and it resolved it.
You need download from this repository and build the module. Use gulp
git clone https://github.com/akveo/ng2-smart-table.git cd ng2-smart-table npm install gulp build:release copy folder from dist to your project in node_modules