使用BoundList作为小部件 [英] Using BoundList as widget
本文介绍了使用BoundList作为小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个扩展的绑定列表,我将其用作小部件.获取/设置值和其他方法效果很好,但是:如何在其之前添加字段标签?设置值示例:
I have an extended bound list, and I use it as a widget. Get/set value and other works good, but: How can I add a field label before it? Example of set value:
setValue: function (v) {
this.value = v;
// TODO select selected
var sm = this.getSelectionModel();
var store = this.getStore();
var rec = store.findRecord(this.valueField, v);
sm.select(rec);
},
你能帮我吗?还是我唯一需要将边界列表放在面板中的解决方案?
Can you help me? Or is the only solution that I have to put this bounding list in a panel?
推荐答案
解决此问题的最简单方法是将其放在FieldContainer
中.
The easiest way to get around this is to put it inside a FieldContainer
.
这篇关于使用BoundList作为小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文