(add-item item rows columns position-x position-y)
Adds item in calendar
Adds item in calendar
(add-items-for-selected-month)
Adds items for selected month
items-by-dates structure:
[[{:start-date (js/Date.) :end-date (js/Date.)}] [{:start-date (js/Date.) :end-date (js/Date.)} {:start-date (js/Date.) :end-date (js/Date.)}] [{:start-date (js/Date.) :end-date (js/Date.)} {:start-date (js/Date.) :end-date (js/Date.)}] ]
Adds items for selected month items-by-dates structure: [[{:start-date (js/Date.) :end-date (js/Date.)}] [{:start-date (js/Date.) :end-date (js/Date.)} {:start-date (js/Date.) :end-date (js/Date.)}] [{:start-date (js/Date.) :end-date (js/Date.)} {:start-date (js/Date.) :end-date (js/Date.)}] ]
(append-item-details evt-p element event)
Appends item details in svg
Appends item details in svg
(calculate-day-x day-cell-width day-number day-name-width)
Calculate day x coordinate
Calculate day x coordinate
(calculate-number-of-weeks number-of-weeks-date)
Calculates number of weeks in month
Calculates number of weeks in month
(create-day-cell day-date ax ay bx by cx cy dx dy)
Creates day cell
Creates day cell
(create-item item
[ax axi]
[ay ayi]
[bx bxi]
[by byi]
[cx cxi]
[cy cyi]
[dx dxi]
[dy dyi]
position-x
position-y)
Creates calendar item
Creates calendar item
(create-item-form evt-p)
Generates create item form
Generates create item form
(day-name-by-number day-num)
Returns day name by number
Returns day name by number
(delete-item evt-p)
Deletes item from database
Deletes item from database
(display-add-button {date-id :date-id dx :dx dy :dy day-date :date})
Display add button for day cell
Display add button for day cell
(display-day-name day-cell-width width day-date)
Displays day name
Displays day name
(display-day-names day-cell-width width week-numbers-column-offset)
Displays day names
Displays day names
(display-month-name)
Displays month name
Displays month name
(display-week-numbers day-names-row-offset
height
day-cell-height
number-of-weeks)
Displays week numbers
Displays week numbers
(draw-by-date & [date-param])
Draws calendar by date
Draws calendar by date
(draw-items-list items rows columns)
Drwas items list in rows x columns matrix
Drwas items list in rows x columns matrix
(format-date-id format-date)
Formats date in particular format 'yyyymmdd'
Formats date in particular format 'yyyymmdd'
(format-datetime-id format-date)
Formats datetime in particular format 'yyyymmddHHMMssSSS'
Formats datetime in particular format 'yyyymmddHHMMssSSS'
(get-db-items-by-month-fn db-date)
Gets items from database for particular month
Gets items from database for particular month
(get-end-date date)
Returns date at end of the month
Returns date at end of the month
(get-hours-and-minutes date-param)
Returns string representing hours and minutes
Returns string representing hours and minutes
(get-item-by-id _id)
Returns item retrieved from database by _id
Returns item retrieved from database by _id
(get-month-name month-num)
Returns month name
Returns month name
(get-month-week-numbers date-param)
Returns first week number for particular month in a year
Returns first week number for particular month in a year
(get-start-date date)
Returns date at beginning of month
Returns date at beginning of month
(hide-add-button {date-id :date-id} element event)
Hide add button for day cell
Hide add button for day cell
(insert-edit-item-fn evt-p element event)
Insert or edit item in database
Insert or edit item in database
(is-day-in-first-week-fn date-param)
Checks if day is in first week of month
Checks if day is in first week of month
(refresh-view)
Refreshes current view type
Refreshes current view type
(remove-item-details evt-p element event)
Removes item details from svg
Removes item details from svg
(set-time-at-day-beginning date-obj)
Sets time of date object at the beginning of day
Sets time of date object at the beginning of day
(set-time-at-day-ending date-obj)
Sets time of date object at the ending of day
Sets time of date object at the ending of day
(switch-to-next)
Switches display to next month, week or day
Switches display to next month, week or day
(switch-to-next-month)
Switches display to next month
Switches display to next month
(switch-to-previous)
Switches display to previous month, week or day
Switches display to previous month, week or day
(switch-to-previous-month)
Switches display to previous month
Switches display to previous month
(timezone-offset date-param)
Returns timezone offset in hours
Returns timezone offset in hours
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close