jQWidgets
  • Documentation
  • License and Pricing
  • Services
  • Community
    • Forums
    • Blogs
    • Follow Us
    • Client Login
  • About
    • About Us
    • Contact Us
    • FAQ
  • Demo
  • Download

React UI Components

  • Javascript/jQuery
  • Angular
  • Vue
  • React
  • Custom Elements
  • ASP .NET MVC
  • Showcase Demos
  • Responsive Design
  • Theme Builder
Show Demo List

React UI Components

  • jqxGrid
  • jqxTabs
  • jqxTextArea
  • jqxWindow
  • jqxKnob
  • jqxResponsivePanel
  • jqxChart
  • jqxMenu
  • jqxInput
  • jqxDocking
  • jqxGauge
  • jqxNavBar
  • jqxPivotGrid
  • jqxTree
  • jqxPasswordInput
  • jqxNotification
  • jqxBarGauge
  • jqxSortable
  • jqxScheduler
  • jqxNavigationBar
  • jqxMaskedInput
  • jqxPopOver
  • jqxExpander
  • jqxLoader
  • jqxTreeGrid
  • jqxListMenu
  • jqxComplexInput
  • jqxTooltip
  • jqxRating
  • jqxDraw
  • jqxDataTable
  • jqxToolBar
  • jqxFormattedInput
  • jqxColorPicker
  • jqxRangeSelector
  • jqxDragDrop
  • jqxTreeMap
  • jqxComboBox
  • jqxNumberInput
  • jqxScrollView
  • jqxSlider
  • jqxPanel
  • jqxEditor
  • jqxDropDownList
  • jqxDateTimeInput
  • jqxProgressBar
  • jqxScrollBar
  • jqxValidator
  • jqxRibbon
  • jqxListBox
  • jqxCalendar
  • jqxFileUpload
  • jqxSplitter
  • jqxValidator
  • jqxLayout
  • jqxButtons
  • jqxKanban
  • jqxBulletChart
  • jqxDockingLayout

jqxDateTimeInput

  • Default Functionality
  • Localization
  • Time Input
  • Restrict Date Range
  • Format Date
  • Disabled
  • Templates
  • Date & Time
  • Range Selection
  • DropDown Horizontal Alignment
  • DropDown Vertical Alignment
  • Animation
  • Fluid Size
  • Events
  • Keyboard Navigation
  • Right to Left Layout
Theme:
  • Demo
  • App.htm
  • App.js
ReactJS DateTimeInput demo. Keyboard Navigation
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title id='Description'>
        ReactJS DateTimeInput demo. Keyboard navigation.
    </title>
    <link rel="stylesheet" href="../jqwidgets/styles/jqx.base.css" type="text/css" />
    <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxdatetimeinput.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxcalendar.js"></script>
    <script type="text/javascript" src="../jqwidgets/jqxtooltip.js"></script>
    <script type="text/javascript" src="../jqwidgets/globalization/globalize.js"></script>
    <script type="text/javascript" src="../scripts/demos.js"></script>
</head>
<body>
    <div class="example-description" style="margin-bottom:3em">
        ReactJS DateTimeInput demo. Keyboard Navigation
    </div>
    <div id="app"></div>
    <script src="../build/datetimeinput_keyboardnavigation.bundle.js"></script>
</body>
</html>

import React from 'react';import ReactDOM from 'react-dom';import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js';class App extends React.Component {
    componentDidMount() {
        this.refs.myDateTimeInput.focus();
    }
    render() {
        return (
            <div>
                <JqxDateTimeInput ref='myDateTimeInput'
                    width={250} height={25}
                />
                <div style={{ fontFamily: 'Verdana', fontSize: 12, width: 700, marginLeft: 20, float: 'left' }}>
                    <ul>
                        <li><b>Tab</b> - Like other widgets, the jqxDateTimeInput widget receives focus by tabbing into it. Once focus is received, users will be able to use the keyboard to change the active tab page. A second tab will take the user out of the widget.</li>
                        <li><b>Shift+Tab</b> - reverses the direction of the tab order. Once in the widget, a Shift+Tab will take the user to the previous focusable element in the tab order.</li>
                        <li><b>Up Arrow</b> key - increases the selected value.</li>
                        <li><b>Up Arrow</b> when the popup Calendar is opened - goes to the same day of the week in the previous week. If the user advances past the end of the month they continue into the previous month.</li>
                        <li><b>Alt + Up Arrow</b> - closes the popup Calendar.</li>
                        <li><b>Down Arrow</b> key - decreases the selected value.</li>
                        <li><b>Down Arrow</b> key when the popup Calendar is opened - goes to the same day of the week in the next week. If the user advances past the end of the month they continue into the next month.</li>
                        <li><b>Alt + Down Arrow</b> - opens the popup Calendar.</li>
                        <li><b>Left Arrow</b> key - moves the selection to the previous value.</li>
                        <li><b>Left Arrow</b> key when the popup Calendar is opened - advances one day to the next.</li>
                        <li><b>Right Arrow</b> key - moves the selection to the next value.</li>
                        <li><b>Right Arrow</b> key when the popup Calendar is opened - advances one day to the next..</li>
                        <li><b>Control+Page Up</b> when the popup Calendar is opened - Moves to the same date in the previous year.</li>
                        <li><b>Control+Page Down</b> when the popup Calendar is opened - Moves to the same date in the next year.</li>
                        <li><b>Home</b> when the popup Calendar is opened - Moves to the first day of the current month.</li>
                        <li><b>End</b> when the popup Calendar is opened - Moves to the last day of the current month.</li>
                        <li><b>Page Up</b> when the popup Calendar is opened - Moves to the same date in the previous month.</li>
                        <li><b>Page Down</b> when the popup Calendar is opened - Moves to the same date in the next month.</li>
                        <li><b>Esc</b> key - closes the popup Calendar and cancels the selection.</li>
                        <li><b>Enter</b> key - closes the popup Calendar and confirms the selection.</li>
                        <li><b>Number</b> keys - manually type date and time when the calendar is closed.</li>
                        <li><b>Del</b> key - deletes the date.</li>
                        <li><b>Ctrl + Del</b> - sets the selected value to the minimum value.</li>
                    </ul>
                </div>
            </div>
        )
    }
}

ReactDOM.render(<App />, document.getElementById('app'));

jQWidgets
  • Facebook
  • Youtube
  • Google +
  • Demo
  • Download
  • Documentation
  • License and Pricing
  • Services
  • Forums
  • About
  • Terms of Use
  • Privacy Policy
  • Contact Us

jQWidgets © 2011-2019. All Rights Reserved.