【发布时间】:2019-05-08 10:06:22
【问题描述】:
我正在使用Tree with checkboxes,我想添加一个按钮来检查所有复选框,我尝试了不同的方法但效果不佳,我能做到的最好的事情是:
selectAllFiscal() {
this.rootItems.forEach(node => {
this.todoItemSelectionToggle(node);
});
}
rootItems 是一个根节点数组。
我在迭代checklistSelection.selected时可以看到节点被选中,但是浏览器中没有选中复选框,谁能指出问题,谢谢。
【问题讨论】:
标签: angular checkbox tree angular-material