MODULES Uize.Class.mDeclarativeChildObjects
1. Introduction
The Uize.Class.mDeclarativeChildObjects
mixin implements features to provide a declarative approach to adding child objects (such as child widgets or child models) to a Uize.Class
subclass.
DEVELOPERS: Ben Ilegbodu, original code contributed by Zazzle Inc.
1.1. Examples
There are no dedicated showcase example pages for the Uize.Class.mDeclarativeChildObjects
module.
SEARCH FOR EXAMPLES
Use the link below to search for example pages on the UIZE Web site that reference the Uize.Class.mDeclarativeChildObjects
module...
SEARCH
1.2. Implementation Info
The Uize.Class.mDeclarativeChildObjects
module defines the Uize.Class.mDeclarativeChildObjects
object under the Uize.Class
namespace.
1.2.1. Features Introduced in This Module
The features listed in this section have been introduced in this module.
STATIC PROPERTIES
Uize.Class.mDeclarativeChildObjects.moduleName
| Uize.Class.mDeclarativeChildObjects.pathToResources
1.2.2. Features Overridden in This Module
No features have been overridden in this module.
1.2.3. Features Inherited From Other Modules
This module has no inherited features.
1.2.4. Modules Directly Under This Namespace
There are no modules directly under this namespace.
1.2.5. Unit Tests
The Uize.Class.mDeclarativeChildObjects
module is unit tested by the Uize.Test.Uize.Class.mDeclarativeChildObjects
test module.
2. Static Methods
2.1. Uize.Class.mDeclarativeChildObjects.declarativeChildObjects
Lets you conveniently declare the type of child objects declaration to declare on the class.
SYNTAX
MyClass.declarativeChildObjects (declarativeChildObjectsPropertiesOBJ);
The sole declarativeChildObjectsPropertiesOBJ
parameter supports the following properties...
declaration - the name of the actual child objects declaration function to create (such as 'children' for Uize.Widget.mDeclarativeChildren ) |
|
addMethod - the name of the instance method that adds individual child objects (such as 'addChild' for Uize.Widget.mDeclarativeChildren ) |
|
childObjectClassKey - the name of the key within the child object properties that would signify the child object class (such as 'widgetClass' for =Uize.Widget.mDeclarativeChildren ) |