Moodle Plugins directory: Table Sql: Versions: 1.0 | Moodle.org
Table Sql
Table Sql 1.0
Code prechecks
local_table_sql Moodle Plugin
Enhanced table_sql functionality with advanced features and a modern, responsive interface
Moodle provides a table_sql class for building tables through a unified API. However, it lacks modern features such as AJAX-based pagination and filtering.
local_table_sql is a drop-in replacement for Moodle’s core table_sql class and adds a wide range of powerful enhancements, including AJAX navigation, full-text search and advanced filtering for each column.
Plugins can declare this plugin as a dependency in their version.php.
Tables built using local_table_sql provide the following features:
Key Features
- AJAX-driven data loading – Load only the data that is needed, improving performance.
- Built-in filtering and sorting – Global search or column-specific filters included.
- Full-text search support
- Dynamic column visibility – Show or hide columns instantly.
- Customizable UI actions – Add action buttons or context menus for each row.
- Row selection and bulk actions
- SQL-based data source – Provide your own SQL query as input.
- Custom form integration – Display forms for adding or editing rows.
Usage
See the demo folder for example usage of the local_table_sql plugin.
Information for developers regarding the react-app directory
The react-app directory contains the React frontend responsible for rendering table data, built using Material React Table.
To build the React app (only needed if you made changes to the react code, a precompiled version is included in the plugin):
Run the script:
cd react-table ./build.shThe compiled output will be copied into the js/main.js directory.
The react-app directory is not required for normal plugin usage—only for development. It is included in the repository for transparency and open-source collaboration.
JavaScript Licenses
See: LICENSE.js.txt
Version information
- Version build number
- 2025112600
- Version release name
- 1.0
- Maturity
- Stable version
- MD5 Sum
- b27632c339cf64d5f06258a68c3b782c
- Supported software
- Moodle 4.0, Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0, Moodle 5.1
- Latest release for Moodle 4.0
- Latest release for Moodle 4.1
- Latest release for Moodle 4.2
- Latest release for Moodle 4.3
- Latest release for Moodle 4.4
- Latest release for Moodle 4.5
- Latest release for Moodle 5.0
- Latest release for Moodle 5.1
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS tag
- v2025112601
Default installation instructions for plugins of the type Local plugins
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder in the "local" subdirectory.
- Visit http://yoursite.com/admin to finish the installation.