Documentation

Getting Started

jqxProgressBar represents a jQuery widget that visually indicates the progress of a lengthy operation.
Every UI widget from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.

The first step is to create html page and add links to the javascript files and css dependencies to your project. The jqxProgressBar widget requires the following files:

<head>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
<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/jqxprogressbar.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2FX5PV9DNT"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-2FX5PV9DNT');</script></head>

The next step is to create a DIV element within the body of the html document.
<div id='jqxprogressbar'>
</div>

The last step is to initialize the widget by adding the following script to the html document:

To call a function(method), you need to pass the method name and parameters(if any) in the jqxProgressBar’s constructor.
$("#jqxprogressbar").jqxProgressBar(‘actualValue’, 100);
To get the result of a function(method) call, you need to pass the method name in the jqxProgressBar’s constructor and parameters(if any).
var value = $("#jqxProgressBar").jqxProgressBar(‘actualValue’);
To set a property(option), you need to pass the property name and value(s) in the jqxProgressBar's constructor.
$("#jqxProgressBar").jqxProgressBar({ disabled: true });
To get a property(option), you need to pass the property name to the jqxProgressBar's constructor.
var disabled = $("#jqxProgressBar").jqxProgressBar('disabled');
To bind to an event of a UI widget, you can use basic jQuery syntax. Let’s suppose that you want to get the value after it is changed. The example code below demonstrates how to bind to the ‘valueChanged’ event of jqxProgressBar.
// bind to valueChanged event.
$("#jqxprogressbar").on('valueChanged', function (event) {
alert("changed");
});

Basic Sample

The result of the above code is:

Basic Sample with Vertical ProgressBar

The result of the above code is: