2011-06-09 80 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' }