Angular PrimeNG Turbotable全部展开

Angular PrimeNG Turbotable全部展开,angular,html,typescript,primeng,primeng-turbotable,Angular,Html,Typescript,Primeng,Primeng Turbotable,我正在使用Priming turbotable,但默认情况下无法扩展所有RAW this.cars.forEach(function(car) { thisRef.expandedRows[car.vin] = true; }); 已尝试使用以下示例,但似乎不起作用 像这样替换foreach循环中的代码,默认情况下它将扩展所有行 this.cars.forEach(function(car) { thisRef.expandedRows[car.vin] = tru

我正在使用Priming turbotable,但默认情况下无法扩展所有RAW

 this.cars.forEach(function(car) {
     thisRef.expandedRows[car.vin] = true;
 });

已尝试使用以下示例,但似乎不起作用


像这样替换foreach循环中的代码,默认情况下它将扩展所有行

 this.cars.forEach(function(car) {
     thisRef.expandedRows[car.vin] = true;
 });