srag / datatable
ILIAS Data Table UI Component
Requires
- php: >=7.2
- srag/custominputguis: >=0.1.0
- srag/dic: >=0.1.0
- srag/librarylanguageinstaller: >=0.1.0
- dev-main
- 0.33.0
- 0.32.1
- 0.32.0
- 0.31.6
- 0.31.5
- 0.31.4
- 0.31.3
- 0.31.2
- 0.31.1
- 0.31.0
- 0.30.3
- 0.30.2
- 0.30.1
- 0.30.0
- 0.29.2
- v0.29.1
- v0.29.0
- v0.28.5
- v0.28.4
- v0.28.3
- v0.28.2
- v0.28.1
- v0.28.0
- v0.27.0
- v0.26.0
- v0.25.0
- v0.24.0
- v0.23.9
- v0.23.8
- v0.23.7
- v0.23.6
- v0.23.5
- v0.23.4
- v0.23.3
- v0.23.2
- v0.23.1
- v0.23.0
- v0.22.0
- v0.21.10
- v0.21.9
- v0.21.8
- v0.21.7
- v0.21.6
- v0.21.5
- v0.21.4
- v0.21.3
- v0.21.2
- v0.21.1
- v0.21.0
- v0.20.5
- v0.20.4
- v0.20.3
- v0.20.2
- v0.20.1
- v0.20.0
- v0.19.2
- v0.19.1
- v0.19.0
- v0.18.0
- v0.17.0
- v0.16.0
- v0.15.0
- v0.14.4
- v0.14.3
- v0.14.2
- v0.14.1
- v0.14.0
- v0.13.1
- v0.13.0
- v0.12.1
- v0.12.0
- v0.11.1
- v0.11.0
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.14
- v0.9.13
- v0.9.12
- v0.9.11
- v0.9.10
- v0.9.9
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.7
- v0.8.6
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.0
- v0.6.1
- v0.6.0
- v0.5.1
- v0.5.0
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.0
This package is auto-updated.
Last update: 2022-07-18 08:22:44 UTC
README
ILIAS Data Table UI Component
This project is licensed under the GPL-3.0-only license
Usage
Composer
First add the following to your composer.json
file:
"require": { "srag/datatable": ">=0.1.0" },
And run a composer install
.
If you deliver your plugin, the plugin has it's own copy of this library and the user doesn't need to install the library.
Tip: Because of multiple autoloaders of plugins, it could be, that different versions of this library exists and suddenly your plugin use an older or a newer version of an other plugin!
So I recommand to use srag/librariesnamespacechanger in your plugin.
Using trait
Your class in this you want to use DataTableUI needs to use the trait DataTableUITrait
... use srag\DataTableUI\x\Implementation\Utils\DataTableUITrait; ... class x { ... use DataTableUITrait; ...
You can also use AbstractTableBuilder
for build your table
Languages
Expand you plugin class for installing languages of the library to your plugin
... /** * @inheritDoc */ public function updateLanguages(/*?array*/ $a_lang_keys = null) : void { parent::updateLanguages($a_lang_keys); self::dataTableUI()->installLanguages(self::plugin()); } ...
Use
In your code
... self::dataTableUI()->table(...)->withPlugin(self::plugin()); ...
Get selected action row id
$table->getBrowserFormat()->getActionRowId($table->getTableId());
Get multiple selected action row ids
$table->getBrowserFormat()->getMultipleActionRowIds($table->getTableId());
Limitations
In ILIAS 5.4 a default container form ui is used for the filter, in ILIAS 6, the new filter ui is used
Requirements
- ILIAS 6.0 - 7.999
- PHP >=7.2