You can always use the React component API directly through `owner` if you
must.

David

On Mon, Jun 8, 2015 at 12:54 PM, Wilker <wilkerlu...@gmail.com> wrote:

> Hi
>
> I'm creating a video player that wraps the Youtube player API, and I'm
> creating it in 2 layers (one layer just does with Youtube internals, and
> this one is used by another one that has the controls).
>
> On the parent component (the one with the controls) I need to access the
> owner of the youtube player component, I just can't figure out how to add a
> ref using om/build
>
> (om/build youtube-player {:video-id "abcd..." :ref "player"})
>
> The code above doesn't work (since that map is a data and not the props of
> the component).
>
> There is anyway to reference a component built with om/build? I really
> need that in order to control the player (so I can call the Youtube api to
> do play/pause/stop/etc...)
>
> Thanks.
>
> --
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to