(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.
(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.
(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.
(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.
(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.
(next-month-impl calendar)
Returns an updated calendar for the next month.
Returns an updated calendar for the next month.
(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.
(prior-month-impl calendar)
Returns an updated calendar for the prior month.
Returns an updated calendar for the prior month.
(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.
(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
(set-overlay-visible-impl calendar visible?)
Update a calendar to change the overlay visibility.
Update a calendar to change the overlay visibility.
The Om table name under which calendars are stored.
The Om table name under which calendars are stored.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close