Liking cljdoc? Tell your friends :D

svg-lib.calendar.core


add-itemcljs

(add-item item rows columns position-x position-y)

Adds item in calendar

Adds item in calendar
sourceraw docstring

add-items-for-selected-monthcljs

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

append-item-detailscljs

(append-item-details evt-p element event)

Appends item details in svg

Appends item details in svg
sourceraw docstring

calculate-day-xcljs

(calculate-day-x day-cell-width day-number day-name-width)

Calculate day x coordinate

Calculate day x coordinate
sourceraw docstring

calculate-number-of-weekscljs

(calculate-number-of-weeks number-of-weeks-date)

Calculates number of weeks in month

Calculates number of weeks in month
sourceraw docstring

create-day-cellcljs

(create-day-cell day-date ax ay bx by cx cy dx dy)

Creates day cell

Creates day cell
sourceraw docstring

create-itemcljs

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

create-item-formcljs

(create-item-form evt-p)

Generates create item form

Generates create item form
sourceraw docstring

day-name-by-numbercljs

(day-name-by-number day-num)

Returns day name by number

Returns day name by number
sourceraw docstring

delete-itemcljs

(delete-item evt-p)

Deletes item from database

Deletes item from database
sourceraw docstring

display-add-buttoncljs

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

display-day-namecljs

(display-day-name day-cell-width width day-date)

Displays day name

Displays day name
sourceraw docstring

display-day-namescljs

(display-day-names day-cell-width width week-numbers-column-offset)

Displays day names

Displays day names
sourceraw docstring

display-month-namecljs

(display-month-name)

Displays month name

Displays month name
sourceraw docstring

display-week-numberscljs

(display-week-numbers day-names-row-offset
                      height
                      day-cell-height
                      number-of-weeks)

Displays week numbers

Displays week numbers
sourceraw docstring

displayed-datecljs

source

draw-by-datecljs

(draw-by-date & [date-param])

Draws calendar by date

Draws calendar by date
sourceraw docstring

draw-by-date-a-fncljs

source

draw-day-by-date-a-fncljs

source

draw-items-listcljs

(draw-items-list items rows columns)

Drwas items list in rows x columns matrix

Drwas items list in rows x columns matrix
sourceraw docstring

draw-week-by-date-a-fncljs

source

format-date-idcljs

(format-date-id format-date)

Formats date in particular format 'yyyymmdd'

Formats date in particular format 'yyyymmdd'
sourceraw docstring

format-datetime-idcljs

(format-datetime-id format-date)

Formats datetime in particular format 'yyyymmddHHMMssSSS'

Formats datetime in particular format 'yyyymmddHHMMssSSS'
sourceraw docstring

get-db-items-by-month-fncljs

(get-db-items-by-month-fn db-date)

Gets items from database for particular month

Gets items from database for particular month
sourceraw docstring

get-end-datecljs

(get-end-date date)

Returns date at end of the month

Returns date at end of the month
sourceraw docstring

get-hours-and-minutescljs

(get-hours-and-minutes date-param)

Returns string representing hours and minutes

Returns string representing hours and minutes
sourceraw docstring

get-item-by-idcljs

(get-item-by-id _id)

Returns item retrieved from database by _id

Returns item retrieved from database by _id
sourceraw docstring

get-month-namecljs

(get-month-name month-num)

Returns month name

Returns month name
sourceraw docstring

get-month-week-numberscljs

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

get-start-datecljs

(get-start-date date)

Returns date at beginning of month

Returns date at beginning of month
sourceraw docstring

hide-add-buttoncljs

(hide-add-button {date-id :date-id} element event)

Hide add button for day cell

Hide add button for day cell
sourceraw docstring

insert-edit-item-fncljs

(insert-edit-item-fn evt-p element event)

Insert or edit item in database

Insert or edit item in database
sourceraw docstring

is-day-in-first-week-fncljs

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

open-day-view-a-fncljs

source

open-week-view-a-fncljs

source

refresh-onresize-event-a-fncljs

source

refresh-viewcljs

(refresh-view)

Refreshes current view type

Refreshes current view type
sourceraw docstring

remove-item-detailscljs

(remove-item-details evt-p element event)

Removes item details from svg

Removes item details from svg
sourceraw docstring

save-itemcljs

(save-item)

Save item

Save item
sourceraw docstring

set-time-at-day-beginningcljs

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

set-time-at-day-endingcljs

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

switch-to-nextcljs

(switch-to-next)

Switches display to next month, week or day

Switches display to next month, week or day
sourceraw docstring

switch-to-next-day-a-fncljs

source

switch-to-next-monthcljs

(switch-to-next-month)

Switches display to next month

Switches display to next month
sourceraw docstring

switch-to-next-week-a-fncljs

source

switch-to-previouscljs

(switch-to-previous)

Switches display to previous month, week or day

Switches display to previous month, week or day
sourceraw docstring

switch-to-previous-day-a-fncljs

source

switch-to-previous-monthcljs

(switch-to-previous-month)

Switches display to previous month

Switches display to previous month
sourceraw docstring

switch-to-previous-week-a-fncljs

source

timezone-offsetcljs

(timezone-offset date-param)

Returns timezone offset in hours

Returns timezone offset in hours
sourceraw docstring

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

× close