当前位置:网站首页>104. SAP UI5 表格控件的支持复选(Multi-Select)以及如何用代码一次选中多个表格行项目
104. SAP UI5 表格控件的支持复选(Multi-Select)以及如何用代码一次选中多个表格行项目
2022-07-01 21:48:00 【汪子熙】
有本教程的学习者,在我的文章下留言,咨询关于 SAP UI5 表格控件使用代码进行复选(Multi-Select) 的问题。本文就针对该问题进行解答。

我们在本教程第 66 步骤的基础上做增强,本教程的代码,位于文件夹 104 内,链接如下。
进入文件夹 104,执行命令行 ui5 serve, 访问如下 url:
http://localhost:8080/webapp/index.html
可以看到新增加了一个叫做 Select User 的按钮。

点击之后,整个表格里所有年龄 大于等于 25 岁的用户对应的行项目,会自动被选中。
效果如下:

再次点击该按钮后,所有选中的行项目将取消选中状态,表格又回到初始渲染时的组昂头。因此,这个例子,演示了如何使用代码一次性选中表格多条行项目,以及清楚表格行项目选择状态的实现方式。
在实际项目中,这
边栏推荐
猜你喜欢

447-哔哩哔哩面经1

Sonic cloud real machine learning summary 6 - 1.4.1 server and agent deployment

【MySQL】索引的分类

高攀不起的希尔排序,直接插入排序

QT版本华睿相机的Demo程序实现

How to write a performance test plan

Flume interview questions

GenICam GenTL 标准 ver1.5(4)第五章 采集引擎

Object memory layout

The second anniversary of the three winged bird: the wings are getting richer and the take-off is just around the corner
随机推荐
固定资产管理子系统报表分为什么大类,包括哪些科目
MySQL中对于事务的理解
Intelligent computing architecture design of Internet
【juc学习之路第9天】屏障衍生工具
园区全光技术选型-中篇
Rust语言——小小白的入门学习05
灵动微 MM32 多路ADC-DMA配置
The second anniversary of the three winged bird: the wings are getting richer and the take-off is just around the corner
搜狗微信APP逆向(二)so层
leetcode - 287. 寻找重复数
内部字段分隔符
内存导致的电脑游戏中显示hdmi无信号 从而死机的情况
Yolov5.5 call local camera
Fully annotated SSM framework construction
What is the difference between PMP and NPDP?
隐藏用户的创建和使用
linux下清理系统缓存并释放内存
MySQL的存储过程
keras训练的H5模型转tflite
SAP UI5 应用开发教程之一百零四 - SAP UI5 表格控件的支持复选(Multi-Select)以及如何用代码一次选中多个表格行项目