(constraint-input &
{:keys [model path value typeahead? on-change on-blur type
possible-values disabled op]
:as props})
Returns the appropriate input component for the constraint operator.
Returns the appropriate input component for the constraint operator.
(date-constraint-input {:keys [value on-change on-blur]})
Wraps cljsjs/react-day-picker
for use as constraint input for selecting dates.
Wraps `cljsjs/react-day-picker` for use as constraint input for selecting dates.
(force-close component)
Force a dropdown to close.
Force a dropdown to close.
(has-text? needle haystack)
Return true if a label contains a string
Return true if a label contains a string
Map from constraint string to either :single
or :multi
, corresponding
to whether the constraint is for one or multiple values.
Map from constraint string to either `:single` or `:multi`, corresponding to whether the constraint is for one or multiple values.
(read-day-change date _mods picker)
Convert DayPicker input to the string we use as constraint.
Convert DayPicker input to the string we use as constraint.
(select-constraint-input {:keys [model path value on-blur possible-values
disabled]})
Wraps cljsjs/react-select
for use as constraint input for selecting
one value out of possible-values
.
Wraps `cljsjs/react-select` for use as constraint input for selecting one value out of `possible-values`.
(select-multiple-constraint-input {:keys [model path value on-blur
possible-values disabled]})
Wraps cljsjs/react-select
for use as constraint input for selecting
multiple values out of possible-values
.
Wraps `cljsjs/react-select` for use as constraint input for selecting multiple values out of `possible-values`.
(text-constraint-input)
Freeform textbox for String / Lookup constraints.
Freeform textbox for String / Lookup constraints.
(update-constraint {old-op :op :as constraint}
{new-op :op new-value :value :as new-const})
Takes a constraint map and a map with a new value and/or operation, and updates the original constraint map, making sure to update the value key if switching between single and multi constraints. Also handles type constraints.
Takes a constraint map and a map with a new value and/or operation, and updates the original constraint map, making sure to update the value key if switching between single and multi constraints. Also handles type constraints.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close