| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Dojo MVC Patterns</title> |
| 5 | <link type="text/css" href="css/index-format.css" rel="stylesheet"></link> |
| 6 | </head> |
| 7 | <body> |
| 8 | <h1>Dojo MVC Patterns</h1> |
| 9 | <h2>Examples</h2> |
| 10 | <p> |
| 11 | <dl> |
| 12 | <dt><a href="test_mvc_shipto-billto-simple.html">Simple data-bound fields</a></dt> |
| 13 | <dd>"Hello world" of data binding -- no hierarchical or repeating structure nor model validation...just data binding.</dd> |
| 14 | |
| 15 | <dt><a href="test_mvc_shipto-billto-hierarchical.html">Hierarchical data-bound fields</a></dt> |
| 16 | <dd>Widgets are nested hierarchically showing relative binding context.</dd> |
| 17 | |
| 18 | <dt><a href="test_mvc_loan-stateful.html">Data-bound form fields</a></dt> |
| 19 | <dd>Form widgets bind to model data and merge model and widget states (e.g. validity) to determine overall status. |
| 20 | Data is provided for zipcodes of 10024 or 10706 to see side-effects on completing related fields. Try other 5-digit numeric values |
| 21 | to see the effect of model-flagged invalidity on the widget. Non-numeric fields trigger widget validation |
| 22 | failures and block flushing the value to the model. Try driving housing percent above 33% to raise |
| 23 | warnings on that field through its model validity as well. Try zero'ing out all housing |
| 24 | expenses to see the effect of relevance=false on the total housing field.</dd> |
| 25 | |
| 26 | <dt><a href="test_mvc_search-results-repeat.html">Repeating templated widget content</a></dt> |
| 27 | <dd>Container "repeat" widget expands templated content and provides data binding context to child widgets.</dd> |
| 28 | |
| 29 | <dt><a href="test_mvc_search-results-ins-del.html">Repeating content with insert/delete operations</a></dt> |
| 30 | <dd>Above repeat example with mutable list for insert/delete.</dd> |
| 31 | |
| 32 | <dt><a href="test_mvc_generate-view.html">Model-bound view generation</a></dt> |
| 33 | <dd>Form generated based on JSON model provided in a text area and updated based on structural and value changes to the model.</dd> |
| 34 | </dl> |
| 35 | </p> |
| 36 | </body> |
| 37 | </html> |