Name | Type | Default | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
animationType | String | 'slide' | ||||||||
Sets or gets the type of the animation. Possible Values:
Code example
Set the
Get the
Try it: animationType is set to 'fade'
|
||||||||||
allowNullDate | Boolean | true | ||||||||
Determines whether Null is allowed as a value. Code example
Set the
Get the
Try it: allowNullDate is set to false
|
||||||||||
allowKeyboardDelete | Boolean | true | ||||||||
Determines whether Code example
Set the
Get the
|
||||||||||
clearString | String | 'Clear' | ||||||||
Sets or gets the 'Clear' string displayed when the 'showFooter' property is true. Code example
Set the
Get the
Try it: clearString is set to 'Clear'
|
||||||||||
culture | String | default | ||||||||
Sets or gets the jqxDateTimeInput's culture. The culture settings are contained within a file with the language code appended to the name, e.g. jquery.glob.de-DE.js for German. To set the culture, you need to include the jquery.glob.de-DE.js and set the culture property to the culture's name, e.g. 'de-DE'. Code example
Set the
Get the
Try it: culture is set to 'de-DE'
|
||||||||||
closeDelay | Number | 400 | ||||||||
Specifies the animation duration of the popup calendar when it is going to be hidden. Code example
Set the
Get the
Try it: closeDelay is set to 2000
|
||||||||||
closeCalendarAfterSelection | Boolean | true | ||||||||
Sets or gets whether or not the popup calendar must be closed after selection. Code example
Set the
Get the
|
||||||||||
dropDownHorizontalAlignment | String | 'left' | ||||||||
Sets the DropDown's alignment. Possible Values:
Code example
Get the
|
||||||||||
dropDownVerticalAlignment | String | 'bottom' | ||||||||
Sets or gets the DropDown's alignment. Possible Values:
Code example
Get the
|
||||||||||
disabled | Boolean | false | ||||||||
Determines whether the widget is disabled. Code example
Set the
Get the
Try it: disabled is set to true
|
||||||||||
enableBrowserBoundsDetection | Boolean | false | ||||||||
When this property is set to true, the popup calendar may open above the input, if there's not enough space below the DateTimeInput. Code example
Set the
Get the
|
||||||||||
enableAbsoluteSelection | Boolean | false | ||||||||
This setting enables the user to select only one symbol at a time when typing into the text input field. Code example
Set the
Get the
|
||||||||||
editMode | String | 'default'. | ||||||||
Sets the edit mode of the component. Possible values: 'default', 'full'. In 'default' mode, value is always displayed and is validated on each key press. In 'full' mode, when the input is empty (value is null), its value can be freely edited. On blur or when Enter is pressed, the value is validated and if it is valid, editing becomes the same as in editMode: "default". If the value is once again set to null (by pressing Delete, Ctrl + A and Delete, or "Clear"), full edit can again be entered. Full edit also takes into consideration the value of the "yearCutoff" property. This means that if yearCutoff is 1926 and 01/01/20 is entered, 20 will be interpreted as 2020; if 01/01/54 is entered, 54 will be interpreted as 1954. Code example
Set the
Get the
|
||||||||||
firstDayOfWeek | Number | 0 | ||||||||
Sets or gets which day to display in the first day column. By default the calendar displays 'Sunday' as first day. Code example
Set the
Get the
Try it: firstDayOfWeek is set to 3
|
||||||||||
formatString | String | dd/MM/yyyy | ||||||||
Sets or gets the date time input format of the date. Possible Values:
Code example
Set the
Get the
Try it: formatString is set to "dddd"
|
||||||||||
height | Number/String | null | ||||||||
Sets or gets the height of the jqxDateTimeInput widget. Code example
Set the
Get the
Try it: height is set to "25px"
|
||||||||||
min | Date | Date(1900, 1, 1) | ||||||||
Sets or gets the jqxDateTimeInput's minumun date. Code example
Set the
Get the
Try it: min is set to (2013, 0, 1)
|
||||||||||
max | Date | Date(2100, 1, 1) | ||||||||
Sets or gets the jqxDateTimeInput's maximum date. Code example
Set the
Get the
Try it: max is set to (2014, 0, 1)
|
||||||||||
openDelay | Number | 350 | ||||||||
Specifies the animation duration of the popup calendar when it is going to be displayed. Code example
Set the
Get the
Try it: openDelay is set to 2000
|
||||||||||
placeHolder | String | "" | ||||||||
Determines the widget's place holder displayed when the widget's value is null. Code example
Set the
Get the
|
||||||||||
popupZIndex | Number | 20000 | ||||||||
Sets or gets the popup's z-index. Code example
Set the
Get the
Try it: popupZIndex is set to 99999
|
||||||||||
rtl | Boolean | false | ||||||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl is set to true
|
||||||||||
readonly | Boolean | false | ||||||||
Code example
Set the
Get the
Try it: readonly is set to true
|
||||||||||
showFooter | Boolean | false | ||||||||
Sets or gets a value indicating whether the dropdown calendar's footer is displayed. Code example
Initialize a jqxDateTimeInput with the
Get the
Try it: showFooter is set to true
|
||||||||||
selectionMode | String | 'default' | ||||||||
Sets or gets the dropdown calendar's selection mode. Possible Values:
Code example
Set the
Get the
Try it: selectionMode is set to 'range'
|
||||||||||
showWeekNumbers | Boolean | true | ||||||||
Sets or gets a value whether the week`s numbers are displayed. Code example
Set the
Get the
Try it: showWeekNumbers is set to false
|
||||||||||
showTimeButton | Boolean | false | ||||||||
Determines whether the time button is visible. Code example
Set the
Get the
Try it: showTimeButton is set to true
|
||||||||||
showCalendarButton | Boolean | true | ||||||||
Determines whether the calendar button is visible. Code example
Set the
Get the
|
||||||||||
showDeleteButton | boolean | false | ||||||||
Determines whether the delete button is visible. Code example:showDeleteButton is set to true
|
||||||||||
template | String | 'default' | ||||||||
Determines the template as an alternative of the default styles. Possible Values:
Code examples
Set the
Get the
Try it: template is set to 'primary'
|
||||||||||
theme | String | '' | ||||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme is set to 'energyblue'
|
||||||||||
textAlign | String | left | ||||||||
Sets or gets the position of the text. Code example
Set the
Get the
Try it: textAlign is set to "right"
|
||||||||||
todayString | String | 'Today' | ||||||||
Sets or gets the 'Today' string displayed in the dropdown Calendar when the 'showFooter' property is true. Code example
Set the
Get the
Try it: todayString is set to 'Today'
|
||||||||||
value | Date | Today's Date | ||||||||
Sets or gets the jqxDateTimeInput value. Code example
Set the
Get the
Try it: value is set to (2013, 0, 1)
|
||||||||||
width | Number/String | null | ||||||||
Sets or gets the width of the jqxDateTimeInput widget. Code example
Set the
Get the
Try it: width is set to "250px"
|
||||||||||
yearCutoff | Number | null | ||||||||
Sets or gets the yearCutoff of the jqxDateTimeInput widget. This property is used with the Full edit mode. This means that if yearCutoff is 1926 and 01/01/20 is entered, 20 will be interpreted as 2020; if 01/01/54 is entered, 54 will be interpreted as 1954. Code example
Set the
Get the
|
||||||||||
Events |
||||||||||
change | Event | |||||||||
This event is triggered on blur when the value is changed . Code example
Bind to the
|
||||||||||
close | Event | |||||||||
This event is triggered when the popup calendar is closed. Code example
Bind to the
|
||||||||||
open | Event | |||||||||
This event is triggered when the popup calendar is opened. Code example
Bind to the
|
||||||||||
textchanged | Event | |||||||||
This event is triggered when the text is changed. Code example
Bind to the
|
||||||||||
valueChanged | Event | |||||||||
This event is triggered when the value is changed. Code example
Bind to the
|
||||||||||
Methods |
||||||||||
close | Method | |||||||||
After calling this method, the popup calendar will be hidden.
None Code example
Invoke the
Try it: closes the jqxDateTimeInput
|
||||||||||
destroy | Method | |||||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroys the jqxDateTimeInput
|
||||||||||
focus | Method | |||||||||
Focuses the widget.
None Code examples
Invoke the
Try it: focus the jqxDateTimeInput
|
||||||||||
getRange | Method | |||||||||
Gets the selection range when the selectionMode is set to 'range'. The returned value is an Object with "from" and "to" fields. Each of the fields is a JavaScript Date Object.
Object - object.from and object.to are javascript date objects. Code example
Invoke the
|
||||||||||
getText | Method | |||||||||
Returns the input field's text.
String Code example
Invoke the
|
||||||||||
getDate | Method | |||||||||
When the getDate method is called, the user gets the current date. The returned value is JavaScript Date Object.
Date Code example
Invoke the
|
||||||||||
getMaxDate | Method | |||||||||
When the setMaxDate method is called, the user gets the maximum navigation date. The returned value is JavaScript Date Object.
Date Code example
Invoke the
|
||||||||||
getMinDate | Method | |||||||||
When the getMinDate method is called, the user gets the minimum navigation date. The returned value is JavaScript Date Object.
Date Code example
Invoke the
|
||||||||||
open | Method | |||||||||
After calling this method, the popup calendar will be displayed.
None Code example
Invoke the
Try it: opens the jqxDateTimeInput
|
||||||||||
setRange | Method | |||||||||
Sets the selection range when the selectionMode is set to 'range'. The required parameters are JavaScript Date Objects.
None Code example
Invoke the
|
||||||||||
setMinDate | Method | |||||||||
When the setMinDate method is called, the user sets the minimum date to which it is possible to navigate.
None Code example
Invoke the
|
||||||||||
setMaxDate | Method | |||||||||
When the setMaxDate method is called, the user sets the maximum date to which it is possible to navigate.
None Code example
Invoke the
|
||||||||||
setDate | Method | |||||||||
When the setDate method is called, the user sets the date. The required parameter is a JavaScript Date Object.
None Code example
Invoke the
|
||||||||||
val | Method | |||||||||
Gets or sets the jqxDateTimeInput's value.
Date/String - returns date if the passed parameter is "date"
Code examples
Invoke the
|