Liking cljdoc? Tell your friends :D

re-com.dropdown


anchorcljs

(anchor {:keys [label placeholder style class attr transition!]})
source

auto-completecljs

(auto-complete & {:keys [choices text sel-start sel-end ins]})

Return text/selection map after insertion in place of selection & completion

Return text/selection map after insertion in place of selection & completion
sourceraw docstring

backdropcljs

(backdrop {:keys [attr class style state transition!]})
source

body-wrappercljs

(body-wrapper {:keys [state theme anchor-ref body-ref anchor-position
                      direction]}
              &
              children)
source

capitalize-first-lettercljs

(capitalize-first-letter text)

Capitalize the first letter leaving the rest as is

Capitalize the first letter leaving the rest as is
sourceraw docstring

click-outside?cljs

(click-outside? element event)
source

(dropdown & {:keys [model] :or {model (reagent/atom nil)}})

A clickable anchor above an openable, floating body.

A clickable anchor above an openable, floating body.
sourceraw docstring

source

source

source

filter-choices-by-keywordcljs

(filter-choices-by-keyword choices keyword value)

Filter a list of choices extra data within the choices vector

Filter a list of choices extra data within the choices vector
sourceraw docstring

handle-free-text-insertioncljs

(handle-free-text-insertion event
                            ins
                            auto-complete?
                            capitalize?
                            choices
                            internal-model
                            free-text-sel-range
                            free-text-change)
source

indicatorcljs

(indicator {:keys [state style]})
source

make-choice-itemcljs

(make-choice-item id-fn render-fn callback internal-model opt)
source

nearestcljs

(nearest x a b)
source

optimize-position!cljs

(optimize-position! anchor-el body-el & {:keys [direction]})

Returns an [x y] position for body, relative to anchor. Considers two possible vertical positions - above or below the anchor. If one vertical position clips outside the viewport, chooses the opposite position. If both vertical positions clip, picks the vertical position whose midpoint is nearest the viewport's midpoint. Calculates a left-justified horizontal position, constrained by the viewport width and the right edge of the anchor.

In other words, the body slides left & right within the anchor width, and blinks up & down, to find the least cut-off position.

Returns an [x y] position for body, relative to anchor.
Considers two possible vertical positions - above or below the anchor.
If one vertical position clips outside the viewport, chooses the opposite position.
If both vertical positions clip, picks the vertical position whose midpoint
is nearest the viewport's midpoint.
Calculates a left-justified horizontal position, constrained by the viewport width
and the right edge of the anchor.

In other words, the body slides left & right within the anchor width,
and blinks up & down, to find the least cut-off position.
sourceraw docstring

show-selected-itemcljs

(show-selected-item node)
source

single-dropdowncljs

(single-dropdown &
                 {:keys [choices model regex-filter? debounce-delay just-drop?]
                  :or {debounce-delay 250}
                  :as args})

Render a single dropdown component which emulates the bootstrap-choosen style. Sample choices object: [{:id "AU" :label "Australia" :group "Group 1"} {:id "US" :label "United States" :group "Group 1"} {:id "GB" :label "United Kingdom" :group "Group 1"} {:id "AF" :label "Afghanistan" :group "Group 2"}]

Render a single dropdown component which emulates the bootstrap-choosen style. Sample choices object:
[{:id "AU" :label "Australia"      :group "Group 1"}
 {:id "US" :label "United States"  :group "Group 1"}
 {:id "GB" :label "United Kingdom" :group "Group 1"}
 {:id "AF" :label "Afghanistan"    :group "Group 2"}]
sourceraw docstring

single-dropdown-args-desccljs

source

single-dropdown-partscljs

source

single-dropdown-parts-desccljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close