Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Field
        DateTime

Class CQ.form.DateTime

Package:CQ.form
Class:DateTime
Extends:CQ.Ext.form.Field
Clientlib:cq.widgets
xtype:datetime
The DateTime lets the user enter a date and a time by combining CQ.Ext.form.DateField and CQ.Ext.form.TimeField.

Config Options

Config Options Defined By
  allowBlank : Boolean
False to validate that at least one option is selected (defaults to true)
DateTime
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  dateConfig : Object
Config for DateField constructor.
DateTime
  dateFormat : String
Format of DateField. (defaults to CQ.Ext.form.DateField.prototype.format)
DateTime
  dateWidth : Number
Width of date field in pixels (defaults to 200)
DateTime
  defaultAutoCreate : String/Object
DomHelper element spec Let superclass to create hidden field instead of textbox. Hidden will be submitted to server
DateTime
  defaultValue : String
Init time or date field if not explicitly filled in (defaults to ""). Set to "now" to specify current date as default.
DateTime
  disableTypeHint : Boolean
True to disable the field @TypeHint
DateTime
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
  dtSeparator : String
Date - Time separator. Used to split date and time (defaults to ' ' (space))
DateTime
  fieldClass : String
The default CSS class for the field (defaults to 'x-form-field')
Field
  focusClass : String
The CSS class to use when the field receives focus (defaults to 'x-form-focus')
Field
  hideTime : Boolean
True to hide the time field
DateTime
  invalidClass : String
The CSS class to use when marking a field invalid (defaults to 'x-form-invalid')
Field
  pageX : Number
The page level x coordinate for this component if contained within a positioning container.
BoxComponent
  pageY : Number
The page level y coordinate for this component if contained within a positioning container.
BoxComponent
  timeConfig : Object
Config for TimeField constructor.
DateTime
  timeFormat : String
Format of TimeField. (defaults to CQ.Ext.form.TimeField.prototype.format)
DateTime
  timeWidth : Number
Width of time field in pixels (defaults to 100)
DateTime
  typeHint : String
The type hint for the server. (defaults to 'Date')
DateTime
  validateOnBlur : Boolean
Whether the field should validate when it loses focus (defaults to true).
Field
  validationDelay : Number
The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)
Field
  validationEvent : String/Boolean
The event that should initiate field validation. Set to false to disable automatic validation (defaults to 'keyup').
Field
  value : Mixed
A value to initialize this field with (defaults to undefined).
Field
  valueAsString : Boolean
Returns string value instead of the date object for getValue(). (defaults to false)
DateTime
  x : Number
The local x (left) coordinate for this component if contained within a positioning container.
BoxComponent
  y : Number
The local y (top) coordinate for this component if contained within a positioning container.
BoxComponent

Public Properties

Property Defined By
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By