This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-27
Channels
- # admin-announcements (1)
- # beginners (1)
- # boot (37)
- # cbus (1)
- # cider (44)
- # cljs-dev (16)
- # cljsjs (2)
- # cljsrn (18)
- # clojure (205)
- # clojure-belgium (6)
- # clojure-china (1)
- # clojure-india (1)
- # clojure-russia (24)
- # clojure-spec (21)
- # clojure-turkiye (1)
- # clojure-uk (72)
- # clojurescript (91)
- # core-async (4)
- # cursive (12)
- # data-science (2)
- # datascript (2)
- # datomic (12)
- # emacs (6)
- # flambo (7)
- # funcool (12)
- # hoplon (24)
- # incanter (2)
- # jobs-discuss (29)
- # keechma (2)
- # lein-figwheel (2)
- # leiningen (2)
- # mount (13)
- # nyc (2)
- # om (76)
- # om-next (1)
- # onyx (38)
- # other-languages (4)
- # planck (40)
- # re-frame (33)
- # reagent (101)
- # ring-swagger (5)
- # slack-help (1)
- # untangled (7)
- # yada (14)
What is wrong with this?
(defmethod do! :selectize [elem _ opts]
(.selectize (js/jQuery elem) (clj->js opts)))
(defelem select-field [{:keys [cell small] :as attrs} data]
(div :selectize
(select)
{:options [(clj->js {"item" "1"})
(clj->js {"item" "2"})]
:valueField "item"
:labelField "item"}))
it is supposed to be used this way (.selectize (js/jQuery (.getElementById js/document "#dropdown")))
but I don't want to target the element by id. I want smth more general....
@leontalbot: https://github.com/hoplon/hoplon/blob/03bced0c869e841c9d966ba7668c54bd2c1d43a4/contrib/jquery.selectize/src/hoplon/jquery/selectize.cljs.hl might be helpful
it's a selectize wrapper from the old hoplon-contrib i made
Thanks!!!
Trying..
it might need tweaking with new hoplon
but the approach i think is still what you want
with-let
a select
element, and in a with-init!
initialize selectize on it
TIL: the ISet protocol only defines one function: disjoin.
interesting, i guess because icollection and ilookup do the other stuff
anyone messed with capsule? http://www.capsule.io/
for our big project was much faster to build than uberjar (no need to unpack all the dependencies)
yeah, i'm really attracted to the idea of it
finding with standalone jar deploys that a light container would be nice
but many of the things i ship aren't web apps so tomcat etc don't make sense
Could we imagine a boot task to create a capsule?
seems easy? ™️