Class: CUI.DateTime
Defined in: | elements/DateTime/DateTime.coffee |
Inherits: | CUI.Input |
Variables Summary
- defaults =
-
{ button_tooltip: "Open calendar", bc_appendix: ["B.C.", "BC"] }
- start_day =
-
1
- formatTypes =
-
["store", "input", "display", "display_short"]
Variable inherited from CUI.Input
uniqueId changed_marker_css_class defaults
Class Method Summary
- . (void) setLocale(locale)
- . (void) format(datestr_or_moment, type, output_type)
- . (void) display(datestr_or_moment, opts = {})
- . (void) formatMoment(mom, format)
- . (void) formatMomentWithBc(mom, format)
- . (void) toMoment(datestr)
Instance Method Summary
- # (void) initOpts()
- # (void) init()
- # (void) setInputFormat(use_clock = @__input_formats)
- # (void) initDateTimePicker()
- # (void) getTemplate()
- # (void) readOpts()
- # (void) getCurrentFormat()
- # (void) getCurrentFormatDisplay()
- # (void) setCursor(cursor)
- # (void) initFormat(input_format)
- # (void) getTemplateKeyForRender()
- # (void) render()
- # (void) format(_s, type = "display", output_type = null)
- # (void) regexpMatcher()
- # (void) incAMPM(mom)
- # (void) initValue()
- # (void) getValueForDisplay()
- # (void) getValueForInput(v)
- # (void) __checkInput(value)
- # (void) __getInputBlocks(v)
- # (void) storeValue(value, flags = {})
- # (void) getDigiDisplay(format)
- # (void) openPopover(btn)
- # (void) closePopover()
- # (void) updateDateTimePicker()
- # (void) destroy()
- # (void) setClock(mom = @__current_moment)
- # (void) setDigiClock(mom = @__current_moment)
- # (void) setPrintClock(mom = @__current_moment)
- # (void) setTimezone()
- # (void) UNUSEDgetTimezoneData()
- # (void) getTimezoneOpts()
- # (void) parse(stringValue, formats = @__input_formats, use_formats = formats)
- # (void) parseValue(value, output_format = null) like parse, but it used all known input formats to recognize the value
- # (void) __parseFormat(f, s)
- # (void) setMomentFromInput()
- # (void) setInputFromMoment()
- # (void) __clearOverwriteMonthAndYear()
- # (void) drawDate(_mom)
- # (void) updateCalendar(mom, update_current_moment = true)
- # (void) getDateTimeDrawer(mom)
- # (void) drawYearMonthsSelect(mom)
- # (void) drawMonthTable(_mom)
- # (void) markDay()
Inherited Method Summary
Methods inherited from
CUI.Input
#initOpts #readOpts #__checkInputRegexp #setSpellcheck #setPlaceholder #getPlaceholder #__createElement #__setCursor #getValueForStore #storeValue #handleSelectionChange #getElement #getUniqueIdForLabel #markBlock #remove #__focusShadowInput #__unfocusShadowInput #hasShadowFocus #setContentSize #__initContentSize #__setContentSize #checkBlocks #getInputBlocks #__getInputBlocks #__overwriteBlocks #getMarkedBlock #getSelection #setSelection #selectAll #updateSelection #setValue #incNumberBounds #__removeContentSize #__removeShadowInput #preventInvalidInput #__initShadowInput #__shadowInput #checkValue #render #getTemplateKeyForRender #isRequired #updateInputState #getInputState #leaveInput #enterInput #hasUserInput #checkInput #__checkInputInternal #setInputHint #setInvalidHint #setValidHint #displayValue #getValueForDisplay #getValueForInput #correctValueForInput #getDefaultValue #getValue #enable #disable #focus #getCursorBlocks #findBlock #initCursor #showCursor #checkSelectionChange #getRangeFromCursor #moveCursor #destroy #getGroup #isResizable #maximizeAddClasses #initTemplate #getTemplate #init #debug #reload #getNameOpt #registerLabel #getLabel #setForm #getFormDepth #setFormDepth #getFormPath #getForm #getOtherField #getRootForm #__initDisabled #isDisabled #isHidden #isShown #updateData #setData #setDataOnOthers #hide #show #isRendered #start #getAllDataFields #getDataFields #renderAsBlock #isDataField #callOnOthers #getData #hasData #hasUserData #getArrayFromOpt #getName #getInitValue #getLastValue #reset #undo #redo #goto #initData #initValue #setCheckChangedValue #getCheckChangedValue #getUndo #triggerDataChanged #isChanged #checkChanged #getChangedMarker .new #registerTemplate #getDOMElementClasses #registerDOMElement #getElementForLayer #unregisterDOMElement #__assertDOMElement #__assertTemplateElement #addClass #setAria #removeClass #hasClass #isDestroyed #empty #replace #append #prepend #text #get #getFlexHandle #getElementClass #getUniqueId #getOpts #getOpt #hasOpt #getSetOpt #hasSetOpt #copy #mergeOpt #removeOpt #addOpt #addOpts #mergeOpts #__getCheckMap #readOptsFromAttr #proxy .getOptKeys
Class Method Details
.
(void)
setLocale(locale)
.
(void)
format(datestr_or_moment, type, output_type)
.
(void)
display(datestr_or_moment, opts = {})
.
(void)
formatMoment(mom, format)
.
(void)
formatMomentWithBc(mom, format)
.
(void)
toMoment(datestr)
Constructor Details
#
(void)
constructor(opts = {})
Instance Method Details
#
(void)
initOpts()
#
(void)
init()
#
(void)
setInputFormat(use_clock = @__input_formats)
#
(void)
initDateTimePicker()
#
(void)
getTemplate()
#
(void)
readOpts()
#
(void)
getCurrentFormat()
#
(void)
getCurrentFormatDisplay()
#
(void)
setCursor(cursor)
#
(void)
initFormat(input_format)
#
(void)
getTemplateKeyForRender()
#
(void)
render()
#
(void)
format(_s, type = "display", output_type = null)
#
(void)
regexpMatcher()
#
(void)
incAMPM(mom)
#
(void)
initValue()
#
(void)
getValueForDisplay()
#
(void)
getValueForInput(v)
#
(void)
__checkInput(value)
#
(void)
__getInputBlocks(v)
#
(void)
storeValue(value, flags = {})
#
(void)
getDigiDisplay(format)
#
(void)
openPopover(btn)
#
(void)
closePopover()
#
(void)
updateDateTimePicker()
#
(void)
destroy()
#
(void)
setClock(mom = @__current_moment)
#
(void)
setDigiClock(mom = @__current_moment)
#
(void)
setPrintClock(mom = @__current_moment)
#
(void)
setTimezone()
#
(void)
UNUSEDgetTimezoneData()
#
(void)
getTimezoneOpts()
#
(void)
parse(stringValue, formats = @__input_formats, use_formats = formats)
#
(void)
parseValue(value, output_format = null)
like parse, but it used all known input formats to recognize the value
#
(void)
__parseFormat(f, s)
#
(void)
setMomentFromInput()
#
(void)
setInputFromMoment()
#
(void)
__clearOverwriteMonthAndYear()
#
(void)
drawDate(_mom)
#
(void)
updateCalendar(mom, update_current_moment = true)
#
(void)
getDateTimeDrawer(mom)
#
(void)
drawYearMonthsSelect(mom)
#
(void)
drawMonthTable(_mom)
#
(void)
markDay()