feature - support Editors & Filters with Async Collections
See original GitHub issueI’m submitting a feature request
Current behavior: Since this is currently not available, user need to resolve collections before creating the grid
Expected/desired behavior:
-
What is the expected behavior? Simply pass an
http
Promise to an async collection property and let it do it’s job -
What is the motivation / use case for changing the behavior? Make it simpler to load asynchronously a collection and provide it to filter/editor without delaying the grid creation.
TODO
- Proof of Concept
- Add a JSON file to simulate real
HttpClient
call forcollectionAsync
- Cleanup the code in MultipleSelectFilter
- Extract duplicate functions/code in
MultipleSelectFilter
,SingleSelectFilter
&SelectFilter
and create a shared utility file or class - implement the same changes to the Editors
MultipleSelectEditor
,SingleSelectEditor
- update Editor Wiki & Filter Wiki
Issue Analytics
- State:
- Created 5 years ago
- Comments:25 (15 by maintainers)
Top Results From Across the Web
Filters and Collections - Unreal Engine Documentation
Use filters and Collections to sort and group Assets within the Content Browser.
Read more >Adding and editing user-defined dashboard filters | Looker
In legacy dashboards, this feature is called faceted filters. Dashboard filters can be linked so that the filter value options for one filter...
Read more >Filtering an array with a function that returns a promise
The filterAsync function takes an array and a function that must either return true or false or return a promise that resolves to...
Read more >AsyncSequence & AsyncStream Tutorial for iOS
Learn how to use Swift concurrency's AsyncSequence and AsyncStream protocols to process asynchronous sequences.
Read more >How to use async functions with Array.filter in Javascript
The async version is a bit more complicated this time and it works in two phases. The first one maps the array through...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ghiscoding thanks for pointing that out to me. I have been so busy the last few weeks I would have definitely missed that. i am glad there is not jmzargorski github user or else they would have received the kudos instead lol 😄
Some quick research about what you said, I just found this jsfiddle and the person uses the
metadata
to change the editorin this example,
other
is a column name.So will have to check if it works with
setColumns
and/or themetadata