Results 1 to 2 of 2

Thread: [Classic] Field description beside field

  1. #1
    Sencha Premium User
    Join Date
    Mar 2011

    Default [Classic] Field description beside field


    I was wondering if there is any "easy" method to add a description text beside an Ext.form.Field. (text, combo, check, ...)

    Like: Label: [Field] DescriptionText

    I don't want to use a fieldcontainer (field+displayfield) - which would be the first obvious approach...

    Reason beeing - I want to add/remove/edit the description on the fly.
    Then I would need to encapsulate all my fields within fieldcontainers (which would bloat the markup) - just a few fields need the description displayed...

    I tried overwriting the Ext.form.Labelable (labelableRenderTpl) mixin - but without any luck,..
    (Overwriting mixins seems not possible?)

    Can anyone point me in the right direction?


  2. #2
    Sencha Premium User
    Join Date
    Sep 2016


    I would use a container with hbox layout to encapsulate the textfield and displayfield. Then, set the label of the fields. If there is only one instance, you can use an ID on the display field to dynamically set it's label easily. (using Ext.getCmp('displayfield's ID').setValue(whatever))

Similar Threads

  1. [OPEN] [6.2.1][classic] Missing description for Ext.window.MessageBox#show()
    By coyote01 in forum Sencha Documentation
    Replies: 1
    Last Post: 9 May 2017, 12:40 PM
  2. Replies: 1
    Last Post: 18 Apr 2017, 1:16 PM
  3. Replies: 0
    Last Post: 30 Jan 2015, 1:49 AM
  4. How to put a description icon with qtip in a field label
    By dias in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 26 Mar 2008, 2:06 PM
  5. Form Field Label description
    By mapo in forum Sencha Ext JS Q&A
    Replies: 6
    Last Post: 17 Aug 2007, 10:32 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