User Action Buttons

Add buttons for downloading, copying, printing, and changing column visibility of tables.

This feature module can add buttons for various features to a table, namely

  • Column Visibility: Allow the visitor to choose the shown and hidden columns.
  • Copy: Copy the table content to the clipboard, for copy/paste.
  • CSV: Generate a CSV file of the table and offer it for download.
  • Excel: Generate an Excel file of the table and offer it for download.
  • PDF: Generate a basic PDF of the table’s text content and offer it for download.
  • Print: Generate a Print view for the table and open the browser’s Print dialog.

Feature description

This table has the possible buttons above its header row:

NameYearCountrySportTimeRateFee
Eric1986SwedenSoccer05:2540.4%$7.14
Julia1991GermanyBasketball04:4520.3%$2.90
Adam2002IndonesiaGolf19:4043.3%$4.40
Kim1986ChileBadminton12:5085.7%$3.47
Jackson1998AustraliaBaseball06:0966.7%$6.85
Cade1986IndiaBadminton19:4342.4%$3.22
Keaton2003Costa RicaBasketball10:3140.0%$5.88
Ray1999FranceGymnastics18:0859.5%$1.10
Omar1984BrazilTennis02:5054.2%$2.30
Maite1986NorwayWrestling15:0929.5%$3.91

Usage instructions

To use this feature with your tables, enable the “User Action Buttons” module on the TablePress “Modules” screen.

To use this feature with your tables, choose the desired options on the table’s “Edit” screen. You can drag and drop them between the “Available buttons” and “Shown buttons” section. Double-clicking on a button will move it to the other section as well.

Configuration parameters

To configure this module’s features, you can also use these configuration parameters in the “TablePress Table” block or in the Shortcode that you are using to embed the table:

ModuleSlugConfiguration parameterNameDescriptionTypeDefault value
Buttonsdatatables-buttonsdatatables_buttonsstring"" (empty string)