Skip to content

Commit 313084e

Browse files
authored
Merge pull request #343 from mrsid18/master
Add format method to Number Column.
2 parents 3da2c22 + 29a1077 commit 313084e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/NumberColumn.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,13 @@ public function round($places = 0)
1818

1919
return $this;
2020
}
21+
22+
public function format($places = 0)
23+
{
24+
$this->callback = function ($value) use ($places) {
25+
return number_format($value, $places, '.', ',');
26+
};
27+
28+
return $this;
29+
}
2130
}

0 commit comments

Comments
 (0)