Index

projects/ngx-persian/src/lib/JDate/ArithmeticUtils.ts

div
div(num1, num2)

This function returns integer part of division result of num1 and num2 numbers.

For example: div (10, 3) is equal to 3.

Parameters :
Name Optional
num1 No
num2 No
Returns : number
mod
mod(num1, num2)

This function return arithmetic mod result of two inputs as a integer.

Parameters :
Name Optional
num1 No
num2 No
Returns : number
round
round(x)

This function removes fraction part of the number if exists. So, for example, it will turn -145,455 to -145 and 145,455 to 145.

Parameters :
Name Optional
x No
Returns : number

projects/ngx-persian/src/lib/Validators/persian-validators.ts

persianLettersValidator
persianLettersValidator(options, persianLetterService)

Reactive form validator that checks form control value contains only persian letters and allowed characters in the options parameter.

Parameters :
Name Optional Description
options No

see documents of isPersian method of the PersianLetterService for more info about options.

persianLetterService No
Returns : ValidatorFn
persianNumbersValidator
persianNumbersValidator(persianNumberService)

Reactive form validator that checks form control value contains only persian numbers.

Parameters :
Name Optional
persianNumberService No
Returns : ValidatorFn

result-matching ""

    No results matching ""