On Monday, August 10, 2015 at 2:46:45 PM UTC-7, Hari Krishnan wrote:
> Hello all,
>
> I am using Reagent/forms for my UI, and use it for my tables. I also use
> DataTable, after component-did-mount, for getting the sorting & pagination
> etc (may not be the right way, as it is based on JQuery). I will refactor it
> later. But right now, it is enabling me to move fast with with my prototype.
> I need some help in ClojureScript, to get the following:
>
> $('#example').dataTable( {
> "columnDefs": [ {
> "targets": 0,
> "searchable": false
> } ]
> } );
>
>
> $('#example').dataTable( {
> "columnDefs": [
> { "orderable": false, "targets": 0 }
> ]
> } );
>
> Etc.
Hi All,
I kind of figured out. This seems to be working..
(defn home-did-mount []
(.ready (js/$ js/document) (fn []
(.DataTable (js/$ "#example")
#js {:columnDefs [
#js { :orderable
false, :targets 0 }
]
}
))))
Not a perfect one, I think. Any suggestions or examples? much appreciated.
Thanks.
-Hari
--
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.