Results 1 to 4 of 4

Thread: LabelField and TextField switching

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    37
    Vote Rating
    0
      0  

    Post LabelField and TextField switching

    What I want to achieve is to have a field, that depending on whether it's set editable or not, is displayed using TextField or FieldLabel respectively.

    My approach is pretty straightforward: class that extends LayoutContainer, contains both label and text fields, and exchanges them appropriately. After each switch LC.layout() is called obviously.

    It behaves differently as I would have expected. If set to editable (i.e. using TextField), input field is displayed, field's label is not displayed, DOM contains just input field. If set to FieldLabel, nothing is displayed, DOM contains just the LC and nothing inside it.

    Any ideas how come it's behaving that way?

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    132
      0  

    Default

    Can you please post your code as a small, standalone testcase?

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    37
    Vote Rating
    0
      0  

    Default

    Do you mean just code snippets or whole eclipse project?

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    132
      0  

    Default

    I mean a single class that implements EntryPoint and shows what you are doing.

Similar Threads

  1. LabelField + ClickListener
    By zhyt in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 15 Jan 2009, 11:25 AM
  2. LabelField + ClickListener
    By zhyt in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 14 Jan 2009, 7:34 AM
  3. TextField, LabelField questions
    By mannobug in forum Ext GWT: Help & Discussion (1.x)
    Replies: 5
    Last Post: 19 Dec 2008, 9:25 AM
  4. LabelField and setLabelStyle
    By sjzaluk in forum Ext GWT: Help & Discussion (1.x)
    Replies: 6
    Last Post: 24 Oct 2008, 8:08 PM
  5. labelfield can not be seen in browser
    By hchen in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 12 Jun 2008, 7:54 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •