当前位置:网站首页>帆软实现一个单选按钮,可以统一设置其他单选按钮的选择状态
帆软实现一个单选按钮,可以统一设置其他单选按钮的选择状态
2022-04-23 14:04:00 【黄哈哈~】
比如,选中单选按钮的一个选项,其他单选按钮的相同选项也被选中;取消选择,其他的也被取消选择
在普通报表中选中最上方的单选按钮的框进行组件设置,点击事件,点击添加事件,选中状态改变。
里面的js如下:
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.length0){
contentPane.getWidgetByName(“status”).reset();
}
}
可以实现该状态了。
版权声明
本文为[黄哈哈~]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Miss_HuangT/article/details/109198594
边栏推荐
- 变长参数__VA_ARGS__ 和 写日志的宏定义
- Cdh6 based on CM management 3.2 cluster integration atlas 2 one
- leetcode--977. Squares of a Sorted Array
- 分页SQL
- 关于stream流,浅记一下------
- VsCode-Go
- 封装logging模块
- Easyexcel读取excel表地理位置数据,按中文拼音排序
- 微信小程序进行蓝牙初始化、搜索附近蓝牙设备及连接指定蓝牙(一)
- How does redis solve the problems of cache avalanche, cache breakdown and cache penetration
猜你喜欢
随机推荐
VsCode-Go
groutine
FBS(fman build system)打包
Restful WebService和gSoap WebService的本质区别
Subscription number development of wechat applet (message push)
Intégration de Clusters CDH Phoenix basée sur la gestion cm
生产环境——
封装logging模块
33 million IOPs, 39 microsecond delay, carbon footprint certification, who is serious?
基于Ocelot的gRpc网关
RobotFramework 之 项目框架
Interesting talk about network protocol
Detailed tutorial on the use of smoke sensor (mq-2) (based on raspberry pie 3B +)
程序编译调试学习记录
JS force deduction brush question 103 Zigzag sequence traversal of binary tree
Oracle alarm log alert Chinese trace and trace files
Nifi 快速安装及文件同步操作
PATH环境变量
smart-doc + torna生成接口文档
Android篇:2019初中级Android开发社招面试解答(中