@@ -20,35 +20,34 @@ public function getCoreTableAttributes(): array
2020 ];
2121 }
2222
23-
2423 #[Computed]
2524 public function getComponentWrapperAttributes (): array
2625 {
2726 return count ($ this ->componentWrapperAttributes ) ? $ this ->componentWrapperAttributes : ['id ' => 'datatable- ' .$ this ->getId ()];
2827 }
29-
28+
3029 #[Computed]
3130 public function getTableWrapperAttributes (): array
3231 {
33- return array_merge (['wire:key ' => $ this ->getTableName () . '-twrap ' ], (count ($ this ->tableWrapperAttributes ) ? $ this ->tableWrapperAttributes : ['default ' => true ]));
32+ return array_merge (['wire:key ' => $ this ->getTableName (). '-twrap ' ], (count ($ this ->tableWrapperAttributes ) ? $ this ->tableWrapperAttributes : ['default ' => true ]));
3433 }
3534
3635 #[Computed]
3736 public function getTableAttributes (): array
3837 {
39- return array_merge (['wire:key ' => $ this ->getTableName () . '-table ' , 'id ' => 'table- ' .$ this ->getTableName ()], (count ($ this ->tableAttributes ) ? $ this ->tableAttributes : ['default ' => true ]));
38+ return array_merge (['wire:key ' => $ this ->getTableName (). '-table ' , 'id ' => 'table- ' .$ this ->getTableName ()], (count ($ this ->tableAttributes ) ? $ this ->tableAttributes : ['default ' => true ]));
4039 }
4140
4241 #[Computed]
4342 public function getTheadAttributes (): array
4443 {
45- return array_merge (['wire:key ' => $ this ->getTableName () . '-thead ' ], (count ($ this ->theadAttributes ) ? $ this ->theadAttributes : ['default ' => true ]));
44+ return array_merge (['wire:key ' => $ this ->getTableName (). '-thead ' ], (count ($ this ->theadAttributes ) ? $ this ->theadAttributes : ['default ' => true ]));
4645 }
4746
4847 #[Computed]
4948 public function getTbodyAttributes (): array
5049 {
51- return array_merge (['wire:key ' => $ this ->getTableName () . '-tbody ' , 'id ' => $ this ->getTableName ()." -tbody " ], (count ($ this ->tbodyAttributes ) ? $ this ->tbodyAttributes : ['default ' => true ]));
50+ return array_merge (['wire:key ' => $ this ->getTableName (). '-tbody ' , 'id ' => $ this ->getTableName ().' -tbody ' ], (count ($ this ->tbodyAttributes ) ? $ this ->tbodyAttributes : ['default ' => true ]));
5251 }
5352
5453 /**
0 commit comments