当前位置:网站首页>Sail soft implements a radio button, which can uniformly set the selection status of other radio buttons

Sail soft implements a radio button, which can uniformly set the selection status of other radio buttons

2022-04-23 16:10:00 Huang ha ha~

such as , Check an option of the radio button , The same option for other radio buttons is also selected ; deselect , Others have also been deselected
Select the box of the top radio button in the normal report to set the component , Click event , Click Add Event , Check status change .
 Insert picture description here
Inside js as follows :
var a = this.getValue();
var status = contentPane.getWidgetsByName(“status”);
if(status.length>0){
$.each(status,function(i,item){
var cell = item.options.location;
if(a.length0){
item.reset();
}
contentPane.setCellValue(cell,null,a);
})
}else{
contentPane.setCellValue(“B2”,null,a);
if(a.length
0){
contentPane.getWidgetByName(“status”).reset();
}
}

This state can be achieved .

版权声明
本文为[Huang ha ha~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231403371195.html