-
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
Good news, everyone!
We are currently writing more material for our Javascript API. All of the objects and functions you see below are part of Nintex Apps's public API, even if they aren't fully documented yet. Feel free to experiment while we write about them—and check back later for updates.
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:
skuid.componentType.register('pagebanner',function(element,xmlDefinition,component){
element.html('Welcome: ' + xmlDefinition.attr('person'));