This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-29
Channels
- # arachne (3)
- # bangalore-clj (6)
- # beginners (246)
- # boot (57)
- # business (1)
- # capetown (1)
- # cider (2)
- # clara (1)
- # cljsjs (36)
- # cljsrn (1)
- # clojure (150)
- # clojure-austin (4)
- # clojure-brasil (7)
- # clojure-china (2)
- # clojure-france (3)
- # clojure-greece (3)
- # clojure-japan (3)
- # clojure-russia (38)
- # clojure-spec (25)
- # clojure-uk (25)
- # clojurescript (320)
- # clojurex (1)
- # cursive (38)
- # datascript (48)
- # datomic (23)
- # emacs (29)
- # events (1)
- # funcool (2)
- # hoplon (64)
- # jobs (3)
- # luminus (10)
- # off-topic (26)
- # om (27)
- # om-next (1)
- # onyx (1)
- # parinfer (38)
- # perun (5)
- # planck (19)
- # re-frame (38)
- # reagent (19)
- # remote-jobs (1)
- # rum (2)
- # schema (2)
- # spacemacs (1)
- # specter (8)
- # test-check (10)
- # vim (7)
- # yada (14)
How to do spaces? I pass " baker" to an element and the space vanishes and all I get is "baker". But if I pass " baker" I get " baker". @micha? @flyboarder?
I searched the hoplon repository and could not find any documentation. But in any case, thanks for the extra bit of magic.
very likely that you don't want to do anything involving in a hoplon application
I'm creating a console display. All lines are converted into the same type of element so that I can use for-tpl and have elements reused. So I'll convert those reserved characters as I build the dom elements, but as data rather than bringing in dom elements unique to a given line of output.
@onetom: try building with https://github.com/jumblerg/hoplon/tree/optimizations when you get a chance. vflatten
has shaved a couple hundred ms from my ui tests.
@jumblerg: will do thanks!
we really need to get some xbrowser unit tests set up on sauce labs or some such similar service that will give us good benchmarks to optimize against.
@flyboarder @micha I seem to keep coming back to the same thing. I add an element to the output and this time I need to call scrollIntoView. I'm locating the element by id, only at the time I make the call, the dom has not been updated. So is there any way to know when that dom has been updated? Can I wait for it??
--normally I hate to wait, but in this case I am processing a user request and want to do the scroll to make it visible.
Hmm. I could just repeatedly check to see if the last item to be displayed is visible and if not then scroll. I.E. polling. 😞
Is there some way to have a div scroll to the bottom whenever an element is added to it?
Mind, I still want the user to be able to manually scroll when no elements are actively being added.
but when I add the element, it does not exist. How can I scroll to something before it exists in the dom itself?
however you probably should be using one of the *-tpl things instead of fishing around in the dom for an element by id and then calling appendChild on it
however you probably should be using one of the *-tpl things instead of fishing around in the dom for an element by id and then calling appendChild on it
I'm using for-tpl already. only, I need the element itself to call the scrollIntoView method, yes?
So in the for-tpl, I put :scroll-to on every element, with the value true when it is the last element, eh?
whenever some-cell
changes from false to true the page will scroll such that that div is at the top
:scroll-to
will scroll the page when the value in some-cell
changes and the new value is not nil
or false
with-timeout 0 is working nicely for me. I looked at the other, but it pulls me into places I'm less comfortable with.