jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
74 lines (66 loc) • 4.22 kB
HTML
<html lang="en">
<head>
<title id='Description'>Tree Custom Element KeyboardNavigation</title>
<meta name="description" content="This is an example of the keyboard navigation in Tree Custom Element." />
<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" />
<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/jqxcheckbox.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/jqxpanel.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxtree.js"></script>
<script src="../../../scripts/demos.js"></script>
<script type="text/javascript">
var data =
[
{
icon: '../../../images/mailIcon.png', label: 'Mail', expanded: true, items: [
{ icon: '../../../images/calendarIcon.png', label: 'Calendar' },
{ icon: '../../../images/contactsIcon.png', label: 'Contacts', selected: true }
]
},
{
icon: '../../../images/folder.png', label: 'Inbox', expanded: true, items: [
{ icon: '../../../images/folder.png', label: 'Admin' },
{ icon: '../../../images/folder.png', label: 'Corporate' },
{ icon: '../../../images/folder.png', label: 'Finance' },
{ icon: '../../../images/folder.png', label: 'Other' },
]
},
{ icon: '../../../images/recycle.png', label: 'Deleted Items' },
{ icon: '../../../images/notesIcon.png', label: 'Notes' },
{ iconsize: 14, icon: '../../../images/settings.png', label: 'Settings' },
{ icon: '../../../images/favorites.png', label: 'Favorites' }
];
JQXElements.settings['treeSettings'] =
{
source: data
};
</script>
</head>
<body>
<div class="example-description">
In this sample is demonstrated the Tree Custom Element built-in keyboard support.
</div>
<jqx-tree settings="treeSettings" style="float: left;"></jqx-tree>
<div style="font-family: Verdana; font-size: 12px; width: 400px; margin-left: 20px; float: left;">
<ul>
<li><b>Tab</b> - Like other widgets, the jqxTree widget receives focus by tabbing into it. Once focus is received, users will be able to use the keyboard to change the selection. 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 and Down</b> arrow keys - move between visible items.</li>
<li><b>Left Arrow</b> key - on an expanded item, collapses the item.</li>
<li><b>Left Arrow</b> key - on a collapsed or end item moves focus to the item's parent item.</li>
<li><b>Right Arrow</b> key - on a collapsed item expands the item.</li>
<li><b>Right Arrow</b> key - on an expanded item, moves to the first child item, or does nothing on an end item.</li>
<li><b>Home</b> key - moves to the top item in the tree view.</li>
<li><b>End</b> key - moves to the last item in the tree view.</li>
</ul>
</div>
</body>
</html>