question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature - support Editors & Filters with Async Collections

See original GitHub issue

I’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 for collectionAsync
  • 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:closed
  • Created 5 years ago
  • Comments:25 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jmzagorskicommented, Aug 9, 2018

@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 😄

1reaction
ghiscodingcommented, Jul 27, 2018

Some quick research about what you said, I just found this jsfiddle and the person uses the metadata to change the editor

data.getItemMetadata=function(row) {    
        var rowData = data[row]
        //console.log(rowData)
        var metaData = {columns:{other: {}}}
        metaData.columns.other.editor = Slick.Editors[rowData.type]         
        return metaData
}

in this example, other is a column name.

So will have to check if it works with setColumns and/or the metadata

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found