Skip to content

[Improvement] UI: Async options loading for HasOptionsFilter input#11205

Draft
mBeym wants to merge 7 commits intoILIAS-eLearning:release_11from
mBeym:feature/ilias11/ui/ks/hasoptionsFilter/asyncOptions
Draft

[Improvement] UI: Async options loading for HasOptionsFilter input#11205
mBeym wants to merge 7 commits intoILIAS-eLearning:release_11from
mBeym:feature/ilias11/ui/ks/hasoptionsFilter/asyncOptions

Conversation

@mBeym
Copy link
Contributor

@mBeym mBeym commented Feb 27, 2026

This pr is an alternative to #11008.

This pr makes it possible to load options in a HasOptionsFilter (Radio or MultiSelect) input asynchronously.


We would like to use this PR to discuss this implementation.


Important notes

  • An initial fetch when the input loads is required since only the value is stored in the input (->withValue('')) and we need to retrieve the display_value(s) for those value(s).
  • since we don't have any predefined options available, the retrieved value can't really be checked/compared in isClientSideValueOk.
  • When a data source is used, no options can be defined on the input (Exception thrown).
    • Similarly when options are defined, no data source can be used ( Exception thrown.
  • To leave the input in a clean state after selections have been done (Input closed) we clear the search box and remove any non selected options from the available options.
    • This differs from the non async HasOptionsFilter input!

@mBeym mBeym marked this pull request as draft February 27, 2026 09:23
@mBeym mBeym changed the title Draft: [Improvement] UI: Async options loading for HasOptionsFilter input [Improvement] UI: Async options loading for HasOptionsFilter input Feb 27, 2026
@mBeym mBeym force-pushed the feature/ilias11/ui/ks/hasoptionsFilter/asyncOptions branch from b34cef2 to ffb9b5f Compare February 27, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant