RTL Support

26 Oct 20171 minute to read

The PercentageTextBox provides RTL (Right-To-Left) support. The alignment of PercentageTextBox can be changed from Left-To-Right into Right-To-Left.

Enable RTL

The following steps explain the implementation of enableRTL in PercentageTextBox .

In the HTML page set the corresponding <input> elements for rendering PercentageTextBox control.

  • HTML
  • <table cellpadding="10">
                    <label for="percent">Percent</label>
                    <input id="percent" type="text" />
  • /// <reference path="tsfiles/jquery.d.ts" />
    /// <reference path="tsfiles/ej.web.all.d.ts" />
    module EditorComponent {
        $(function () {
            var number = new ej.PercentageTextbox($("#percent"), {
                value: 22,
                enableRTL: true

    The output for PercentageTextBox when enableRTL is “true” is as follows.