Edit And Trash Icon in all columns

Edit And Trash Icon in all columns

smanepallismanepalli 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.

Answers

  • allanallan Posts: 63,704Questions: 1Answers: 10,502 Site admin

    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

  • smanepallismanepalli Posts: 8Questions: 5Answers: 0

    It worked.
    Thanks.

This discussion has been closed.