UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

103 lines (101 loc) 5.13 kB
<!DOCTYPE html> <html ng-app="demoApp" lang="en"> <head> <meta name="keywords" content="AngularJS Menu, Main Menu, Context Menu, Vertical Menu, Popup Menu, Menu, jqxMenu" /> <meta name="description" content="AngularJS Menu example. This example demonstrates a Menu keyboard navigation." /> <title id='Description'>The Angular Menu widget supports several built-in modes - horizontal, vertical and context menu. In this demo, the mode property is set to 'vertical'. </title> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../../scripts/angular.min.js"></script> <script type="text/javascript" src="../../../scripts/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxmenu.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxangular.js"></script> <script type="text/javascript"> var demoApp = angular.module("demoApp", ["jqwidgets"]); demoApp.controller("demoController", function ($scope) { $scope.menuSettings = { width: 650, height: 30, keyboardNavigation: true, created: function (args) { args.instance.focus(); } } }); </script> </head> <body ng-controller="demoController"> <jqx-menu jqx-settings="menuSettings"> <ul> <li><a href="#">Home</a></li> <li>About Us <ul> <li><a href="#">History</a></li> <li><a href="#">Our Vision</a></li> <li><a href="#">The Team</a> <ul> <li><a href="#">Brigita</a></li> <li><a href="#">John</a></li> <li><a href="#">Michael</a></li> <li><a href="#">Peter</a></li> <li><a href="#">Sarah</a></li> </ul> </li> <li><a href="#">Clients</a></li> <li><a href="#">Testimonials</a></li> <li><a href="#">Press</a></li> <li><a href="#">FAQs</a></li> </ul> </li> <li>Services <ul> <li><a href="#">Product Development</a></li> <li><a href="#">Delivery</a></li> <li><a href="#">Shop Online</a></li> <li><a href="#">Support</a></li> <li><a href="#">Training &amp; Consulting</a></li> </ul> </li> <li>Products <ul> <li><a href="#">New</a> <ul> <li><a href="#">Corporate Use</a></li> <li><a href="#">Private Use</a></li> </ul> </li> <li><a href="#">Used</a> <ul> <li><a href="#">Corporate Use</a></li> <li><a href="#">Private Use</a></li> </ul> </li> <li><a href="#">Featured</a></li> <li><a href="#">Top Rated</a></li> <li><a href="#">Prices</a></li> </ul> </li> <li><a href="#">Gallery</a></li> <li><a href="#">Events</a></li> <li><a href="#">Careers</a></li> <li><a href="#">Contact Us</a> <ul> <li><a href="#">Enquiry Form</a></li> <li><a href="#">Map &amp; Driving Directions</a></li> <li><a href="#">Your Feedback</a></li> </ul> </li> </ul> </jqx-menu> <br /> <ul style="font-family: 'segoe ui', arial, sans-serif;"> <li><b>Tab</b> - Once the focus is received, users will be able to use the keyboard to change the focused menu item.</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 menu item.</li> <li><b>Up/Down</b> arrow keys - select previous or next item in a vertical menu or sub menu.</li> <li><b>Left/Right</b> arrow keys - select previous or next item in a horizontal menu.</li> <li><b>Alt Up/Down</b> arrow keys - opens or closes the popup.</li> <li><b>Alt Left/Right</b> arrow keys - opens or closes the popup in a sub menu item or vertical menu.</li> <li><b>Esc</b> - closes all popups.</li> <li><b>Enter</b> - Triggers the item's click.</li> </ul> </body> </html>