angularCtrlShiftSelect:AngularJS 指令允许使用 CTRL SHIFT 和鼠标多选项目

时间:2021-06-19 11:23:15
【文件属性】:
文件名称:angularCtrlShiftSelect:AngularJS 指令允许使用 CTRL SHIFT 和鼠标多选项目
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-19 11:23:15
JavaScript angularCtrlShiftSelect angularCtrlShiftSelect 是一组轻量级且简单的指令,它允许您使用鼠标左键单击和 CTRL 和 SHIFT 来选择多个项目,就像您习惯于从桌面应用程序中一样。 安装 下载最新的脚本文件 - 在您的网页中包含脚本 用法 在您的应用程序/模块中包含模块“davidbohunek.ctrlshiftselect” 使用标准的ng-repeat来呈现你的列表 将属性ctrlshiftselect添加到项目的根元素,例如添加到table或ul元素 在ng-repat项目模板中(参见下面的示例),添加属性ctrlshiftselect-model="item.isSelected" (将“item.isSelected”替换为与您相关的任何内容,这会将模型项上的属性设置为布尔值,具体取决于如果它被选中或未选中) 例子 angul
【文件预览】:
angularCtrlShiftSelect-master
----.gitattributes(378B)
----src()
--------ctrlshiftselect.js(4KB)
----example()
--------ctrlshiftselect.min.js(2KB)
--------index.html(2KB)
----gulpfile.js(433B)
----LICENSE(1KB)
----README.md(1KB)
----dist()
--------ctrlshiftselect.min.js(2KB)
----.gitignore(616B)
----package.json(557B)

网友评论