And apologies for the terse subject line. I accidentally hit "send" before
I could edit it.


Tim


On Fri, Dec 26, 2014 at 5:04 PM, Timothy Washington <[email protected]>
wrote:
>
> Ok, so I'm playing around with, and liking freactive
> <https://github.com/aaronc/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
> <http://files.stevenskelton.ca/sortable-table/examples/index.html>
> component. This fits into the Polymer <https://www.polymer-project.org/> web
> components <http://webcomponents.org/> approach.
>
> Now, freactive uses a hiccup-like syntax
> <https://github.com/aaronc/freactive#two-minute-tutorial>, where tags are
> defined in vectors. However, this component uses nested vectors to actually 
> pass
> data
> <http://files.stevenskelton.ca/sortable-table/examples/data-formats.html>
> 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 <http://interruptsoftware.com>
>
>

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