Note:
-
All code samples below refer to the skuid object.
-
In the v2 API, this object is not directly accessible when working within a browser console—or when referring to another Nintex Apps page runtime.
-
If you are experiencing issues, use the skuid.runtime API to target the appropriate page context.
skuid.componentType
skuid.componentType.get()skuid.componentType.getAll()
Returns: | Return type: |
---|---|
An array of strings describing all component types on a page by name of component type. | Array |
skuid.componentType.list()
Return type: |
---|
Array |
skuid.componentType.map()
Return type: |
---|
Object |
skuid.componentType.register(typeName,typeDefinition)
Registers a Component Type with the given typeName. A registered Component Type acts like a constructor or initializer for that component.
Arguments: |
---|
|
EXAMPLE:
Copy
skuid.componentType.register('pagebanner',function(element,xmlDefinition,component){
element.html('Welcome: ' + xmlDefinition.attr('person'));