sjohnsonaz / BuildJS-Full

A simple utility for class definition, inheritance, dynamic loading, MVVM, Widgets, and backend MVC.
http://buildjs.com
0 stars 0 forks source link

Streamline MVC or MVVM pattern. #11

Closed sjohnsonaz closed 9 years ago

sjohnsonaz commented 10 years ago

MVC and MVVM have distinct advantages in separation of concerns. By design BuildJS can support this separation of concerns, but it is not well defined.

Forms are probably the easiest and most important place to handle this, as these directly manipulate data. However, it should probably exist at all layers of the application.

sjohnsonaz commented 10 years ago

Created ViewModel class for containing data. The properties from this model are then bound to Widgets.

sjohnsonaz commented 10 years ago

Create fundamental BindingHandlers. Currently we have OneWayBinding and TwoWayBinding. Still need to create IfBinding and ForEachBinding.

sjohnsonaz commented 9 years ago

Created IfBinding.

sjohnsonaz commented 9 years ago

Created a "templating" system for Container.children.

sjohnsonaz commented 9 years ago

Finished templating for Container.children. Template can be added via staticTemplate or managedTemplate, depending on if a template instance is needed for each iteration.