Hi Dave,
With your suggestion, I could generate "<li><a href="#">menu1</a></li>"
block using the following clojurescript:
(dom/li nil
(dom/a #js {:className "#"} "menu1"))
> https://github.com/swannodette/om/blob/master/src/om/dom.clj#L4-L126
Above is also helpful for me.
Thanks,
Makoto
> Should just be 'a'. You should be able to find the names of any DOM
>
> function here:
>
>
>
> https://github.com/swannodette/om/blob/master/src/om/dom.clj#L4-L126
>
>
>
> And this doc describes what React supports (and therefore what may or
>
> may not be supported by Om):
>
>
>
> http://facebook.github.io/react/docs/tags-and-attributes.html
>
>
>
> DD
>
>
>
> (2014/07/09 14:26), webber wrote:
>
> > Hi,
>
> >
>
> > I am writing web app using om and I would like to generate
>
> > "<li><a href="#">menu1</a></li>" using om or cljs function.
>
> >
>
> > I know the dom/ul function generates "<li>...</li>" block, but I don't know
>
> > how to generate "<a href="#">menu1</a>" using om or cljs function.
>
> >
>
> > Does anybody know it ?
>
> >
>
> > Best,
>
> > MH
>
> >
>
> >
>
> >
>
> >
>
> >
--
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.