This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-20
Channels
- # beginners (106)
- # boot (25)
- # cider (2)
- # cljs-dev (100)
- # cljsjs (1)
- # cljsrn (8)
- # clojure (90)
- # clojure-brasil (1)
- # clojure-dev (7)
- # clojure-greece (2)
- # clojure-italy (4)
- # clojure-madison (1)
- # clojure-russia (15)
- # clojure-serbia (15)
- # clojure-spec (13)
- # clojure-uk (32)
- # clojurescript (88)
- # cursive (19)
- # datascript (13)
- # datomic (32)
- # defnpodcast (1)
- # dirac (43)
- # euroclojure (1)
- # graphql (5)
- # hoplon (11)
- # immutant (1)
- # jobs (6)
- # lein-figwheel (2)
- # liberator (2)
- # luminus (14)
- # lumo (22)
- # off-topic (12)
- # om (9)
- # onyx (49)
- # parinfer (45)
- # precept (4)
- # protorepl (2)
- # reagent (14)
- # ring-swagger (3)
- # sql (1)
- # test-check (58)
- # timbre (3)
- # untangled (86)
when i have (input :type "file" :multiple true ) how do i access the files selected via a :change function ?
@jouerose try :change #(prn %1 %2 ) and see what that gives you
@flyboarder it has printed a lot of things 🙂
@flyboarder this is the beginning of it: #js {:originalEvent #object[Event [object Event]], :type change, :isDefaultPrevented #object[returnFalse "function returnFalse() { return false; }"], :timeStamp 19470268.76, :jQuery191042257022931828647 true, :which nil, :view nil, :target #<Element: INPUT>, :shiftKey nil, :relatedTarget nil, :metaKey false, :eventPhase 2, :currentTarget #<Element: INPUT>, :ctrlKey nil, :cancelable false, :bubbles true, :altKey nil, :delegateTarget #<Element: INPUT>, :handleObj #js {:type change, :origType change, :data nil,
@jouerose you see how there is an original event, that contains a .target.files
property, which is a file list.
@thedavidmeister runtime specs for ya 😉 ^^^
both attribute providers are fully spec’ed
[hoplon "7.1.0-SNAPSHOT"]