Disable Export Button if no Rows Selected

Disable Export Button if no Rows Selected

wallabe123wallabe123 Posts: 24Questions: 13Answers: 0

I am using the button and bootstrap plugins to add a CSV export button to my table. It currently uses the 'selected: true' configuration in the button's modifier initialization. I only want it to export the rows that are selected by the user (which is currently does fine). Is there anyway to automatically disable/enable the button based on whether any rows are selected, similar to how a button behaves when it extends 'selected'.
Alternatively, is there a setting so that if no rows are selected it will export the whole table instead of an empty csv file?

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.