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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,691
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    You don't need a template, you need to add items and use layouts if needed.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost 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 - Services Team tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,292
    Vote Rating
    6
    tobiu will become famous soon enough

      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
    __________


    Sencha Inc
    Tobias Uhlig, Solutions Engineer

    Private Projects:

    S-CIRCLES Social Network Engine
    Commercial Theming for Ext JS 3 & 4

Tags for this Thread