question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onComponentInitFunction doesnot working

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

4reactions
KeaganFouchecommented, Jan 23, 2018

Thank you! I updated my ng2-smart-table from 1.1.0 to 1.2.2 and it resolved it.

4reactions
millermocommented, May 21, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found