Liking cljdoc? Tell your friends :D

app.components.x-date-picker.model


add-dayscljs

(add-days d n)

Return a new Date that is d + n days (UTC).

Return a new Date that is d + n days (UTC).
raw docstring

attr-aria-describedbycljs


attr-aria-labelcljs


attr-auto-swapcljs


attr-autocompletecljs


attr-close-on-selectcljs


attr-disabledcljs


attr-endcljs


attr-formatcljs


attr-localecljs


attr-maxcljs


attr-mincljs


attr-modecljs


attr-namecljs


attr-placeholdercljs


attr-range-allow-samecljs


attr-readonlycljs


attr-requiredcljs


attr-separatorcljs


attr-startcljs


attr-valuecljs


canonicalizecljs

(canonicalize {:keys [mode value start end min max format locale separator
                      auto-swap? range-allow-same-day?]})

Build stable model from raw attr strings.

Build stable model from raw attr strings.
raw docstring

clamp-to-rangecljs

(clamp-to-range d min-d max-d)

Clamp d to [min-d, max-d]. Either bound may be nil (unbounded).

Clamp d to [min-d, max-d]. Either bound may be nil (unbounded).
raw docstring

compare-datecljs

(compare-date a b)

Returns -1, 0, or 1 comparing two UTC dates by day only.

Returns -1, 0, or 1 comparing two UTC dates by day only.
raw docstring

date->isocljs

(date->iso d)

JS Date → "YYYY-MM-DD" using UTC fields.

JS Date → "YYYY-MM-DD" using UTC fields.
raw docstring

days-in-monthcljs

(days-in-month d)

Number of days in d's UTC month.

Number of days in d's UTC month.
raw docstring

display-valuecljs

(display-value canon {:keys [format locale]})

Compute the input display string from canonicalized state.

Compute the input display string from canonicalized state.
raw docstring

event-changecljs


event-change-requestcljs


event-inputcljs


format-datecljs

(format-date d {:keys [format locale]})

Format a JS Date for display. Uses Intl.DateTimeFormat when available.

Format a JS Date for display.  Uses Intl.DateTimeFormat when available.
raw docstring

in-range?cljs

(in-range? d a b)

True if d is between a and b inclusive (either order).

True if d is between a and b inclusive (either order).
raw docstring

iso->datecljs

(iso->date s)

"YYYY-MM-DD" → JS Date at UTC midnight, or nil on parse failure.

"YYYY-MM-DD" → JS Date at UTC midnight, or nil on parse failure.
raw docstring

max-datecljs

(max-date a b)

min-datecljs

(min-date a b)

month-gridcljs

(month-grid d)

Return a 42-item vector for a calendar view of the month containing d. Each entry is {:date jsDate :in-month? boolean}.

Return a 42-item vector for a calendar view of the month containing d.
Each entry is {:date jsDate :in-month? boolean}.
raw docstring

normalize-strcljs

(normalize-str s)

Trim and return nil if empty.

Trim and return nil if empty.
raw docstring

observed-attributescljs


pad2cljs

(pad2 n)

Zero-pad integer n to 2 digits.

Zero-pad integer n to 2 digits.
raw docstring

parse-bool-attrcljs

(parse-bool-attr s)

Returns true if attr string is non-nil and not "false".

Returns true if attr string is non-nil and not "false".
raw docstring

parse-display->rangecljs

(parse-display->range display {:keys [separator]})

Try to parse a display string that may contain a separator. Returns {:ok? boolean :start js/Date|nil :end js/Date|nil}.

Try to parse a display string that may contain a separator.
Returns {:ok? boolean :start js/Date|nil :end js/Date|nil}.
raw docstring

parse-display->singlecljs

(parse-display->single display)

Try to parse a display string to a single date. Accepts ISO "YYYY-MM-DD". Returns {:ok? boolean :date js/Date|nil}.

Try to parse a display string to a single date.
Accepts ISO "YYYY-MM-DD". Returns {:ok? boolean :date js/Date|nil}.
raw docstring

parse-formatcljs

(parse-format s)

Returns :iso or :localized. Default is :iso.

Returns :iso or :localized.  Default is :iso.
raw docstring

parse-intcljs

(parse-int s default-v)

Parse integer string, returning default-v on failure.

Parse integer string, returning default-v on failure.
raw docstring

parse-modecljs

(parse-mode s)

Returns :single or :range. Default is :single.

Returns :single or :range.  Default is :single.
raw docstring

property-apicljs


start-of-monthcljs

(start-of-month d)

Return UTC midnight on the 1st of d's month.

Return UTC midnight on the 1st of d's month.
raw docstring

tag-namecljs


weekday-0-suncljs

(weekday-0-sun d)

Day of week 0=Sunday..6=Saturday for d's UTC date.

Day of week 0=Sunday..6=Saturday for d's UTC date.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close