On Friday, December 26, 2014 5:04:49 PM UTC-5, Timothy Washington wrote:
> Ok, so I'm playing around with, and liking freactive a lot. First question, 
> is is there a Google group, or IRC channel where we should ask dedicated 
> freactive questions? 
> 
> 
> The next order of business is that I'm playing around with a data table 
> component. This fits into the Polymer web components approach. 
> 
> 
> Now, freactive uses a hiccup-like syntax, where tags are defined in vectors. 
> However, this component uses nested vectors to actually pass data into the 
> component (there's also a data attribute that isn't working). Bottom line is 
> that there's a lot of cljs compile errors, for varying permutations that I've 
> attempted (rx, clj->js, etc). Is there a wat to pass raw data to a given 
> component (works using raw HTML)? 
> 
> 
> 
>          [:div {:horizontal true :layout true}
> 
> 
>           #_[:sortable-table 
>            [:sortable-column "debit"] 
>            [:sortable-column "credit"] 
>            [[100 ""]
>             ["" 100]]] 
> 
> 
>           #_[:sortable-table {:columns (clj->js 
> ["fruit","alice","bill","casey"])
>                             :data (clj->js [ "apple", 4, 10, 2])}]
>                             
>           [:sortable-table
>            (rx {:fruit "apple" :alice 4 :bill 10 :casey 2})]
>           ]  
> 
> 
> Thanks 
> 
> 
> 
> 
> 
> 
> Tim Washington 
> Interruptsoftware.com 

Hi Tim,

The general place to post questions, issues, etc. for freactive is on github 
issues: https://github.com/aaronc/freactive/issues

I saw you posted something there over the weekend which I'll reply to soon.

So, by default all attribute setters in freactive use element.setAttribute and 
convert the value to a string. Custom attribute setters can be used in the 
develop branch of freactive but I haven't really documented that. What happens 
if you pass JSON strings as attribute values for this?

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