Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
allanmcarvalho committed Nov 1, 2023
1 parent 729e9d5 commit 7222127
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions resources/js/Masks/pt_BR/real.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {maskitoNumberOptionsGenerator} from '@maskito/kit';

export default function (min: number = 0, max: number = 1000000000, precision: number = 2) {
let options = {
decimalZeroPadding: true,
precision: precision,
decimalSeparator: ',',
thousandSeparator: '.',
min: min,
max:max,
prefix: 'R$',
}
return maskitoNumberOptionsGenerator(options)
};

0 comments on commit 7222127

Please sign in to comment.