vrimar / construct-ui

A Mithril.js UI library
https://vrimar.github.io/construct-ui
MIT License
287 stars 23 forks source link

Ajax Load in Select List #43

Closed shekharsom closed 3 years ago

shekharsom commented 3 years ago

This is a feature request.

In Select List, allow Ajax data to be pulled up with a very long list. Initially only n items are pulled up but later as we scroll more, more data should be pulled up.

Also, during search, the data should be refreshed.

vrimar commented 3 years ago

Personally I think this should be a custom built component to prevent feature bloat. Here's a quick example I've spun up using construct-ui and mithril-infinite example.

shekharsom commented 3 years ago

Yes. That works great... Thanks. Though I still think it could be a feature of the component. This is a regular requirement and not that easy to implement. Construct-UI is ultimately a collection of various components to make development faster and consistent. Just an opinion.

panoply commented 3 years ago

Personally, I'd vote against this. Construct is lean and does not get in the way. It ports over a lot of the same logic mithril developers embrace (ie: less is more) but more importantly the use cases where you need infinite scrolling features are minimal at best. When you're using a SPA framework like Mithril this type of feature is easy to apply and whenever you would find yourself needing more complex functionality then mithril-infinite suffices.

vrimar commented 3 years ago

Closing as this is functionality beyond the scope of the component.