Table Reorder to be enabled/disabled based on button click

Viewed 7

I am using Bootstrap table reorder plugin to reorder rows of a table. In the HTML table if I set the "data-reorderable-rows" to TRUE then I can reorder the rows. But if I want to disable the reorder based on click of a button, it is not working.

Code can be found here https://live.bootstrap-table.com/code/devanasrikanth/12935

Any suggestions on how I can disable/enable table reorder based on button click.

0 Answers
Related