ng2-smart-table icon indicating copy to clipboard operation
ng2-smart-table copied to clipboard

html in cell

Open MerkulovDev opened this issue 7 years ago • 3 comments

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.

MerkulovDev avatar Oct 25 '17 07:10 MerkulovDev

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

MTschannett avatar Nov 02 '17 11:11 MTschannett

@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

MerkulovDev avatar Nov 06 '17 07:11 MerkulovDev

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

JoOtNlanfall avatar Nov 17 '22 13:11 JoOtNlanfall