これはコードの一部です。その中にWindowとがFormあります。とがありtext fieldますbutton。の値を取得して、ユーザーが をクリックしtextfieldたときに に保存する必要があります。varbutton
コード:
Ext.define('MyApp.view.MyV', {
    extend: 'Ext.window.Window',
    alias: 'widget.myV',
    id: 'myvid',
    initComponent: function() {
        var me = this;
        Ext.applyIf(me, {
            items: [
                {
                    xtype: 'form',
                    x: 15,
                    y: 40,
                    frame: true,
                    height: 420,
                    id: 'f11',
                    layout: {
                        type: 'absolute'
                    },
 
                        },
                                                 {
                            xtype: 'textareafield',
                            x: 150,
                            y: 185,
                            id: 'name',
                            width: 320,
                            fieldLabel: 'Name'
                        },
                        {
                            xtype: 'button',
                            x: 100,
                            y: 150,
                           
                            text: 'Send',
                            listeners: {
                                click: {
                                    fn: me.onClickButton,
                                    scope: me
                                }
                            }
                        },
                                            ]
                }
            ],
…..
     
        });
ユーザーがボタンをクリックしたときのアクション。以下は私のコードです
onClickButton: function(button, e, options) {
        var nameOfPerson    = this.up('form').down('#myvid > #f11 > #name');
textfieldユーザーが入力した値を取得して変数に保存するのを手伝ってもらえますかnameOfPerson。?