Results 1 to 2 of 2

Thread: Ext.ComponentQuery.query ??????? (Sencha Touch 2.4.1)

  1. #1

    Default Ext.ComponentQuery.query ??????? (Sencha Touch 2.4.1)

    Ext.ComponentQuery.query??????????????????
    ???"selector"??????Component????????????????????????????????????????Component????????????????????

    ??
    Code:
    var panel = Ext.create('Ext.Panel', {
        items: [
            { xtype: 'textfield' // textfield-1},
            {xtype: 'textfield' // textfield-2},
            {xtype: 'textfield' // textfield-3},
            {xtype: 'checkboxfield' // checkboxfield-1},
            {xtype: 'checkboxfield' // checkboxfield-2}
        ]});
    
    var fielditems = panel.query('field');
    console.log(fielditems);
    ??????????
    ????
    [ textfield-1, textfield-2, textfield-3, checkboxfield-1, checkboxfield-2]

    ???
    [ textfield-3, checkboxfield-2]

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

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    8

    Default

    ????????????????[2.4.0.487] ? [2.4.1.527] ??
    ???????????????????????

    ??????
    ????touch-2.4.0-gpl???touch-2.4.1-gpl????????
    ???SenchaCmd????????????????
    ????sencha -sdk /path/to/2.4.0 generate app Test240
    ????sencha -sdk /path/to/2.4.1 generate app Test241
    ???????????app.js??launch???
    Code:
    var panel = Ext.create('Ext.Panel', {
        items: [
            {xtype: 'textfield'},
            {xtype: 'textfield'},
            {xtype: 'textfield'},
            {xtype: 'checkboxfield'},
            {xtype: 'checkboxfield'}
        ]});
    
    
    var fielditems = panel.query('field');
    console.log(fielditems);
    console.log(Ext.version);
    ??????????????????????????????????????????

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

Posting Permissions

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