开发者

ExtJs Combobox with multiple values in one selection

开发者 https://www.devze.com 2023-02-23 03:12 出处:网络
I m new to ExtJs. I was wondering if there\'s some way wherein i can display multi-line combo-box in ExtJS in a way that for eg : when i select one item, that item may contain 2 values i.e ID and Na开

I m new to ExtJs. I was wondering if there's some way wherein i can display multi-line combo-box in ExtJS in a way that for eg : when i select one item, that item may contain 2 values i.e ID and Na开发者_高级运维me., and both the items are considered as one selection, and not with Ctrl+Select way.


Sure there is. Look at the tpl config option of ExtJS ComboBox. You can define a custom template where you may utilize any fields from the Store of the ComboBox as you wish. (See the example included for the tpl config option from ExtJS API documentation that I linked.)

0

精彩评论

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