Option to include all buttons with one click

Option to include all buttons with one click

WestyWesty Posts: 5Questions: 1Answers: 0

Using the current Table/Buttons to add buttons to a table can be tedious when adding a lot of tables. It would be nice to have a "Add All Buttons" button that adds them all with one click. Then we could just remove the buttons that we do not want, which would be much faster:
<img src="https://www.dropbox.com/s/n2o7zgbui3pekn9/buttons.png?dl=0">


  • kthorngrenkthorngren Posts: 19,462Questions: 26Answers: 4,610

    One option might be to start with all buttons added when Datatables initializes. Use the buttons.buttons.className to add a class name to the buttons you want to hide using a corresponding CSS. Use buttons().nodes() with an appropriate button-selector to choose the buttons you want to hide or show.


  • colincolin Posts: 15,022Questions: 1Answers: 2,570

    That's a nice idea for CloudTables - also to have groupings that can be added in one go for export, editing, etc. I've raised it internally as an enhancement (DD-1462 for my reference) and we'll report back here when there's an update.



Sign In or Register to comment.