Contact Support
RTL Support
23 Nov 20171 minute to read
Right-to-left starts from the right of the page and continues to the left. By default, this option is set to ‘false’ in the ProgressBar control. The enableRTL option allows the ProgressBar control to display it in the right to left direction.
The following steps explain how to enable the RTL property of the ProgressBar control.
In the HTML page, add a <div> element to render the ProgressBar widget.
<div class="control">
<div id="progressbar"></div>
</div>
// Add the following code example to enable the RTL property of the ProgressBar control.
$(function () {
//Declaration.
$("#progressbar").ejProgressBar({
enableRTL: true,
value: 80,
text: 80,
height: 20,
width: 500
});
var progress = $("#progressbar").data("ejProgressbar");
progress.setModel({ text: progress.getValue() + " % Completed" });
});
The following screenshot displays the output.