MODULES Uize.Widget.Form.mDeclarativeElements
1. Introduction
The Uize.Widget.Form.mDeclarativeElements
mixin implements features to provide a declarative approach to adding form elements to a form.
DEVELOPERS: Ben Ilegbodu, original code contributed by Zazzle Inc.
1.1. Examples
There are no dedicated showcase example pages for the Uize.Widget.Form.mDeclarativeElements
module.
SEARCH FOR EXAMPLES
Use the link below to search for example pages on the UIZE Web site that reference the Uize.Widget.Form.mDeclarativeElements
module...
SEARCH
1.2. Implementation Info
The Uize.Widget.Form.mDeclarativeElements
module defines the Uize.Widget.Form.mDeclarativeElements
object under the Uize.Widget.Form
namespace.
1.2.1. Features Introduced in This Module
The features listed in this section have been introduced in this module.
STATIC PROPERTIES
Uize.Widget.Form.mDeclarativeElements.moduleName
| Uize.Widget.Form.mDeclarativeElements.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.Widget.Form.mDeclarativeElements
module is unit tested by the Uize.Test.Uize.Widget.Form.mDeclarativeElements
test module.
2. Static Methods
2.1. Uize.Widget.Form.mDeclarativeElements.elements
.
SYNTAX
MyWidgetClass.elements (elementsOBJ);
VERBOSE EXAMPLE
MyNamespace.MyWidgetClass = Uize.Widget.Form.mDeclarativeElements.subclass ({ elements:{ menu:{ text:'Ok', widgetClass:Uize.Widget.FormElement.Text, value:'foo', values:[ { name:'foo', value:'Foo' }, { name:'bar', value:'Bar' } ] }, cancel:{ text:'Cancel', widgetClass:Uize.Widget.FormElement, selected:true } } });
SHORT-HAND EXAMPLE
MyNamespace.MyWidgetClass = Uize.Widget.Form.mDeclarativeElements.subclass ({ elements:{ menu:Uize.Widget.FormElement.Text, cancel:Uize.Button.FormElement } });