UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced jQuery, Angular, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

150 lines (144 loc) 8.3 kB
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>Scheduler Custom Element KeyboardNavigation</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <meta name="description" content="This is an example of the keyboard navigation in Custom Element Scheduler." /> <link rel="stylesheet" href="../jqwidgets/styles/jqx.base.css" type="text/css" /> <link rel="stylesheet" href="../styles/demos.css" type="text/css" /> <script type="text/javascript" src="../scripts/webcomponents-lite.min.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdata.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdate.js"></script> <script type="text/javascript" src="../jqwidgets/jqxscheduler.js"></script> <script type="text/javascript" src="../jqwidgets/jqxscheduler.api.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdatetimeinput.js"></script> <script type="text/javascript" src="../jqwidgets/jqxmenu.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/jqxwindow.js"></script> <script type="text/javascript" src="../jqwidgets/jqxcheckbox.js"></script> <script type="text/javascript" src="../jqwidgets/jqxlistbox.js"></script> <script type="text/javascript" src="../jqwidgets/jqxdropdownlist.js"></script> <script type="text/javascript" src="../jqwidgets/jqxnumberinput.js"></script> <script type="text/javascript" src="../jqwidgets/jqxradiobutton.js"></script> <script type="text/javascript" src="../jqwidgets/jqxinput.js"></script> <script type="text/javascript" src="../jqwidgets/globalization/globalize.js"></script> <script type="text/javascript" src="../jqwidgets/globalization/globalize.culture.de-DE.js"></script> <script> var source = { dataType: 'json', dataFields: [ { name: 'id', type: 'string' }, { name: 'status', type: 'string' }, { name: 'about', type: 'string' }, { name: 'address', type: 'string' }, { name: 'company', type: 'string' }, { name: 'name', type: 'string' }, { name: 'style', type: 'string' }, { name: 'calendar', type: 'string' }, { name: 'start', type: 'date', format: "yyyy-MM-dd HH:mm" }, { name: 'end', type: 'date', format: "yyyy-MM-dd HH:mm" } ], id: 'id', url: '../sampledata/appointments.txt' }; JQXElements.settings['schedulerSettings'] = { date: new jqx.date(2016, 11, 23), source: new jqx.dataAdapter(source), ready: function() { var myScheduler = document.querySelector('jqx-scheduler'); myScheduler.focus(); }, appointmentDataFields: { from: 'start', to: 'end', id: 'id', description: 'about', location: 'address', subject: 'name', style: 'style', status: 'status' }, view: 'weekView', views: [ 'dayView', 'weekView', 'monthView' ] }; </script> </head> <body> <div class="example-description"> Custom element Scheduler Keyboard navigation example </div> <jqx-scheduler settings="schedulerSettings"></jqx-scheduler> <div style="font-family: Verdana; font-size: 12px; width: 670px;"> <ul> <li> <b>Left Arrow</b> key is pressed - Selects the left cell, when the Scheduler is focused. <ul> <li> Navigates to previous view when <b>Ctrl</b> key is pressed and appointment is not selected. </li> <li>Selected appointment is moved left when <b>Ctrl</b> key is pressed.</li> <li>Selected appointment is resized when <b>Shift</b> key is pressed and it is all day, timelineView or monthView appointment.</li> <li>Selects left cell and updates the cells selection when <b>Shift</b> key is pressed.</li> </ul> </li> <li> <b>Right Arrow</b> key is pressed - Selects the right cell, when the Scheduler is focused. <ul> <li> Navigates to next view when <b>Ctrl</b> key is pressed and appointment is not selected. </li> <li>Selected appointment is moved right when <b>Ctrl</b> key is pressed.</li> <li>Selected appointment is resized when <b>Shift</b> key is pressed and it is all day, timelineView or monthView appointment.</li> <li>Selects right cell and updates the cells selection when <b>Shift</b> key is pressed.</li> </ul> </li> <li> <b>Up Arrow</b> key is pressed - Selects the cell above, when the Scheduler is focused. <ul> <li>Moves to cell selection to the first row when <b>Ctrl</b> key is pressed and cell is selected.</li> <li>Selected appointment is moved above when <b>Ctrl</b> key is pressed.</li> <li>Selected appointment is resized when <b>Shift</b> key is pressed and it is dayView or weekView appointment.</li> <li>Selects the above cell and updates the cells selection when <b>Shift</b> key is pressed.</li> </ul> </li> <li> <b>Down Arrow</b> key is pressed - Selects the cell below, when the Scheduler is focused. <ul> <li>Moves to cell selection to the last row when <b>Ctrl</b> key is pressed and cell is selected.</li> <li>Selected appointment is moved below when <b>Ctrl</b> key is pressed.</li> <li>Selected appointment is resized when <b>Shift</b> key is pressed and it is dayView or weekView appointment.</li> <li>Selects the below cell and updates the cells selection when <b>Shift</b> key is pressed.</li> </ul> </li> <li><b>Enter</b> key is pressed - Opens the Edit Dialog.</li> <li><b>Esc</b> key is pressed - Cancels dragging or resizing.</li> <li> <b>Tab</b> key is pressed - Tabs the selection to next appointment or out of Scheduler. </li> <li><b>Shift+Tab</b> keys are pressed - Tabs the selection to previous appointment or to focused cell.</li> <li><b>Alt</b> key are pressed - When Alt and Number is pressed, the Scheduler toggles Appointments visibility by Resource.</li> <li> <b>Ctrl</b> key is pressed <ul> <li>Sets the View when <b>Number</b> key is pressed. For example Ctrl + 1, sets the view to the first view.</li> <li>Opens the Context Menu when <b>m</b> key is pressed.</li> <li>Opens the DateTimeInput in the Navigation Toolbar<b>d</b> key is pressed.</li> </ul> </ul> </div> </body> </html>