admin管理员组文章数量:1396820
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 badges2 Answers
Reset to default 5You 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/
本文标签: javascriptExtjs 4 how hideshow trigger on combox field without doComponentLayoutStack Overflow
版权声明:本文标题:javascript - Extjs 4 how hideshow trigger on combox field without doComponentLayout? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744111772a2591323.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论