On Tuesday, January 14, 2014 11:42:45 AM UTC+5:30, David Nolen wrote: > There are plenty of simple components that don't need :opts. If you have a > better idea I'm all ears :) > > > > On Tue, Jan 14, 2014 at 12:48 AM, <clojur...@gmail.com> wrote: > > > > On Tuesday, January 14, 2014 11:09:23 AM UTC+5:30, David Nolen wrote: > > > Currently arbitrary parameters are passed via the :opts field in the third > > argument to om.core/build. The examples in the repo demonstrate this as > > well as the linked TodoMVC example. > > > > > > On Monday, January 13, 2014, wrote: > > > > > > Hi! > > > > > > > > > > > > I am sure this is a stupid question and I apologize in advance! > > > > > > > > > > > > How do we pass parameters to a component using om ? > > > > > > > > > > > > Do we instead pass a path into the application state (atom) ? > > > > > > > > > > > > > > > > > > Thanks in advance > > > > > > > > > > > > -- > > > > > > 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 clojurescrip...@googlegroups.com. > > > > > > > > > To post to this group, send email to clojur...@googlegroups.com. > > > > > > Visit this group at http://groups.google.com/group/clojurescript. > > > > Thanks, I saw the opts field but found it a bit annoying especially when you > think every reusable component would be using it. > > > > > > Still, I have loved om so far. > > Thanks for this great work! > > > > > > -- > > 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 clojurescrip...@googlegroups.com. > > To post to this group, send email to clojur...@googlegroups.com. > > Visit this group at http://groups.google.com/group/clojurescript.
:) still at the early stage of learning clojurescript/clojure and with a lot of baggage from Java :-( I am trying to create a bootstrap/tab component which I think should take an vector with each element describing a tab {:id "home" :title "Home" :content some-other-component } So is this the recommended approach. (defn tab [app owner opts}] (....)) and usage would be (om/build tab app {:opts { :active "home" :tabs { .... }}) Thanks for all the help! Really appreciate it! -- 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.