How do I add button on each row in datatable?

前端 未结 7 1345
醉话见心
醉话见心 2020-11-30 23:54

I am newbie for DataTables. I want to add button on each row for edit and delete(like below image)

\"enter

7条回答
  •  借酒劲吻你
    2020-12-01 00:20

    well, i just added button in data. For Example, i should code like this:

    $(target).DataTable().row.add(message).draw()
    

    And, in message, i added button like this : [blah, blah ... ""] and.. it works!

提交回复
热议问题