Results 1 to 2 of 2

Thread: examples - kitchensink???form??????????

  1. #1

    Default examples - kitchensink???form??????????

    ????????????????
    sencha-touch-1.0.1a????????????????examples???sencha-touch??????????????Form?textfield??????????????????????????

    examples - forms ? index.js ?????Form????
    ?examples - forms - index.js ????
    var formBase = {
    scroll: 'vertical',
    url : 'postUser.php',
    standardSubmit : false,
    items: [
    {
    xtype: 'fieldset',
    title: 'Personal Info',
    instructions: 'Please enter the information above.',
    defaults: {
    required: true,
    labelAlign: 'left',
    labelWidth: '40%'
    },
    items: [
    {
    xtype: 'textfield',
    name : 'name',
    label: 'Name',
    useClearIcon: true,
    autoCapitalize : false
    },
    ?????
    ?????????
    ??????
    form = new Ext.form.FormPanel(formBase);
    form.show();

    ????FormPanel ??????????
    ??????????????????????
    form.getValues().name????????????
    ?????Form????????kitchensink ??? forms.js ???????
    ??????????????????????????????

    ?examples - kitchensink - src - demos - forms.js ????
    demos.Forms = new Ext.TabPanel({
    items: [{
    title: 'Basic',
    xtype: 'form',
    id: 'basicform',
    scroll: 'vertical',
    items: [{
    xtype: 'fieldset',
    title: 'Personal Info',
    instructions: 'Please enter the information above.',
    defaults: {
    // labelAlign: 'right'
    labelWidth: '35%'
    },
    items: [{
    xtype: 'textfield',
    name: 'name',
    label: 'Name',
    placeHolder: 'Tom Roy',
    autoCapitalize : true,
    required: true,
    useClearIcon: true
    },

    ???????basicform.getValues().name???????????
    ???????????????????

    TabPanel ???xtype: 'form',???????????
    ??????????????????????????
    ????????????????????????????????

    ?????????????

  2. #2
    Sencha User ideodora's Avatar
    Join Date
    Mar 2011
    Location
    Nagoya-Japan
    Posts
    7

    Default ??????????

    ???????????

    ?demos.Forms.items.items[0].getValues().name

    ?demos.Forms.items.items[0].items.items[0].items.items[0].getValue()


    ?Ext.getCmp('basicform').getValues().name

    ?Ext.getCmp('basicform').items.items[0].items.items[0].getValue()



    ??? demos.Forms.items.items[0] ? Ext.getCmp('id')?????????? id ? basicform?
    basicform ? xtype ? form ??? getValues() ???????????name ?????????
    form???????????????? getValue() ????? ??


    ???????????????????????????

Similar Threads

  1. Examples
    By scaswell1 in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 12 Aug 2009, 10:00 AM
  2. New Examples at examples.extjs.eu
    By jsakalos in forum Community Discussion
    Replies: 6
    Last Post: 14 May 2008, 8:51 PM
  3. New Examples
    By jsakalos in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 1 May 2008, 9:54 AM
  4. my examples
    By tylzhuang in forum Community Discussion
    Replies: 25
    Last Post: 31 Aug 2007, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •