markcell / jquery-tabledit

Inline editor for HTML tables compatible with Bootstrap.
http://markcell.github.io/jquery-tabledit/
MIT License
435 stars 208 forks source link

Add a new customized button to table #74

Open manhbui21 opened 7 years ago

manhbui21 commented 7 years ago

Hi, How do I add a new customized button to table with specified function (not edit, delete, save, restore or confirm) ?

xbox2007 commented 6 years ago

check jquery.tabledit.js , line 43 ,,,
buttons: { edit: { class: 'btn btn-sm btn-default', html: '', action: 'edit' }, you can add or change buttons from here

rs2pt commented 5 years ago

Hi Just digging out this... I am struggling on making a button that simply acts like a on / off to that row... it sets a True/False field for that row... just that, without confirmation.

I tried like xbox2007 suggested to start on creating a new kind of button but did work at first... maybe current version is different. Before I start to customize lots of code on jquery.tabledit.js I would like to ask if there is an easy way to do this. I don't like much to mess with jquery.tabledit.js and like to keep as original as possible