Results 1 to 2 of 2

Thread: How to extend TextField and insert additional component between the Label and Text

  1. #1
    Sencha Premium User
    Join Date
    Jul 2013
    Posts
    23
    Vote Rating
    6
      0  

    Question How to extend TextField and insert additional component between the Label and Text

    The TextField that is supplied by ExtJS 4.2.1 is basically a Label and a TextField inside aContainer set to layout hbox.
    I need to insert a ComboBox in between the Label and the TextField inside the Container.
    I have tried to extend the TextField class but can't find anything that concretely shows the appropriate syntax for adding a Component to another Components hierarchy.
    Can someone please post an answer code snippet or link to something that explains to someone that is brand new to ExtJS how to extend a component and modify it like I am trying to?
    I just need to be pointed in the right direction and I think I can run with it.

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505
    Vote Rating
    255
      0  

    Default

    A fieldcontainer should do just what you're needing. Check out the example at the top of the API docs page here:
    http://docs.sencha.com/extjs/4.2.1/#...FieldContainer

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
  •