Liking cljdoc? Tell your friends :D

untangled.ui.calendar


cal->Datecljs

(cal->Date {:keys [calendar/year calendar/month calendar/day]})

Convert the calendar's currently selected date to a Date object.

Convert the calendar's currently selected date to a Date object.
sourceraw docstring

calendarcljs

(calendar id)
(calendar id starting-js-date)

Create a calendar with the given ID and date (as a JS date object). Note that label will be passed through the untangled i18n tr-unsafe, so you should do something to ensure that label is extracted if you are supporting more than one locale.

Create a calendar with the given ID and date (as a JS date object). Note that label will be passed through the untangled
i18n `tr-unsafe`, so you should do something to ensure that label is extracted if you are supporting more than one locale.
sourceraw docstring

calendar-identcljs

(calendar-ident id)

Returns the Om ident for a calendar with the given id.

Returns the Om ident for a calendar with the given id.
sourceraw docstring

close-all-overlays-implcljs

(close-all-overlays-impl state-map)

Returns an updated app state with the all calendar overlays closed application-wide.

Returns an updated app state with the all calendar overlays closed application-wide.
sourceraw docstring

days-of-week-labelscljs

source

displayed-datecljs

(displayed-date calendar)

Give back a calendar's current day setting as an i18n string for the current untangled.i18n locale.

Give back a calendar's current day setting as an i18n string for the current untangled.i18n locale.
sourceraw docstring

ms-in-a-daycljs

source

next-month-implcljs

(next-month-impl calendar)

Returns an updated calendar for the next month.

Returns an updated calendar for the next month.
sourceraw docstring

next-year-implcljs

(next-year-impl calendar)

Returns an updated calendar with the year moved forward by one.

Returns an updated calendar with the year moved forward by one.
sourceraw docstring

prior-month-implcljs

(prior-month-impl calendar)

Returns an updated calendar for the prior month.

Returns an updated calendar for the prior month.
sourceraw docstring

prior-year-implcljs

(prior-year-impl calendar)

Returns an updated calendar with the year backed up by one.

Returns an updated calendar with the year backed up by one.
sourceraw docstring

set-date-implcljs

(set-date-impl calendar new-dt)

Returns an updated calendar set to the given js/Date object

Returns an updated calendar set to the given js/Date object
sourceraw docstring

set-overlay-visible-implcljs

(set-overlay-visible-impl calendar visible?)

Update a calendar to change the overlay visibility.

Update a calendar to change the overlay visibility.
sourceraw docstring

table-namecljs

The Om table name under which calendars are stored.

The Om table name under which calendars are stored.
sourceraw docstring

ui-calendarcljs

(ui-calendar props
             &
             {:keys [onDateSelected refresh overlay-trigger align] :as opts})

Render a calendar.

onDateSelected will be called when a date is selected refresh is a sequence of Om keywords on which to trigger re-render. align Align the overlay such that: :bottom-left-edge (default) The upper left edge of the overlay will align with the bottom left edge of the container. :bottom-right-edge The right edge of the overlay aligns with the lower-right edge of whatever container you put it in. :top-left-edge The upper left edge of the overlay will align with the top left of the container. :top-right-edge The right edge of the overlay aligns with the upper-right edge of whatever container you put it in. overlay-trigger is a function (f [toggle-fn cal-props] ...) that will receive a toggle function and the calendar properties and should render a DOM element with a click handler that invokes toggle-fn to open/close the month-view overlay.

Render a calendar.

`onDateSelected` will be called when a date is selected
`refresh` is a sequence of Om keywords on which to trigger re-render.
`align` Align the overlay such that:
    :bottom-left-edge (default) The upper left edge of the overlay will align with the bottom left edge of the container.
    :bottom-right-edge The right edge of the overlay aligns with the lower-right edge of whatever container you put it in.
    :top-left-edge The upper left edge of the overlay will align with the top left of the container.
    :top-right-edge The right edge of the overlay aligns with the upper-right edge of whatever container you put it in.
`overlay-trigger` is a function `(f [toggle-fn cal-props] ...)` that will receive a toggle function and the calendar
properties and should render a DOM element with a click handler that invokes `toggle-fn`
to open/close the month-view overlay.
sourceraw docstring

ui-calendar-factorycljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close