1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    2
    Vote Rating
    0
    Anubys is on a distinguished road

      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
    38,534
    Vote Rating
    1115
    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 don't need a template, you need to add items and use layouts if needed.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    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
    Anubys is on a distinguished road

      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 Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,707
    Vote Rating
    116
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      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
    __________

    S-CIRCLES Social Network Engine

Thread Participants: 2

Tags for this Thread