RTL Support

19 Apr 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">
        <tbody>
            <tr>
                <td>
                    <label for="percent">Percent</label>
                </td>
                <td>
                    <input id="percent" type="text" />
                </td>
            </tr>
        </tbody>
    </table>
  • JAVASCRIPT
  • $("#percent").ejPercentageTextbox({
                value: 22,
                enableRTL: true
            });

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