(distinct-by ex coll)
Returns a lazy sequence of the (ex elements) of coll with duplicates removed
Returns a lazy sequence of the (ex elements) of coll with duplicates removed
(do-validation {:keys [a parent] :as input} value)
validate value and notify parent notifies obj with [:input/error attr error-msg input] when an error is found notifies obj with [:input/validated attr value input] when no error is found
validate value and notify parent notifies obj with [:input/error attr error-msg input] when an error is found notifies obj with [:input/validated attr value input] when no error is found
(dom-select obj attr type options)
(dom-select obj attr type options select-attrs)
(dom-select-grouped obj attr type options)
(dom-select-grouped obj attr type options select-attrs)
(dom-select-multiple obj attr type options)
(dom-select-multiple obj attr type options select-attrs)
(dom-select-options {:keys [input-type group] :as this} options selected-set)
(future-node oref attr dom-key events-key placeholder)
lazily create a dom node when attr first appears on object
lazily create a dom node when attr first appears on object
(get-error {:keys [a parent] :as input} value)
get error message for value (nil if value is accepted)
get error message for value (nil if value is accepted)
(group-select-options items group-key value-key label-fn)
transforms a list of maps into [[group-key [[value-key label] [value-key label]]] ...]
transforms a list of maps into [[group-key [[value-key label] [value-key label]]] ...]
(-decode this string)
decode from string to whatever
decode from string to whatever
(-encode this val)
encode from whatever to string to use in dom
encode from whatever to string to use in dom
(self-destruct timeout)
(self-destruct timeout destruct-fn)
behavior to self destruct objects on click or timeout
useful for notifications and such
Example: (so/define ::my-object :dom (fn ...) :behaviors [(ui/self-destruct 3000)])
this will so/destroy! (the default) the object 3000ms after it entered the dom
behavior to self destruct objects on click or timeout useful for notifications and such Example: (so/define ::my-object :dom (fn ...) :behaviors [(ui/self-destruct 3000)]) this will so/destroy! (the default) the object 3000ms after it entered the dom
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close