RTL Support

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

Enable RTL

The following steps explain the implementation of enableRTL in CurrencyTextBox.

In the HTML page set the corresponding <input> elements for rendering CurrencyTextBox controls.

  • html
  • <input id="currency" type="text" />
  • javascript
  • /// <reference path="tsfiles/jquery.d.ts" />
    /// <reference path="tsfiles/ej.web.all.d.ts" />
    module EditorComponent {
        $(function () {
            var cur = new ej.CurrencyTextbox($("#currency"), {
                value: 33,
                enableRTL: true

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