UI/DataTable: highlight rows
This adds highlighting rows to the table. There are two ways to highlight a row: directly, on the row itself or via parameters .
In order to use parameters, the token has to be given to the table; I already marked the method as deprecated, since I feel this is usually following an (prompt-) action and the token should be announced along with other things necessary for the action:
please see https://github.com/ILIAS-eLearning/ILIAS/pull/10196; when adding an entry, the new lines should be highlighted afterwards, and the method would then read public function withEntryCreation(Prompt $entry_creation, URLBuilderToken $highlight_token): self
CSS is, as always, just a dummy and better left to @catenglaender.
Hi @thibsy and @yvseiler,
please have a look here too.
Kind regards!
Hi @catenglaender,
would you make this look good please?
Kind regards!
Hi @nhaagen and @catenglaender Thanks a lot for this improvement. Unfortunately I can't produce the mentioned "Expected Result":
* expected output: >
* Example showing a data table with a highlighted row.
* Below the table is a button "Highlight some rows".
* When clicked, the page reloads and two more columns are highlighted.
When I click the button "Highlight some rows" the page reloads but doesn't add two more columns with highlighting. Can you give me a hint, what am I missing?
Best regards @yvseiler