2011-06-09 79 views
0

我需要有一個工具欄文本組件的Ref:ExtJS4 - 參考文獻:REF一個tbtext

控制器

{ ref: 'toolYear', selector: 'creditgrid tbtext[id=year]'} 

INT的觀點:

dockedItems: [{ 
    xtype: 'toolbar', 
    dock: 'top', 
    items: [ 
    { xtype: 'button', action: 'previous', iconCls: 'item-previous' }, 
    { xtype: 'tbtext', id: 'year' }, 
    { xtype: 'button', action: 'next', iconCls: 'item-next' }, 
    ] 
}] 
+0

那麼,這是什麼問題? – 2011-06-11 07:09:03

回答

1

問題是{ ref: 'myRef', selector: 'myWidget #myid' }