Results 1 to 4 of 4

Thread: Creates the templates of form

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default Creates the templates of form

    I need to create a template for form, i read many documentation but i not found how i can create templates for forms. Please give me a simple example.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    You don't need a template, you need to add items and use layouts if needed.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    Aug 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default

    My task is next: get the html text and put between some tags input form elements. For example:
    <div id="container">
    Name: <div id="name"></div>
    Surname: <div id="surname"></div>
    </div>
    result:
    <div id="container">
    Name: <div id="name"><input type="Text" name="name" value=""/></div>
    Surname: <div id="surname"><input type="Text" name="surname" value=""/></div>
    </div>
    the input elements as the native extjs objects

  4. #4
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,747
    Vote Rating
    129
      0  

    Default

    take a look at:
    http://dev.sencha.com/deploy/ext-4.1...m/dynamic.html

    -> the source does not completely follow best practices, but should give you an idea how to work "the sencha way" to achieve your goal.

    best regards
    tobiu
    Best regards
    Tobias Uhlig

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
  •