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).
sourceraw docstring

attr-aria-describedbycljs

source

attr-aria-labelcljs

source

attr-auto-swapcljs

source

attr-autocompletecljs

source

attr-close-on-selectcljs

source

attr-disabledcljs

source

attr-endcljs

source

attr-formatcljs

source

attr-localecljs

source

attr-maxcljs

source

attr-mincljs

source

attr-modecljs

source

attr-namecljs

source

attr-placeholdercljs

source

attr-range-allow-samecljs

source

attr-readonlycljs

source

attr-requiredcljs

source

attr-separatorcljs

source

attr-startcljs

source

attr-valuecljs

source

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.
sourceraw 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).
sourceraw 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.
sourceraw docstring

date->isocljs

(date->iso d)

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

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

days-in-monthcljs

(days-in-month d)

Number of days in d's UTC month.

Number of days in d's UTC month.
sourceraw 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.
sourceraw docstring

event-changecljs

source

event-change-requestcljs

source

event-inputcljs

source

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.
sourceraw 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).
sourceraw 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.
sourceraw docstring

max-datecljs

(max-date a b)
source

min-datecljs

(min-date a b)
source

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}.
sourceraw docstring

normalize-strcljs

(normalize-str s)

Trim and return nil if empty.

Trim and return nil if empty.
sourceraw docstring

observed-attributescljs

source

pad2cljs

(pad2 n)

Zero-pad integer n to 2 digits.

Zero-pad integer n to 2 digits.
sourceraw 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".
sourceraw 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}.
sourceraw 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}.
sourceraw docstring

parse-formatcljs

(parse-format s)

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

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

parse-intcljs

(parse-int s default-v)

Parse integer string, returning default-v on failure.

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

parse-modecljs

(parse-mode s)

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

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

property-apicljs

source

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.
sourceraw docstring

tag-namecljs

source

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.
sourceraw 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