Skip to content

Commit 66defad

Browse files
author
Juan Fernandez
committed
update README
1 parent 18d806f commit 66defad

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ $ yarn add react-validation-builder
6262
const schemaYup = transformSchemaToYup(schema);
6363
```
6464

65+
### Resolve Expression (type expression)
66+
#### resolve expression with custom function
67+
```
68+
import { transformSchemaToYup } from 'react-validation-builder';
69+
70+
const resolveValue = (fieldKey, fieldValue, expression) => {
71+
// return a true if passed else return a false
72+
}
73+
74+
const schemaYup = transformSchemaToYup(schema);
75+
```
6576
### component for bootstrap
6677
```
6778
import { ValidationBuilderEditor } from 'react-validation-builder/lib/bootstrap';

0 commit comments

Comments
 (0)