jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
80 lines (70 loc) • 4.21 kB
HTML
<html lang="en">
<head>
<meta name="keywords" content="jQuery Progress, Progress Bar, jqxProgressBar, Loading Bar, Progress Widget" />
<meta name="description" content="The jqxProgressBar widget visually indicates the progress of a lengthy operation" />
<title id='Description'>The jqxProgressBar widget visually indicates the progress of a lengthy operation.</title>
<link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" />
<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" />
<script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="../../../scripts/demos.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxprogressbar.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="../../../jqwidgets/jqxcheckbox.js"></script>
<script type="text/javascript">
$(document).ready(function () {
// Create jqxProgressBar.
$("#jqxProgressBar").jqxProgressBar({ width: 250, height: 30, value: 50});
$("#jqxVerticalProgressBar").jqxProgressBar({ width: 30, height: 250, value: 50, orientation: 'vertical'});
// Create jqxButton.
$('#button').jqxButton({});
// Update ProgressBars.
$('#button').click(function () {
var value = $('#ValueInput')[0].value;
$("#jqxProgressBar").jqxProgressBar({ value: value });
$("#jqxVerticalProgressBar").jqxProgressBar({ value: value });
});
$("#checkbox").jqxCheckBox({});
$("#customtextcheckbox").jqxCheckBox({});
$("#checkbox").on('change', function (event) {
$("#jqxProgressBar").jqxProgressBar({ showText: event.args.checked });
$("#jqxVerticalProgressBar").jqxProgressBar({ showText: event.args.checked });
});
var renderText = function (text) {
return "<span class='jqx-rc-all' style='background: #ffe8a6; color: #e53d37; font-style: italic;'>" + text + "</span>";
}
$("#customtextcheckbox").on('change', function (event) {
if (event.args.checked) {
$("#jqxProgressBar").jqxProgressBar({ renderText: renderText });
$("#jqxVerticalProgressBar").jqxProgressBar({ renderText: renderText });
}
else {
$("#jqxProgressBar").jqxProgressBar({ renderText: null });
$("#jqxVerticalProgressBar").jqxProgressBar({ renderText: null });
}
});
});
</script>
</head>
<body class='default'>
<div id='jqxWidget' style="font-size: 13px; font-family: Verdana; float: left;">
<div style='margin-top: 10px;'>Horizontal</div>
<div style='margin-top: 10px; overflow: hidden;' id='jqxProgressBar'>
</div>
<div style='margin-top: 10px;'>Vertical</div>
<div style='margin-top: 10px; overflow: hidden;' id='jqxVerticalProgressBar'>
</div>
<br />
<div>Enter a value between 0 and 100</div>
<input id='ValueInput' type='text' style='margin-top: 5px;' />
<input id='button' type='button' value='Update' style='padding: 3px; margin-top: 5px;' />
<div id="checkbox" style="margin-top: 20px;">Show Progress Text</div>
<div id="customtextcheckbox" style="margin-top: 20px;">Custom Progress Text</div>
</div>
<div style="position: absolute; bottom: 5px; right: 5px;">
<a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a>
</div>
</body>
</html>