开发者

ExtJS4 - Refs : ref a tbtext [closed]

开发者 https://www.devze.com 2023-03-11 21:59 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I need to have a ref for a toolbar text component :

in the controller :

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

int the view :

dockedItems: [{
  xtype: 'toolbar',
  dock: 'top',
  items: [
    { xtype: '开发者_StackOverflow社区button', action: 'previous', iconCls: 'item-previous' },
    { xtype: 'tbtext', id: 'year' },
    { xtype: 'button', action: 'next', iconCls: 'item-next' },
  ]
}]


The issue was { ref: 'myRef', selector: 'myWidget #myid' }

0

精彩评论

暂无评论...
验证码 换一张
取 消