Move the Download Options Below a Table


If you are working with flexibile tables (lib/tablelib.php) in Moodle and have table download enabled, you can move the “Download table data as” select and button below the table by adding the following line before finishing your table setup:

$table->show_download_buttons_at(array(TABLE_P_BOTTOM));

By default they appear above the table but this doesn’t always look so good and takes up screen space.


Revision #1
Created Mon, Aug 5, 2019 10:48 AM by Moodle Wiki
Updated Mon, Aug 5, 2019 10:49 AM by Moodle Wiki