UNPKG

jqwidgets-scripts-custom

Version:

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

123 lines (117 loc) 5.51 kB
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>NavigationBar 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 NavigationBar." /> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <link rel="stylesheet" href="../jqwidgets/styles/jqx.light.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/jqxdata.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxcore.elements.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxnavigationbar.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="../../../scripts/demos.js"></script> <script> JQXElements.settings['NavigationBarSettings'] = { expandedIndexes: ['0'], expandMode: 'multiple' }; window.onload = function() { document.querySelector('jqx-navigation-bar').focus(); }; </script> </head> <body> <div class="example-description"> This is an example of the keyboard navigation in Custom Element NavigationBar. </div> <jqx-navigation-bar settings="NavigationBarSettings"> <div> <div style='margin-top: 2px;'> <div style='float: left;'> <img alt='Mail' src='../../../images/mailIcon.png' /> </div> <div style='margin-left: 4px; float: left;'> Mail </div> </div> </div> <div> <ul> <li><a href='#'>Contacts</a></li> <li><a href='#'>Mails</a></li> <li><a href='#'>Notes</a></li> </ul> </div> <div> <div style='margin-top: 2px;'> <div style='float: left;'> <img alt='Mail' src='../../../images/contactsIcon.png' /> </div> <div style='margin-left: 4px; float: left;'> Contacts </div> </div> </div> <div> <ul> <li><a href='#'>Business Cards</a></li> <li><a href='#'>Address Cards</a></li> <li><a href='#'>Detailed Address Cards</a></li> <li><a href='#'>Phone List</a></li> </ul> </div> <div> <div style='margin-top: 2px;'> <div style='float: left;'> <img alt='Mail' src='../../../images/tasksIcon.png' /> </div> <div style='margin-left: 4px; float: left;'> Tasks </div> </div> </div> <div> <ul> <li><a href='#'>Simple List</a></li> <li><a href='#'>Detailed List</a></li> <li><a href='#'>Active Tasks</a></li> <li><a href='#'>Phone List</a></li> </ul> </div> <div> <div style='margin-top: 2px;'> <div style='float: left;'> <img alt='Mail' src='../../../images/notesIcon.png' /> </div> <div style='margin-left: 4px; float: left;'> Notes </div> </div> </div> <div> <ul> <li><a href='#'>Icons</a></li> <li><a href='#'>Notes List</a></li> <li><a href='#'>Last Seven Days</a></li> </ul> </div> </jqx-navigation-bar> <div style="font-family: Verdana; font-size: 12px; width: 400px; margin-left: 20px; float: left;"> <ul> <li><b>Tab</b> - Like other widgets, the jqxNavigationBar widget receives focus by tabbing into it. Once focus is received, users will be able to use the keyboard to change the jqxNavigationBar's selection. A second tab will take the user to the next focusable element in the tab order.</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 or Left</b> arrow keys - select previous item.</li> <li><b>Down or Right</b> arrow keys - select next item.</li> <li><b>Home/End</b> keys - navigate to the first or last item.</li> <li><b>Enter</b> key - Expand the focused item's state when the jqxNavigationBar's "expandMode" property is "single" or "singleFitHeight". Toggle the focused item's state when the expand mode is "toggle" or "multiple"</li> </ul> </div> </body> </html>