Might be my ignorance of reagent, but why can't you just {:title "My tooltip"} 
to the button itself:

[:button.btn.btn-default {:title "Woot"}]

On Wednesday, 25 March 2015 15:44:38 UTC, Jonathon McKitrick  wrote:
> (defn edit-button-component [attrs]
>   [:button.btn.btn-default attrs
>    [:span.glyphicon.glyphicon-pencil]])
> 
> (defn edit-button-component-dec []
>   (with-meta edit-button-component
>     {:component-did-mount #(.tooltip (js/$ (reagent.core/dom-node %)) #js 
> {:title "Test"})
>      :component-will-mount #(.log js/console "Mounting")}))

-- 
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.

Reply via email to