ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

UI/DataTable: highlight rows

Open nhaagen opened this issue 3 months ago • 3 comments

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.

nhaagen avatar Oct 08 '25 12:10 nhaagen

Hi @thibsy and @yvseiler,

please have a look here too.

Kind regards!

klees avatar Oct 20 '25 18:10 klees

Hi @catenglaender,

would you make this look good please?

Kind regards!

klees avatar Oct 20 '25 18:10 klees

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

yvseiler avatar Nov 05 '25 12:11 yvseiler