我有很长的组件列表,这些组件又调用子安装文件来安装所选组件。 所有组件都带有复选框,用户可以选择和取消选中。 我需要在顶部单击一个复选框,它将在组件列表中选中/取消选中全部。
可以这样做吗?
感谢您阅读
答案 0 :(得分:0)
添加顶级主组件:
[Components]
Name: "all"; Description: "All"; Types: full compact custom;
Name: "all\comp1"; Description: "Component 1"; Types: full compact custom;
Name: "all\comp2"; Description: "Component 2"; Types: full compact custom;
Name: "all\comp3"; Description: "Component 3"; Types: full compact custom;