Hi Mike, I've come across this thread just now as a re-com user, wanting to have an autocomplete that is fetching data from a server.
I have made only a couple of line changes to re-com dropdown.cljs to enable this and it seems to be working fine: https://groups.google.com/forum/#!topic/clojurescript/HdQekOpXiaQ How it works is that when the filter text changes, it and the 'choices' ratom are posted off in a re-frame event, so that in a handler fn the choices ratom value can be changed to contain results relevant for the search. the gist is just a hack so far, may be of interest to others on this thread. I could have a go at making it pull-request quality if you were interested? Regards, Henry On Saturday, April 18, 2015 at 8:04:40 AM UTC+1, Mike Thompson wrote: > On Saturday, April 18, 2015 at 1:26:13 AM UTC+10, Jamie Orchard-Hays wrote: > > Bumping this. Anyone have a favorite solution? > > > > Jamie > > > > On Apr 16, 2015, at 8:37 PM, Jamie Orchard-Hays <[email protected]> wrote: > > > > > What are folks out there using for autocomplete/typeahead in > > > Reagent/re-frame apps? > > Hi Jamie, > > It is not clear if you need to round-trip to a server, or not, to > progressively acquire the options, but assuming you don't ... > > Re-com has something in this space: > http://re-demo.s3-website-ap-southeast-2.amazonaws.com/#/dropdown > > On the right, under Demo, choose the "Dropdown with filtering" demo, then > click on the dropdown at the bottom right. Type in stuff. > > -- > Mike -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
