I am creating new widgets and for the combo box, it appears that it is resetting the css class that I want with the default.
combo box widget JavaScript code
Code: Select all
pui.toolbox.add({
category: "Input Controls",
widget: "combo box",
text: "Combo Box",
proxyHeight: 226,
proxyWidth: 325,
proxyHTML: '<div id="P1OPT.1" class="win-combo-option" style="position: absolute; left: 5px; top: 4px; background-color: rgb(255, 255, 255); overflow: hidden; border: 1px solid rgb(127, 157, 185); height: 25px; width: 125px;"><input type="text" autocomplete="off" class="win-combo-option" name="undefined" maxlength="2" style="position: absolute; border: 0px none; top: 0px; left: 1px; padding-top: 1px; font-family: "Trebuchet MS"; font-weight: normal; outline: none; width: 104px;"><img src="/profoundui/proddata/images/combo/down_arrow.gif" style="position: absolute; top: 0px; right: 0px; width: 18px; height: 20px;"></div>',
defaults: {
"value":"Combo Box",
"css class": "win-combo-optio",
"width": "125px"
}
});
Code: Select all
.win-combo-option {
background-color: #fff !important;
border-color: #ccc !important;
color: #373737;
font-weight: 700;
height: 34px !important;
border-radius: 4px;
}
div.combo-option {
background-color: #fff !important;
}
.win-combo-option:after {
color: #373737;
font-family: "FontAwesome";
content: "\F078";
font-size: 21px;
top: 0px;
right: 2px;
position: absolute;
cursor: pointer;
z-index: 111;
padding: 5px;
}
.win-combo-option > input {
width: 100% !important;
height: 25px !important;
padding: 3px 0px 3px 12px !important;
font-size: 13px;
font-family: "Open Sans", sans-serif !important;
}
.win-combo-option > img {
visibility: hidden;
}
.combo-option-select {
background-color: #cfe9ff;
background-image: none;
font-size: 13px;
padding: 1px !important;
}
.combo-option {
padding: 1px !important;
font-size: 13px;
}
.combo-options {
border: 1px solid #ccc;
padding: 5px !important;
background-color: #fff;
}
Code: Select all
<div id="ComboBox2" style="position: absolute; left: 85px; top: 270px; border: 1px solid rgb(127, 157, 185); cursor: default; width: 125px; background-color: rgb(255, 255, 255); overflow: hidden; height: 20px;" class="input"><input type="text" autocomplete="off" class="input" name="undefined" readonly="" style="position: absolute; border: 0px none; top: 0px; left: 1px; padding-top: 1px; font-family: "Trebuchet MS"; font-weight: normal; outline: none; cursor: default; width: 104px;"><img src="/profoundui/proddata/images/combo/down_arrow.gif" style="position: absolute; top: 0px; right: 0px; width: 18px; height: 20px;"></div>
If I remove the CSS class and add back on the class of .win-combo-option everything works as I expect it to. Is there somewhere else I need to make a change?
Thanks,
Jon