Skip to content

Commit

Permalink
FAQ item added.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaliszko committed Aug 28, 2015
1 parent b43fbd2 commit 80ffb37
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ExpressiveAnnotations is a small .NET and JavaScript library, which provides ann
- [What if `ea` variable is already used by another library?](#what-if-ea-variable-is-already-used-by-another-library) <sup>(re client-side)</sup>
- [How to control frequency of dependent fields validation?](#how-to-control-frequency-of-dependent-fields-validation) <sup>(re client-side)</sup>
- [How to boost web console verbosity for debug purposes?](#how-to-boost-web-console-verbosity-for-debug-purposes) <sup>(re client-side)</sup>
- [Is there a possibility to perform asynchronous validation?](#is-there-a-possibility-to-perform-asynchronous-validation) <sup>(re client-side)</sup>
- [How to dynamically extract field value in error message?](#how-to-dynamically-extract-field-value-in-error-message) <sup>(re client and server-side)</sup>
- [Is there a possibility to perform asynchronous validation?](#is-there-a-possibility-to-perform-asynchronous-validation) <sup>(re client-side, experimental)</sup>
- [What if my question is not covered by FAQ section?](#what-if-my-question-is-not-covered-by-faq-section)
- [Installation](#installation)
- [Contributors](#contributors)
Expand Down Expand Up @@ -144,7 +145,7 @@ Priority - Gets or sets the hint, available for any concerned external
others of its kind, i.e. ExpressiveAttribute. Value is optional and not
set by default, which means that execution order is undefined.
ErrorMessage - Gets or sets an explicit error message string. A difference to default
behavior is awarness of new format specifiers, given in curly brackets,
behavior is awareness of new format specifiers, given in curly brackets,
used to extract values of specified fields, e.g. {field}, {field.field}
within current model context. Braces can be escaped by double-braces,
i.e. to output a { use {{ and to output a } use }}. The same logic works
Expand Down Expand Up @@ -469,6 +470,10 @@ If you need more insightful overview of what client-side script is doing (includ
// (should be disabled for release code)
```

#####<a id="#how-to-dynamically-extract-field-value-in-error-message">How to dynamically extract field value in error message?</a>

Use braces (curly brackets), e.g. `{field}` or `{field.field}` for nested fields. Notice that `{{` is treated as the escaped bracket character.

#####<a id="#is-there-a-possibility-to-perform-asynchronous-validation">Is there a possibility to perform asynchronous validation?</a>

Currently not. Although there is an ongoing work on [async-work branch](https://github.com/JaroslawWaliszko/ExpressiveAnnotations/tree/async-work), created especially for asynchronous-related ideas. If you feel you'd like to contribute, either by providing better solution, review code or just test what is currently there, your help is always highly appreciated.
Expand Down

0 comments on commit 80ffb37

Please sign in to comment.