admin管理员组文章数量:1026989
I know this might not be the way it was intended to be used, but I'm going to ask anyway:
Is there a way to create a tagfield
without the drop down list?
What we have is a custom control which is a bination of a tagfield and an itemSelector. The itemSelector is inside a panel which appears via a toggle button. After we have selected some values, we hide the panel and those values get selected in the tagfield. We are essentially not using the tagfield's bobox properties, but we want to keep the ability to remove any records by pressing the "x" beside the records. Is there a configuration or other way to block the tagfield from showing the drop down list when it is clicked?
I know this might not be the way it was intended to be used, but I'm going to ask anyway:
Is there a way to create a tagfield
without the drop down list?
What we have is a custom control which is a bination of a tagfield and an itemSelector. The itemSelector is inside a panel which appears via a toggle button. After we have selected some values, we hide the panel and those values get selected in the tagfield. We are essentially not using the tagfield's bobox properties, but we want to keep the ability to remove any records by pressing the "x" beside the records. Is there a configuration or other way to block the tagfield from showing the drop down list when it is clicked?
Share Improve this question asked Apr 29, 2015 at 12:59 PentaKonPentaKon 4,6566 gold badges49 silver badges84 bronze badges2 Answers
Reset to default 5IMO easiest way is to override extend
method (it might be empty) and set hideTrigger
to true
:
{
xtype: 'tagfield',
store: store,
expand: Ext.emptyFn,
hideTrigger: true
}
Fiddle: http://jsfiddle/mmvg1bL2/
there's also triggerOnClick
boolean config option (6.0.1, 5.1.2)
which achieves the same; also to be used with hideTrigger: true
I know this might not be the way it was intended to be used, but I'm going to ask anyway:
Is there a way to create a tagfield
without the drop down list?
What we have is a custom control which is a bination of a tagfield and an itemSelector. The itemSelector is inside a panel which appears via a toggle button. After we have selected some values, we hide the panel and those values get selected in the tagfield. We are essentially not using the tagfield's bobox properties, but we want to keep the ability to remove any records by pressing the "x" beside the records. Is there a configuration or other way to block the tagfield from showing the drop down list when it is clicked?
I know this might not be the way it was intended to be used, but I'm going to ask anyway:
Is there a way to create a tagfield
without the drop down list?
What we have is a custom control which is a bination of a tagfield and an itemSelector. The itemSelector is inside a panel which appears via a toggle button. After we have selected some values, we hide the panel and those values get selected in the tagfield. We are essentially not using the tagfield's bobox properties, but we want to keep the ability to remove any records by pressing the "x" beside the records. Is there a configuration or other way to block the tagfield from showing the drop down list when it is clicked?
Share Improve this question asked Apr 29, 2015 at 12:59 PentaKonPentaKon 4,6566 gold badges49 silver badges84 bronze badges2 Answers
Reset to default 5IMO easiest way is to override extend
method (it might be empty) and set hideTrigger
to true
:
{
xtype: 'tagfield',
store: store,
expand: Ext.emptyFn,
hideTrigger: true
}
Fiddle: http://jsfiddle/mmvg1bL2/
there's also triggerOnClick
boolean config option (6.0.1, 5.1.2)
which achieves the same; also to be used with hideTrigger: true
本文标签: javascriptExtjs Creating a tagfield without the listStack Overflow
版权声明:本文标题:javascript - Extjs Creating a tagfield without the list - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745658167a2161720.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论