HOURMIN_ELEMENT

src/datechooser.ts
HOURMIN_ELEMENT

Type: string

DATETIME_ELEMENT

src/datechooser.ts
DATETIME_ELEMENT

Type: string

TIMERANGE_ELEMENT

src/datechooser.ts
TIMERANGE_ELEMENT

Type: string

hourMinRegEx
HOUR_MIN_24

Type: string

START_LABEL

Type: string

DEFAULT_START_LABEL

src/datechooser.ts
DEFAULT_START_LABEL

Type: string

END_LABEL

Type: string

DEFAULT_END_LABEL

src/datechooser.ts
DEFAULT_END_LABEL

Type: string

DUR_LABEL

Type: string

DEFAULT_DUR_LABEL

src/datechooser.ts
DEFAULT_DUR_LABEL

Type: string

HourMinChooser

src/datechooser.ts

Hour and Minute chooser. Use as ''

new HourMinChooser()

Extends HTMLElement

Instance Members
_time
updateCallback
popupDiv
showHide()
hide()
show()
time
time
_internalSetTime(dt)

DateTimeChooser

src/datechooser.ts

Date and Time chooser using native date chooser and the above HourMinChooser for the hour and minute of time.

new DateTimeChooser(time: DateTime?)

Extends HTMLElement

Parameters
time (DateTime?)
Static Members
observedAttributes
Instance Members
_time
updateCallback
updateTime(newTime)
timeModified()
time
time

START_CHANGED

src/datechooser.ts
START_CHANGED

Type: string

END_CHANGED

Type: string

DURATION_CHANGED

src/datechooser.ts
DURATION_CHANGED

Type: string

TimeRangeChooser

src/datechooser.ts

Combination of two DateTimeChoosers to specify a start and end time.

new TimeRangeChooser(div: any, updateCallback: any)

Extends HTMLElement

Parameters
div (any) selected div to append chooser to
updateCallback (any) optional callback function when time is selected/changed
Static Members
observedAttributes
Instance Members
updateCallback
_duration
startChooser
endChooser
_mostRecentChanged
toInterval()
getTimeRange()
startLabel
endLabel
durationLabel
start
start
end
end
duration
duration
_updateDuration(duration)
resyncValues(curChanged)

extractDuration

src/datechooser.ts

extracts duration from either string as ISO or number as seconds.

extractDuration(value: string): Duration
Parameters
value (string) ISO string or number
Returns
Duration: duration