天天看点

unigui中设置unidbradiogroup的样式

在unidbradiogroup的clientevents中的extevents事件的boxready事件中加入代码。如图:

unigui中设置unidbradiogroup的样式
if (sender.legend) 
  {
    if (sender.legend.el) 
    {
    var legend=sender.legend.el;
    legend.dom.setAttribute('align', 'center'); //left, right
    legend.dom.style['width']="auto";
    legend.dom.style['margin-bottom']="0px";
    legend.dom.style['border-bottom']="0px";
    
    var legendText=legend.select('.x-fieldset-header-text').elements[0];
    legendText.style['color']="green";
    legendText.style['font-size']="12px";
    legendText.style['font-weight']="bold";
    legend.dom.style['text-align']='center';
    }
  }
           

结果。

unigui中设置unidbradiogroup的样式