1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    85
    Answers
    6
    Vote Rating
    0
    toxkillfraex is on a distinguished road

      0  

    Default Answered: displaying text

    Answered: displaying text


    I haven't really thought about it until now. But what would be considered a correct way to display text that only has an informing/title/whatever function?

    So far I've taken to using form.Label and that works for me.

    I wasn't 100% positive if this was a good code idea anyhow when I started using that.
    So is there a better way?

    the text would have no function whatsoever other than informing and shouldn't be editable. Unless you're messing with it from the application itself

  2. i think 'displayfield' is better... the purpose of 'label' is to be associated to a field!
    if you have an Ext.form.field.Display inside a form, it's easier to bind it to some data!

  3. #2
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    199
    Answers
    41
    Vote Rating
    8
    chramer will become famous soon enough

      0  

    Default


    Ext.form.field.Display is also good!

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    85
    Answers
    6
    Vote Rating
    0
    toxkillfraex is on a distinguished road

      0  

    Default


    Quote Originally Posted by chramer View Post
    I've considered that once. But that fact you can set a label for it kinda scared me of xD

    So can I suppose that both of these are just as valid?

  5. #4
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    199
    Answers
    41
    Vote Rating
    8
    chramer will become famous soon enough

      0  

    Default


    i think 'displayfield' is better... the purpose of 'label' is to be associated to a field!
    if you have an Ext.form.field.Display inside a form, it's easier to bind it to some data!

Thread Participants: 1

Tags for this Thread