EventView/Parts/Guests/FreeBusy.Slot(start, interval, index, state)

Représentation d'un créneau horraire avec l'information de sa disponibilitée ou non

new Slot(start, interval, index, state)

Parameters:
Name Type Description
start string | external:moment | date | number Date de début
interval number Interval entre chaque créneau
index number Index du créneau
state string Etat du créneau

Members

readonly _is_in_working_hour :boolean

Si le créneau est en jour travaillé ou non

readonly end :external:moment

Date de fin du créneau

readonly isFree :boolean

Si le créneau est libre ou non

start :external:moment

Date de début du créneaux

readonly state :Slot.STATES

Etat du créneau

static COLORS :string

Properties:
Name Type Description
"Slot.STATES.unknown" string
"Slot.STATES.free" string
"Slot.STATES.busy" string
"Slot.STATES.tentative" string
"Slot.STATES.oof" string
"Slot.STATES.telework" string
"Slot.STATES.leave" string

static STATES :string

Liste des disponibilités
Properties:
Name Type Description
unknown string
free string
busy string
tentative string
oof string
telework string
leave string

static TEXTES :string

Properties:
Name Type Description
"Slot.STATES.unknown" string
"Slot.STATES.free" string
"Slot.STATES.busy" string
"Slot.STATES.tentative" string
"Slot.STATES.oof" string
"Slot.STATES.telework" string
"Slot.STATES.leave" string

Methods

_generate_different_date(timePart) → {____JsHtml}

Génère le HTML du créneau si la date de début et de fin sont différentes
Parameters:
Name Type Description
timePart TimePartManager
Returns:
____JsHtml

_onclick(timePart)

Action à effectuer lors du clique sur le créneau
Parameters:
Name Type Description
timePart TimePartManager

generate(timePart) → {____JsHtml}

Génère le HTML du créneau
Parameters:
Name Type Description
timePart TimePartManager
Returns:
____JsHtml