Results 1 to 2 of 2

Thread: hide/show fields with label

  1. #1
    Sencha User mysticav's Avatar
    Join Date
    Mar 2007
    Location
    Mexico
    Posts
    531
    Vote Rating
    50
      0  

    Default hide/show fields with label

    I want to know if Ext 3.0 has the functionality to show/hide a field including the label.

    As far as I know, you can set the field to start in hide mode with "hidden" config option.
    Also, you can hide the label with "hideLabel" config option.

    But let say, I need to create a form with a hiddenfield, then show it when necessary.
    I can use the method "show()" But that only shows the field, not the label.
    One could expect to find a "showLabel()" method. But there is none.

    Seems that this issue has been out there for a long time.

    There is a workound since Ext 1.x

    Code:
    ,onHide: function(){this.getEl().up('.x-form-item').setDisplayed(false);} 
    ,onShow: function(){this.getEl().up('.x-form-item').setDisplayed(true);}
    But when I show the field (in this case a combo), look what I get (see attachment, you'll the the combo selection arrow on the left side, which unfortunately is not clickable).

    THIS PROBLEM HAPPENS ONLY WITH SAFARI 4 (528.17)

    I don't have any problem with IE, Firefox, Chrome and Opera.

    Any Idea ?
    Attached Images Attached Images

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    133
      0  

    Default

    No, Ext 3 still doesn't support hiding the fieldLabel. BTW there is a better fix available here.

    If you use that fix you could solve your problem by adding hideMode:'offsets' to your combobox.

Posting Permissions

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