1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    24
    Vote Rating
    0
    larsfrommars is on a distinguished road

      0  

    Default How to disable the Labelable-Wrapper

    How to disable the Labelable-Wrapper


    Hi,

    i'm working on an application with lots of fields (Ext.field.Base) and i don't need most of the labelable features, expect for the display of errors (in a Tooltip).
    So how can I prevent my fields being wrapped by a useless table?

    ExtJS 4.1 beta 3

    thanks in advance

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    751
    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


    You can override the base field to not call the labelable mixin but that could (will) cause problems
    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.

  3. #3
    Sencha User
    Join Date
    Mar 2008
    Posts
    24
    Vote Rating
    0
    larsfrommars is on a distinguished road

      0  

    Default


    i tried:
    PHP Code:
      autoEl: {
        
    tag'div'
      
    },
      
      
    labelableRenderTpl: [
        
    '<div id="{id}-inputRow">',
          
    '<div id="{id}-labelCell">',
            
    '<div id="{id}-labelEl"></div>',
          
    '</div>',
          
    '<div class="{baseBodyCls} {fieldBodyCls}" id="{id}-bodyEl" role="presentation">',
            
    '{beforeSubTpl}',
            
    '{[values.$comp.getSubTplMarkup()]}',
            
    '{afterSubTpl}',
          
    '</div>',
          
    '<div id="{id}-errorEl" class="{errorMsgCls}" style="display:none" width="{errorIconWidth}"></div>',
        
    '</div>',
        {
          
    disableFormatstrue
        
    }
      ], 
    in a subclass of Ext.form.field.Base and it seems to work, but there are still many (5) unneeded Elements, but if i remove them i get a load of errors...

    Isn't there a possibility to render only what is needed?
    I understand why there is a 3 column layout for fields and why its inside a table. But outside of a Form-Layout if you set hideLabel=true and use an msgTarget thats not "under" or "side" i see no reason for that.

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Yes, if you don't want labels, or error messages within the Field Component, it could be a lot simpler.

    It generates structure to handle every case.

    We'll have to look into optimizing it when there's time!

  5. #5
    Sencha User
    Join Date
    Mar 2008
    Posts
    24
    Vote Rating
    0
    larsfrommars is on a distinguished road

      0  

    Default


    thanks, i'm looking forward to it!

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar