Not sure what the "certain value" is you want and where you are placing the start and stop buttons. In my case I wanted to do something similar where I have start/stop or on/off buttons in each row. These are checkboxes with added code to make them look like a toggle.
Answers
Not sure what the "certain value" is you want and where you are placing the start and stop buttons. In my case I wanted to do something similar where I have start/stop or on/off buttons in each row. These are checkboxes with added code to make them look like a toggle.
My pages use Bootstrap so I use BootstrapToggle for this functionality. I believe there is at least one other Bootstrap toggle type extension available. If you are using Bootstrap you can look at this post for information on integrating BootstrapToggle with Datatables:
https://datatables.net/forums/discussion/40032/bootstrap-toggle-plugin#latest
Hope this is what you are looking for.
Kevin
You can create all sorts of buttons for an editor. You just need to define it, and include a function to be called when it's clicked.
See: https://editor.datatables.net/reference/type/button-options
It's then a matter of making the function do what you need to do. You can tweak the data, call editor api methods like submit() etc.
Have a look at this example which does what you are looking for.
Allan
great thanks a lot
Is there a way to change the "action"-Value of the post data? I can't find anything.
Yes, use the
preSubmit
parameter, orajax.data
to modify the data that is being sent to the server.Allan