(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.
(place-below! below above & {:keys [right? loading?]})
Call with DOM elements to set the position styling of below
such that it
is directly below the edge of above
.
right?
- position below
using its top right corner (instead of top left).
loading?
- when right?
is true, we need to know the width of below
to
position it correctly. This arg tells us that the width might
change when it's done loading, so we just guess instead.
Call with DOM elements to set the position styling of `below` such that it is directly below the edge of `above`. `right?` - position `below` using its top right corner (instead of top left). `loading?` - when `right?` is true, we need to know the width of `below` to position it correctly. This arg tells us that the width might change when it's done loading, so we just guess instead.
(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.
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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close