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.
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.
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.
(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.
(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
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.
A Fulcro defsc with the subquery to use for pulling options.
A Fulcro defsc with the subquery to use for pulling options.
The top-level query keyword to use when pulling the options.
The top-level query keyword to use when pulling the options.
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.
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.
INTERNAL MUTATION. Do not use.
INTERNAL MUTATION. Do not use.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close