jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
55 lines (50 loc) • 2.62 kB
HTML
<html lang="en">
<head>
<title id='Description'>FormattedInput 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 keyboard navigation in Custom Elements FormattedInput." />
<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/jqxformattedinput.js"></script>
<script type="text/javascript" src="../../../scripts/demos.js"></script>
<script type="text/javascript">
JQXElements.settings['formattedInputSettings'] =
{
radix: 'hexadecimal',
value: 'a1',
spinButtons: false,
dropDown: true
}
</script>
</head>
<body>
<div class="example-description">
The sample demonstrates how to navigate through the numeral system options using the Keyboard.
</div>
<jqx-formatted-input settings="formattedInputSettings" style="float: left;">
</jqx-formatted-input>
<div style="font-family: Verdana; font-size: 12px; width: 400px; margin-left: 20px;
float: left;">
<ul>
<li>
<b>Tab</b> - Like other widgets, the jqxFormattedInput 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/Down</b> arrow keys - select previous or next displayFormat option.</li>
<li><b>Alt Up/Down</b> arrow keys - opens or closes the popup.</li>
<li><b>Esc</b> - closes the popup.</li>
<li><b>Enter</b> - selects an item.</li>
</ul>
</div>
</body>
</html>