|
7 | 7 | "isEditing": true,
|
8 | 8 | "isHidden": true,
|
9 | 9 | "isPassword": true,
|
10 |
| - "compare": true, |
11 |
| - "itemsCompare": [ |
12 |
| - "a" |
13 |
| - ], |
14 |
| - "textErrorCompare": "error", |
15 | 10 | "style": {
|
16 |
| - "backgroundColorField": "#5091ff", |
17 |
| - "titleColor": "#72ff97", |
18 |
| - "errorColor": "#ff303b", |
19 |
| - "sizeTitle": 12, |
20 |
| - "sizeError": 31, |
21 |
| - "align": "alignLeft", |
22 |
| - "font": "AmericanTypewriter", |
23 |
| - "mandatoryIcon": "imagenMandatory" |
| 11 | + "backgroundColorField": "#5091ff", |
| 12 | + "titleColor": "#72ff97", |
| 13 | + "errorColor": "#ff303b", |
| 14 | + "sizeTitle": 12, |
| 15 | + "sizeError": 31, |
| 16 | + "align": "alignLeft", |
| 17 | + "font": "AmericanTypewriter", |
| 18 | + "mandatoryIcon": "imagenMandatory" |
| 19 | + }, |
| 20 | + "validator": [ |
| 21 | + { |
| 22 | + "type": "compare", |
| 23 | + "textError": "error", |
| 24 | + "itemsCompare": ["a"] |
| 25 | + } |
| 26 | + ], |
| 27 | + |
24 | 28 | }
|
25 | 29 | },
|
26 | 30 | {
|
27 | 31 | "isHidden": true,
|
28 |
| - "mandatory": false, |
29 | 32 | "style": {
|
30 |
| - "checkBox": { |
31 |
| - "checkBoxOff": "checkBoxOff_JR", |
32 |
| - "checkBoxOn": "checkBoxOn_JR" |
33 |
| - }, |
| 33 | + "checkBox": { |
| 34 | + "checkBoxOff": "checkBoxOff_JR", |
| 35 | + "checkBoxOn": "checkBoxOn_JR" |
| 36 | + }, |
34 | 37 | "mandatoryIcon": "mandatory_JR ",
|
35 | 38 | "styleCell": "line "
|
36 | 39 | },
|
37 |
| - |
38 |
| - "validator": "bool", |
39 | 40 | "schemaId": "communicationOpts",
|
40 |
| - "textError": "This field not could be empty", |
41 | 41 | "show": "checkbox",
|
42 | 42 | "type": "boolean",
|
43 | 43 | "key": "key1",
|
44 |
| - "label": "I want to receive Coca-Cola communications" |
45 |
| - |
| 44 | + "label": "I want to receive Coca-Cola communications", |
| 45 | + "validator": [ |
| 46 | + { |
| 47 | + "type": "bool", |
| 48 | + "textError": "Text error", |
| 49 | + } |
| 50 | + ] |
46 | 51 | },
|
47 | 52 | {
|
48 | 53 | "key": "key2",
|
|
61 | 66 | "type": "text",
|
62 | 67 | "label": "a2",
|
63 | 68 | "placeHolder": "a2",
|
64 |
| - "mandatory": true |
| 69 | + "validator": [ |
| 70 | + { |
| 71 | + "type": "mandatory", |
| 72 | + "textError": "texto error mandatory" |
| 73 | + } |
| 74 | + ] |
65 | 75 | },
|
66 | 76 | {
|
67 | 77 | "key": "key5",
|
|
0 commit comments