This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-04
Channels
- # bangalore-clj (3)
- # beginners (23)
- # boot (89)
- # cider (11)
- # cljs-dev (22)
- # cljsjs (5)
- # cljsrn (21)
- # clojure (141)
- # clojure-android (1)
- # clojure-berlin (1)
- # clojure-greece (1)
- # clojure-italy (13)
- # clojure-mke (2)
- # clojure-nl (8)
- # clojure-norway (5)
- # clojure-russia (22)
- # clojure-sg (4)
- # clojure-spec (38)
- # clojure-uk (109)
- # clojurescript (150)
- # consulting (4)
- # core-async (7)
- # cursive (13)
- # datascript (8)
- # datomic (72)
- # dirac (185)
- # emacs (5)
- # figwheel (2)
- # flambo (1)
- # hoplon (13)
- # immutant (6)
- # lambdaisland (7)
- # lumo (46)
- # off-topic (13)
- # om (4)
- # onyx (1)
- # pedestal (1)
- # re-frame (68)
- # reagent (15)
- # rum (16)
- # slack-help (4)
- # spacemacs (22)
- # specter (3)
- # vim (10)
- # yada (28)
Does anyone know if there is a youtube iframe wrapper for rum? I need to open up youtube video without leaving the page and I'm not sure how to go about it π
@grounded_sage canβt you just render an iframe with rum?
Oh wow. Just looked at youtube and saw how I can use the embed iframe. Looks easy as. I just googled it and ended up on a page with an iframe API and was like whoa. Cheers @martinklepsch for making me dig a little deeper π
Looks like I will need to interop with the API in the end anyways. I need to bring the iframe up and start on click and close the iframe when the video is finished.
ah yeah, that sounds a bit more involved π
What is the best way to do a case with Rum? I'm doing multiple popups and seemed to have backed myself into a corner a bit using atoms.
I'm wanting to refer an atom in one namespace which is passed an icon label which is a string. Then refer to that string in a case in my main namespace and render a component from another namespace which has all the content of that popup.
From memory of reading about Reagent it's best to keep logic outside of the rendering. Like in a let
of the component? This seems to stop my popups from working π
(rum/defc pop-up-with-content < rum/reactive[]
(pop-up [:div {:class [(css {:margin-top "1.5em"
:margin-left "1.5em"
:margin-right "1.5em"})]}
(case (rum/react popup-content)
"Housing" (housing/content)
"Airport" "Airport"
"default")]))
That is how I have done it at the moment..
Hi, I am using rum with cljs-react-material-ui.rum and have hit a problem passing data-
and aria-
attrs
I think a change from props-kebab->camel->js
to sablono.util/html-to-dom-attrs
should fix it (see https://github.com/madvas/cljs-react-material-ui/blob/54360864f174870a0b28335047d5f2195497455f/src/cljs_react_material_ui/core.cljs#L14)
Does that seem right?
data-
attributes are passed as dataset
in React (https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset)
Ended up switching from camel-snake-kebab
to sablono
https://github.com/madvas/cljs-react-material-ui/pull/32