最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Extjs 4 how hideshow trigger on combox field without doComponentLayout? - Stack Overflow

programmeradmin11浏览0评论

I am need hide/show trigger on fields (bobox,*date* and etc.) without invoke method doComponentLayout() (source code of setReadOnly method). The method doComponentLayout() is very slowly on IE. Can anybody help me? Thank you!

I am need hide/show trigger on fields (bobox,*date* and etc.) without invoke method doComponentLayout() (source code of setReadOnly method). The method doComponentLayout() is very slowly on IE. Can anybody help me? Thank you!

Share Improve this question asked Oct 18, 2012 at 8:53 vedmedvedmed 3552 gold badges8 silver badges16 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

You can also use the setHideTrigger(true) method. This is a private method on Ext.form.field.ComboBox - (see Extjs ComboBox, make sure to check "Private" in the "Show" menu.)

Calling myCombo.triggerEl.hide() doesn't work if the bo ponent hasn't been rendered yet.

You can also hide the trigger when ponent is first initialized by setting the config property hideTrigger: false.

You should be able to show/hide the triggerEl that is a property of anything that extends Ext.form.field.Trigger (such as bo, date, etc.).

See live example here:

http://jsfiddle/hWGYE/765/

发布评论

评论列表(0)

  1. 暂无评论