本文介绍了如何设置宽度到dojox / form / CheckedMultiSelect?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
var checkedMultiSelect = new CheckedMultiSelect({
id:something,
dropDown:true,
multiple:true,
labelText:something,
store:dataStore,
style:{ width:240px} // this does not work
},placeholder);
如何设置此窗口小部件的宽度?
我使用dojo 1.9
最好的问候
解决方案
查看这个小提琴:
此帖中被盗:
您必须覆盖一些CSS样式...
.narrow .dojoxCheckedMultiSelectWrapper {
width:200px;
}
I have this following code in dojo wich using dojox/form/CheckedMultiSelect :
var checkedMultiSelect = new CheckedMultiSelect ({
id:"something",
dropDown: true,
multiple: true,
labelText:"something",
store: dataStore,
style : {width:"240px"} // this doesn't work
}, "placeholder");
How do I set a width to this widget ? I use dojo 1.9Best regards
解决方案
Check out this fiddle:
http://jsfiddle.net/phusick/qrSWu/
stolen from this post:
Dojo CheckedMultiSelect text wrap and horizontal scrolling
You have to overwrite some css styles...
.narrow .dojoxCheckedMultiSelectWrapper {
width: 200px;
}
这篇关于如何设置宽度到dojox / form / CheckedMultiSelect?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!