ducky/web

Paddy 2015-05-31 Parent:7ae5dd64c482 Child:5d47855181e1

5:efdc78cbdac5 Go to Latest

ducky/web/build/200.html

Update our ValidationError component to accept arrays. Allow our ValidationError component to match an array of fields, headers, or params. This is for components that may address multiple inputs (e.g., month/year inputs) but also lays the ground work for inverse-matching. Ideally, inverse-matching and matching ValidationErrors should mirror each other, logically, so the syntax is identical. But we also should have the common use case easily supported, so if you use field instead of fields (or header/headers, param/params) we'll automatically turn that into an array.

History
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <link rel="stylesheet" href="/static/main.css" />
6 </head>
7 <body>
8 </body>
9 <script src="/static/common.js"></script>
10 <script src="/static/bundle.js"></script>
11 </html>