Namespace MBX.JsView
Defined in: js_view.js.
Constructor Attributes | Constructor Name and Description |
---|---|
this is the view part of the MVC framework
handle updates and creations and deletes of registered
objects and classes
|
Method Attributes | Method Name and Description |
---|---|
<static> |
MBX.JsView.create(opts)
create a new view handler.
|
<static> |
MBX.JsView.extend(methsAndAttrs)
call extend() to add methods and/or attributes to ALL views
|
Namespace Detail
MBX.JsView
this is the view part of the MVC framework
handle updates and creations and deletes of registered
objects and classes
Method Detail
<static>
MBX.JsView.create(opts)
create a new view handler... specify a model and some
functions and some great magic happens.
If your view listens to a model, but you are not dependent on real-time updates,
you can add the option "looselyCoupled: true" and all updates will be done with
setTimeout, which will be a performance enhancement.
MBX.JsView.create({ model: MBX.DesktopUpload, looselyCoupled: false, // false is the default onCreate: function (upload) { //create the upload }, onChange: function (upload) { // any upload changes }, onDestroy: function (upload) { // handle destroys } });
- Parameters:
- {Object} opts
- the various options specified for a view
<static>
MBX.JsView.extend(methsAndAttrs)
call extend() to add methods and/or attributes to ALL views
- Parameters:
- {Object} methsAndAttrs