Merge branch 'feature/SUPPORT-8724_format_number_to_local_string' into ervu/tmp_makets
This commit is contained in:
commit
c13a02fc2e
1 changed files with 11 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
import {TextFormatter} from "@webbpm/base-package";
|
||||
|
||||
export class NumberToLocalStringFormatter implements TextFormatter {
|
||||
format(value: string): string {
|
||||
if (!value) {
|
||||
return value;
|
||||
}
|
||||
const numberValue = Number(value);
|
||||
return numberValue ? numberValue.toLocaleString() : value;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue