akveo / ng2-smart-table

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

Adding Radio Buttons #467

Open vtec11001 opened 7 years ago

vtec11001 commented 7 years ago

Hey I was wondering if there was a way I could add a radio button or just inject my own html code into a table cell. To expand, currently I need a column to be made of selectable radio buttons so I can individually select a single row. I understand now that I can add a checkbox into a single cell/make a column of only checkboxes but I was wondering if I could do the same except with radio buttons. If any further clarification is required I am glad to provide as I understand that I may not be clear with what I am saying. Thanks.

64n35h4 commented 7 years ago

Check 'column type' from the documentation

type 'text'|'html'|'custom' If type is text then cell value will be inserted as text. If type is html then cell value will be inserted as html. If type is custom the renderComponent property must be defined.