Edit And Trash Icon in all columns
Edit And Trash Icon in all columns
smanepalli
Posts: 8Questions: 5Answers: 0
In my datatable I would like to have data along with edit icon and a trash icon in all columns.
Example:
columns : [ {
data : 'name',
"mRender": function (data, type, full) {
return data + TRASH ICON + DELETE ICON;
}
}
]
But I'm not sure how to achieve this.
Any help would be greatly appreciated.
This discussion has been closed.
Answers
Hi,
You could basically use this example. Although instead of text, you would just use whatever HTML you need to show your icon (img or icon font).
Allan
It worked.
Thanks.