Liking cljdoc? Tell your friends :D

com.fulcrologic.rad.picker-options

Utilities to help support entity/enumeration pickers in the UI, along with loading/normalizing/caching the options.

Pickers are commonly used for things like autocomplete fields and (cascading) dropdowns where the list of options must be loaded dynamically due to some event in the UI.

Utilities to help support entity/enumeration pickers in the UI, along with loading/normalizing/caching the options.

Pickers are commonly used for things like autocomplete fields and (cascading) dropdowns where the list of options must be loaded dynamically
due to some event in the UI.
raw docstring

cache-keyclj/s

A keyword or (fn [cls props] keyword?) under which the normalized picker options will be saved.

A keyword or `(fn [cls props] keyword?)` under which the normalized picker options will be saved.
sourceraw docstring

cache-time-msclj/s

How long the options can be cached. This allows multiple uses of the same options load to be used over time. Caching is done under ::cache-key.

How long the options can be cached. This allows multiple uses of the same options load to be used over time. Caching
is done under ::cache-key.
sourceraw docstring

load-options!clj/s

(load-options! app-ish form-class props attribute)
(load-options! app-ish
               form-class
               props
               {:com.fulcrologic.rad.attributes/keys [qualified-key]
                :as attribute}
               load-options)

Load picker options into the options cache for a form field.

Load picker options into the options cache for a form field.
sourceraw docstring

load-picker-options!clj/s

(load-picker-options! app-ish component-class props picker-options)
(load-picker-options! app-ish component-class props picker-options load-options)

Load picker options based on raw picker options

Load picker options based on raw picker options
sourceraw docstring

options-xformclj/s

A (fn [normalized-result raw-result] [{:text t :value v} ...]). This generates the options to show the user. If not provided then it is assumed that the query result itself is a vector of these text/value pair maps.

A `(fn [normalized-result raw-result] [{:text t :value v} ...])`. This generates the options to show the user. If
not provided then it is assumed that the query result itself is a vector of these text/value pair maps.
sourceraw docstring

query-componentclj/s

A Fulcro defsc with the subquery to use for pulling options.

A Fulcro defsc with the subquery to use for pulling options.
sourceraw docstring

query-keyclj/s

The top-level query keyword to use when pulling the options.

The top-level query keyword to use when pulling the options.
sourceraw docstring

query-parametersclj/s

A map of query parameters to include in the option load, or a (fn [app cls props] map?) that can generate those props on demand.

A map of query parameters to include in the option load, or a `(fn [app cls props] map?)` that can generate those
props on demand.
sourceraw docstring

remoteclj/s

The keyword name of the remote that the picker options are loaded from. Defaults to :remote.

The keyword name of the remote that the picker options are loaded from. Defaults to :remote.
sourceraw docstring

transform-optionsclj/s

INTERNAL MUTATION. Do not use.

INTERNAL MUTATION. Do not use.
sourceraw docstring

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

× close