Show field label of a textfield?

时间:2015-07-28 16:03:19

标签: javascript html extjs

I want to know the field label for a text field. Here's what i got so far:

var ok = Ext.ComponentQuery.query('textfield[itemId=fieldID]')[0];
//how to get the field label of that textfield????

2 个答案:

答案 0 :(得分:3)

您希望使用sencha docs

中记录的getFieldLabel()方法

这是fiddle demonstrating

Ext.ComponentQuery.query('#myField')[0].getFieldLabel()

答案 1 :(得分:1)

TimeZoneInfo
相关问题