Class idx.form.DateTextBox


Extends idx.form._CompositeMixin, idx.form._CssStateMixin, idx.form._DateTimeTextBox.
A validating, serializable, range-bound date text box with a drop down calendar
Defined in: <idx\form\DateTextBox.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
<static>  
idx.form.DateTextBox._setFieldWidthAttr 
Set the width of field with a hidden validation icon.
<static>  
idx.form.DateTextBox.baseClass 
base class of this oneui widget
<static>  
idx.form.DateTextBox.labelAlignment 
Layout of the label and the field, "horizontal" or "vertical", implemented according to IBM One UI(tm) Field & Label Alignment
<static>  
idx.form.DateTextBox.oneuiBaseClass 
base class of dijit widget
<static>  
idx.form.DateTextBox.required 
Specifies if the value is required.
<static>  
idx.form.DateTextBox.templatePath 
Set the template path for the desktop template in case the template was not loaded initially, but is later needed due to an instance being constructed with "desktop" platform.
Fields borrowed from class idx.form._CompositeMixin:
fieldWidth, help, hint, hintPosition, label, labelWidth, unit

Method Summary

Method Attributes Method Name and Description
<static>  
idx.form.DateTextBox._setLabelWidthAttr(width)
Set the width of label, the width is from the start of label to the start of the field.
<static>  
idx.form.DateTextBox.closeDropDown()
<static>  
idx.form.DateTextBox.displayMessage(message, force)
Overridable method to display validation errors/hints
<static>  
idx.form.DateTextBox.isValid(f)
Returns if both date and time are valid.
<static>  
idx.form.DateTextBox.onChange(e)
<static>  
idx.form.DateTextBox.openDropDown(callback)
<static>  
idx.form.DateTextBox.postCreate()
Sets up event handlers.
<static>  
idx.form.DateTextBox.postMixInProperties()
<static>  
idx.form.DateTextBox.refocus()
Provides a method to return focus to the widget without triggering revalidation.
<static>  
idx.form.DateTextBox.reset()
Resets date and time text boxes.
<static>  
idx.form.DateTextBox.validate(f)
Validates both date and time values.
Methods borrowed from class idx.form._CompositeMixin:
_setHintAttr, _setLabelAlignmentAttr, _setLabelAttr, _setRequiredAttr, _setUnitAttr, resize, validateAndFocus

Constructor Detail

idx.form.DateTextBox()

Field Detail

<static> idx.form.DateTextBox._setFieldWidthAttr

Set the width of field with a hidden validation icon.
Defined in: <idx\form\DateTimeTextBox.js>.

<static> idx.form.DateTextBox.baseClass

base class of this oneui widget

<static> {String} idx.form.DateTextBox.labelAlignment

Layout of the label and the field, "horizontal" or "vertical", implemented according to IBM One UI(tm) Field & Label Alignment
Defined in: <idx\form\DateTimeTextBox.js>.
Default Value:
"horizontal"

<static> idx.form.DateTextBox.oneuiBaseClass

base class of dijit widget

<static> idx.form.DateTextBox.required

Specifies if the value is required.
Defined in: <idx\form\DateTimeTextBox.js>.

<static> idx.form.DateTextBox.templatePath

Set the template path for the desktop template in case the template was not loaded initially, but is later needed due to an instance being constructed with "desktop" platform.

Method Detail

<static> idx.form.DateTextBox._setLabelWidthAttr(width)

Set the width of label, the width is from the start of label to the start of the field.
Defined in: <idx\form\DateTimeTextBox.js>.
Parameters:
{string | number} width
Unit of "pt","em","px" will be normalized to "px", and "px" by default for numeral value.

<static> idx.form.DateTextBox.closeDropDown()


<static> idx.form.DateTextBox.displayMessage(message, force)

Overridable method to display validation errors/hints
Parameters:
message
force

<static> {Boolean} idx.form.DateTextBox.isValid(f)

Returns if both date and time are valid.
Defined in: <idx\form\DateTimeTextBox.js>.
Parameters:
{Boolean} f
Returns:
{Boolean}

<static> idx.form.DateTextBox.onChange(e)


Defined in: <idx\form\DateTimeTextBox.js>.
Parameters:
e

<static> idx.form.DateTextBox.openDropDown(callback)

Parameters:
callback

<static> idx.form.DateTextBox.postCreate()

Sets up event handlers.
Defined in: <idx\form\DateTimeTextBox.js>.

<static> idx.form.DateTextBox.postMixInProperties()


Defined in: <idx\form\DateTimeTextBox.js>.

<static> idx.form.DateTextBox.refocus()

Provides a method to return focus to the widget without triggering revalidation. This is typically called when the validation tooltip is closed.

<static> idx.form.DateTextBox.reset()

Resets date and time text boxes.
Defined in: <idx\form\DateTimeTextBox.js>.

<static> {Boolean} idx.form.DateTextBox.validate(f)

Validates both date and time values.
Defined in: <idx\form\DateTimeTextBox.js>.
Parameters:
{Boolean} f
Returns:
{Boolean}