1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    2
    Vote Rating
    0
    xt99 is on a distinguished road

      0  

    Question Answered: How to make textfield looks like label?

    Answered: How to make textfield looks like label?


    Hello everyone!

    I've got an application with a lot of pages, and most of them are forms with number of fields.
    Business logic can turn some of fields into readOnly state, and application knows it before controller renders view.
    The question is: is there any way to make readOnly fields look like labels, but act like a form fields ( for example send value on form.getValues() call ).

    I tried to use some templates, but they are didn't work ( actually, i'm quite a noob in templates ).

  2. Do you want it editable or do you just need to use Display field?

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Do you want it editable or do you just need to use Display field?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    2
    Vote Rating
    0
    xt99 is on a distinguished road

      0  

    Lightbulb


    Yes, Ext.form.field.Display is exactly what I was looking for...
    Sorry for such RTFM question

    I will always search all the docs first.
    I will always search all the docs first.
    I will always search all the docs first.

Thread Participants: 1

Tags for this Thread