Namespace metawidget
Metawidget for pure JavaScript environments.
Defined in: metawidget.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
metawidget.buildNestedMetawidget(attributes, config)
Returns a nested version of this same Metawidget, using the given
attributes.
|
<static> |
metawidget.buildWidgets(inspectionResult)
|
<static> |
metawidget.clearWidgets()
Clear all child elements from the Metawidget element.
|
<static> |
metawidget.getElement()
Returns the element this Metawidget is attached to.
|
<static> |
metawidget.getWidgetProcessor(testInstanceOf)
|
<static> |
metawidget.inspect(toInspect, type, names)
Useful for WidgetBuilders to perform nested inspections (eg.
|
<static> |
metawidget.Metawidget(element, config)
Pure JavaScript Metawidget.
|
<static> |
metawidget.reconfigure(config)
|
<static> |
metawidget.save()
Save the contents of the Metawidget using a SimpleBindingProcessor.
|
<static> |
metawidget.setLayout(layout)
|
Subclasses should override this method to use their preferred widget creation methodology.
- Parameters:
- attributes
- config
- Parameters:
- inspectionResult
This implementation uses plain JavaScript removeChild, which has known problems (on some browsers) leaking event handlers. This is not a problem for plain Metawidget, as it doesn't use event handlers. However clients that introduce custom widgetprocessors that use event handlers may wish to adopt a more robust technology for tracking/clearing event handlers (such as JQuery.empty)
- Parameters:
- testInstanceOf
- Parameters:
- toInspect
- type
- names
- Parameters:
- element
- the element to populate with UI components matching the properties of the domain object
- config
- optional configuration object (see metawidget.Pipeline.configure)
- Returns:
- {metawidget.Metawidget}
- Parameters:
- config
This is a convenience method. To access other Metawidget APIs, clients can use the 'getWidgetProcessor' method
- Returns:
- true if the 'toInspect' was updated (i.e. is dirty)
- Parameters:
- layout