new Datetime(elem)
Creates XTL datetime instance.
Parameters:
Name | Type | Description |
---|---|---|
elem |
DOMElement | The element. |
Members
(static) Part :number
Properties:
Name | Type | Description |
---|---|---|
BOTH |
number | |
DATE |
number | |
TIME |
number |
The format conversion option.
Type:
- number
$dom :jQuery
The DOM element of component.
Type:
(nullable) format :string
The ICU formatting string.
Type:
(nullable) uiformat :string
The ICU formatting string for UI.
Type:
Methods
(static) convert(icu, opt) → {string}
Converts ICU formatting to datetimepicker formatting string.
Parameters:
Name | Type | Description |
---|---|---|
icu |
string | The ICU formatting string. |
opt |
nge.xtl.Datetime.Part | The conversion option. Specifies which part of formatting string should be returned. The default value is BOTH. |
Returns:
The datetimepicker formatting string.
- Type
- string
(static) init(elem)
Initializes component.
Parameters:
Name | Type | Description |
---|---|---|
elem |
DOMElement | The element. |
(static) libinit()
One-time static initialization.