| Name | Type | Default |
|---|---|---|
| animationType | DateTimeInputAnimationType | 'slide' |
|
DateTimeInputAnimationType: "fade" | "slide" | "none"
Sets or gets the type of the animation. Possible Values:
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} animationType={'fade'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| allowNullDate | boolean | true |
|
Determines whether Null is allowed as a value. |
||
| allowKeyboardDelete | boolean | true |
|
Determines whether /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} allowKeyboardDelete={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| clearString | string | 'Clear' |
|
Sets or gets the 'Clear' string displayed when the 'showFooter' property is true. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} clearString={'Clear'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| 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'. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} culture={'de-DE'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| closeDelay | number | 400 |
|
Specifies the animation duration of the popup calendar when it is going to be hidden. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} closeDelay={2000}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| closeCalendarAfterSelection | boolean | true |
|
Sets or gets whether or not the popup calendar must be closed after selection. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} closeCalendarAfterSelection={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| dropDownHorizontalAlignment | DateTimeInputDropDownHorizontalAlignment | 'left' |
|
DateTimeInputDropDownHorizontalAlignment: "left" | "right"
Sets the DropDown's alignment. Possible Values:
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} dropDownHorizontalAlignment={'right'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| dropDownVerticalAlignment | DateTimeInputDropDownVerticalAlignment | 'bottom' |
|
DateTimeInputDropDownVerticalAlignment: "top" | "bottom"
Sets or gets the DropDown's alignment. Possible Values:
|
||
| disabled | boolean | false |
|
Determines whether the widget is disabled. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} disabled={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| 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. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} enableBrowserBoundsDetection={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| enableAbsoluteSelection | boolean | false |
|
This setting enables the user to select only one symbol at a time when typing into the text input field. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} enableAbsoluteSelection={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| firstDayOfWeek | number | 0 |
|
Sets or gets which day to display in the first day column. By default the calendar displays 'Sunday' as first day. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} firstDayOfWeek={3}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| formatString | DateTimeInputFormatString | dd/MM/yyyy |
|
DateTimeInputFormatString: "d" | "f" | "F" | "n" | "c" | "p" | "d" | "dd" | "ddd" | "dddd" | "D" | "h" | "hh" | "H" | "HH" | "m" | "mm" | "M" | "MM" | "MMM" | "MMMM" | "s" | "ss" | "t" | "tt" | "T" | "y" | "yy" | "yyy" | "yyyy" | "Y" | "dddd-MMMM-yyyy"
Sets or gets the date time input format of the date. Possible Values:
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} formatString={'d'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| height | string | number | null |
|
Sets or gets the height of the jqxDateTimeInput widget. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| min | Date | Date(1900, 1, 1) |
|
Sets or gets the jqxDateTimeInput's minumun date. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
constructor(props: {}) {
super(props);
this.state = {
min: new Date(2018, 0, 1),
max: new Date(2019, 0, 1)
}
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} min={this.state.min} max={this.state.max}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| max | Date | Date(2100, 1, 1) |
|
Sets or gets the jqxDateTimeInput's maximum date. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
constructor(props: {}) {
super(props);
this.state = {
min: new Date(2018, 0, 1),
max: new Date(2019, 0, 1)
}
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} min={this.state.min} max={this.state.max}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| openDelay | number | 350 |
|
Specifies the animation duration of the popup calendar when it is going to be displayed. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} openDelay={2000}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| placeHolder | string | "" |
|
Determines the widget's place holder displayed when the widget's value is null. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} placeHolder={'Null Value'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| popupZIndex | number | 20000 |
|
Sets or gets the popup's z-index. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} popupZIndex={99999}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| rtl | boolean | false |
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} rtl={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| readonly | boolean | false |
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} readonly={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showFooter | boolean | false |
|
Sets or gets a value indicating whether the dropdown calendar's footer is displayed. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} showFooter={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| selectionMode | DateTimeInputSelectionMode | 'default' |
|
DateTimeInputSelectionMode: "none" | "default" | "range"
Sets or gets the dropdown calendar's selection mode. Possible Values:
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} selectionMode={'range'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showWeekNumbers | boolean | true |
|
Sets or gets a value whether the week`s numbers are displayed. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} showWeekNumbers={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showTimeButton | boolean | false |
|
Determines whether the time button is visible. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} showTimeButton={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showCalendarButton | boolean | true |
|
Determines whether the calendar button is visible. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} showCalendarButton={false}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| theme | string | '' |
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} theme={'material'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| template | DateTimeInputTemplate | 'default' |
|
DateTimeInputTemplate: "default" | "primary" | "success" | "warning" | "danger" | "info"
Determines the template as an alternative of the default styles. Possible Values:
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} template={'primary'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| textAlign | DateTimeInputTextAlign | left |
|
DateTimeInputTextAlign: "left" | "right" | "center"
Sets or gets the position of the text. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} textAlign={'right'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| todayString | string | 'Today' |
|
Sets or gets the 'Today' string displayed in the dropdown Calendar when the 'showFooter' property is true. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} todayString={'Today'} showFooter={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| value | Date | Today's Date |
|
Sets or gets the jqxDateTimeInput value. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
constructor(props: {}) {
super(props);
this.state = {
value: new Date(2019, 0, 10)
}
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30} value={this.state.value}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| width | string | number | null |
|
Sets or gets the width of the jqxDateTimeInput widget. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
Events |
||
| change | Event | |
|
This event is triggered on blur when the value is changed . Code examples
Bind to the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput} onChange={this.onChange}
width={250} height={30}
/>
);
}
private onChange(e: Event): void {
alert('do something...');
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| close | Event | |
|
This event is triggered when the popup calendar is closed. Code examples
Bind to the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput} onClose={this.onClose}
width={250} height={30}
/>
);
}
private onClose(e: Event): void {
alert('do something...');
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| open | Event | |
|
This event is triggered when the popup calendar is opened. Code examples
Bind to the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput} onOpen={this.onOpen}
width={250} height={30}
/>
);
}
private onOpen(e: Event): void {
alert('do something...');
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| textchanged | Event | |
|
This event is triggered when the text is changed. Code examples
Bind to the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput} onTextchanged={this.onTextchanged}
width={250} height={30}
/>
);
}
private onTextchanged(e: Event): void {
alert('do something...');
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| valueChanged | Event | |
|
This event is triggered when the value is changed. Code examples
Bind to the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput} onValueChanged={this.onValueChanged}
width={250} height={30}
/>
);
}
private onValueChanged(e: Event): void {
alert('do something...');
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
Methods |
||
| Name | Arguments | Return Type |
| close | None | |
|
After calling this method, the popup calendar will be hidden. |
||
| destroy | None | |
|
Destroys the widget. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.destroy();
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| focus | None | |
|
Focuses the widget. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.focus();
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| getRange | None | |
|
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. |
||
| getText | None | |
|
Returns the input field's text. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.getText();
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| getDate | None | |
|
When the getDate method is called, the user gets the current date. The returned value is JavaScript Date object. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.getDate();
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| getMaxDate | None | |
|
When the setMaxDate method is called, the user gets the maximum navigation date. The returned value is JavaScript Date object. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.getMaxDate();
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| getMinDate | None | |
|
When the getMinDate method is called, the user gets the minimum navigation date. The returned value is JavaScript Date object. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.getMinDate();
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| open | None | |
|
After calling this method, the popup calendar will be displayed. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.open();
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| setRange | date, date2 | |
|
Sets the selection range when the selectionMode is set to 'range'. The required parameters are JavaScript Date objects. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.setRange(new Date(2017, 9, 20),new Date(2017, 9, 22));
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| setMinDate | date | |
|
When the setMinDate method is called, the user sets the minimum date to which it is possible to navigate. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.setMinDate(new Date(2017, 9, 20));
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| setMaxDate | date | |
|
When the setMaxDate method is called, the user sets the maximum date to which it is possible to navigate. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.setMaxDate(new Date(2017, 9, 20));
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| setDate | date | |
|
When the setDate method is called, the user sets the date. The required parameter is a JavaScript Date object. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.setDate(new Date(2017, 9, 20));
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| val | value, value2 | |
|
Gets or sets the jqxDateTimeInput's value. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxDateTimeInput, { IDateTimeInputProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdatetimeinput';
class App extends React.PureComponent<{}, IDateTimeInputProps> {
private myDateTimeInput = React.createRef<JqxDateTimeInput>();
public componentDidMount(): void {
this.myDateTimeInput.current!.val();
}
public render() {
return (
<JqxDateTimeInput ref={this.myDateTimeInput}
width={250} height={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||