chore: addressing comments
This commit is contained in:
parent
5bb55e6484
commit
908d2761f2
@ -1,8 +1,12 @@
|
||||
import { DcValidation } from '../models/dc-validation.model'
|
||||
import * as languages from 'numbro/dist/languages.min'
|
||||
/**
|
||||
* Applying the numeric formats based on the browser locale/language
|
||||
* @param rules rules to be updated
|
||||
* Applying the numeric formats based on the browser locale/language
|
||||
* So that correct decimal separators are applied.
|
||||
* For example european format (thousand dot, decimal comma): 1.000,00
|
||||
*
|
||||
* @param rules Cell Validation rules to be updated
|
||||
* Those rules are passed in the `columns` property Of handsontable settings.
|
||||
*/
|
||||
export const applyNumericFormats = (rules: DcValidation[]): DcValidation[] => {
|
||||
const lang = languages[window.navigator.language]
|
||||
|
@ -6,7 +6,8 @@ import { DcValidation } from '../models/dc-validation.model'
|
||||
* Merging old validation params from sasparams with cols params
|
||||
* @param sasparams sasparams coming from SAS
|
||||
* @param cols cols coming from SAS
|
||||
* @param rules rules to be updated
|
||||
* @param rules Cell Validation rules to be updated
|
||||
* Those rules are passed in the `columns` property Of handsontable settings.
|
||||
* @returns
|
||||
*/
|
||||
export const mergeColsRules = (
|
||||
|
Loading…
Reference in New Issue
Block a user