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