xtype question

  • Hello Sir

    original my code is

    new Ext.form.TextArea({
    autoScroll: true,
    selectOnFocus: false,
    width: '100%'
    }}


    then i use "xytpe" to promote performance ,and set id to get the component


    {
    id:'xxx',
    xtype: 'textarea',
    autoScroll: true,
    selectOnFocus: false,
    width: '100%'
    }


    How could I get the textArea component ,and can use Ext.form.TextArea methods ?

    I Use " Ext.get('xxx') " beacuse this method is return Element Object ,so i can not use Ext.form.TextArea methods.

    Thanks :D


  • Use Ext.getCmp("xxx") to retrieve a reference to the Ext.form.TextArea instance.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about xtype question , Please add it free.

    7 January 2009 | cameltoepants.com | edit