问题描述
我有一个问题,我必须对每个 tipoProyecto 行进行分组, 但在文档中与模板中的列一起出现 https://swimlane.github.io/ngx-datatable/#row-grouping
我在打字稿上定义了列,在模板中没有。
this.columns = [
{ $$id: 'proyecto.codigo',prop: 'proyecto.codigo',name: 'Proyecto',cellTemplate: this.selectTemplate },{ $$id: 'actividad.id',prop: 'actividad.nombre',name: 'Actividad',cellTemplate: this.actividadTemplate },{ prop: 'proyecto.tipoProyecto.nombre',name: 'Tipo Proyecto' },{ $$id: 'detalle.id',prop: 'detalle.nombre',name: 'Detalle',cellTemplate: this.detalleTemplate },{ prop: 'master',name: 'MASTER',cellTemplate: this.masterTemplate },{ $$id: 'tipoHora.id',prop: 'tipoHora.nombre',name: 'Tipo Hora',cellTemplate: this.tipohoraTemplate },{ prop: 'lunes',name: 'Lunes',cellTemplate: this.inputTemplate,summaryFunc: (cells) => this.sumaLunes(cells) },{
prop: 'martes',name: 'Martes',summaryFunc: (cells) => this.sumaMartes(cells),},{
prop: 'miercoles',name: 'Miercoles',summaryFunc: (cells) => this.sumaMiercoles(cells),{
prop: 'jueves',name: 'Jueves',summaryFunc: (cells) => this.sumaJueves(cells),{
prop: 'viernes',name: 'Viernes',summaryFunc: (cells) => this.sumaViernes(cells),{ prop: 'eliminar',name: 'Eliminar',cellTemplate: this.checkBoxTemplate },];
在文档中,列是在模板中定义的。 我必须使用这个方法。 我需要根据他们的项目类型对行进行分组
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)