jQWidgets Forums

jQuery UI Widgets Forums Angular jqxinput readonly doesn't work

This topic contains 2 replies, has 2 voices, and was last updated by  iAnathema 6 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • jqxinput readonly doesn't work #102971

    iAnathema
    Participant

    I’m trying to set readonly propriety on a jqxinput widget but without success

    <jqxInput [theme]="getTheme()" [width]="'100%'" [height]="30" [value]="'test'" [placeHolder]="'placeHolder'" readonly>

    The result is:

    <input type="text" style="" ng-reflect-model="test" class="ng-pristine ng-valid ng-touched">

    while I was expecting:

    <input type="text" style="" ng-reflect-model="test" class="ng-pristine ng-valid ng-touched" readonly>

    jqxinput readonly doesn't work #102986

    Martin
    Participant

    Hello iAnathema,

    Yes, setting readonly to the jqxInput element would not work in this way.
    Please, look at the following Example.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    jqxinput readonly doesn't work #102989

    iAnathema
    Participant

    Hi Martin,
    I just fixed it on my project by adding a new property [readOnly]="true" on jqxInput and jqxTextArea widgets.

    If you want later, when I a have moved more forward with my project, I can push the changes on GitHub.

    Thank You so much, I’m developing really nice stuff with JQWidgets, I want to propose it to my team.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.