akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 879 forks source link

html in cell #582

Open MerkulovDev opened 7 years ago

MerkulovDev commented 7 years ago

I need to put button which will call modal window with data of this cell. How can i do it? cell type:'html' didn't helps me.

MTschannett commented 7 years ago

Hi @MerkulovDev, i think you are looking for a custom viewer.

Maybe this documentation helps: https://akveo.github.io/ng2-smart-table/#/examples/custom-editors-viewers

If you are looking for this headline: "Custom editor/renderer column type"

There is a custom link cell, that gets rendered.

Basically you create an component, which holds the button and render the whole data in there.

I hope this helps

MerkulovDev commented 7 years ago

@MTschannett yes, thx. I have already solved it like in this example: https://github.com/akveo/ng2-smart-table/blob/master/src/app/pages/examples/custom-edit-view/basic-example-button-view.component.ts

JoOtNlanfall commented 2 years ago

correct link: https://github.com/akveo/ng2-smart-table/blob/master/projects/demo/src/app/pages/examples/custom-edit-view/basic-example-button-view.component.ts