Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

How to make a custom button behave like built-in buttons?

$
0
0

If a row is selected then my button is enabled and vice versa. I don't want to catch select.dt/deselect.dt and control reload and filter. I want to use behavior of built-in buttons)

The only thing I could come up with: { text: 'My button', extend: 'edit', action: function( e, dt, node, config ) {} } but I'm not sure this is a right way to use ...


Viewing all articles
Browse latest Browse all 2364

Trending Articles