newComponent
Returns
Returns a ScriptModelObject representing the new Component instance. The ID for the instance is generated using the Web Framework's random GUID generator.
newComponent(String componentTypeId)
Parameters
- componentTypeId
- A string representing the component type ID.
Returns
Returns a ScriptModelObject representing the new Component instance. The ID for the instance is generated using the Web Framework's random GUID generator.
newComponent(String scope, String regionId, String sourceId)
Parameters
- scope
- Scope, one of global, template or page.
- regionId
- The ID of the region to bind to.
- sourceId
- The source ID for the given scope.
Returns
Returns a ScriptModelObject representing the new Component instance. The ID for the instance is generated using the Web Framework's random GUID generator.
newComponent(String componentTypeId, String scope, String regionId, String sourceId)
Parameters
- componentTypeId
- A string representing the component type ID.
- scope
- Scope, one of global, template or page.
- regionId
- The ID of the region to bind to.
- sourceId
- The source ID for the given scope.
Returns
Returns a ScriptModelObject representing the new Component instance. The ID for the instance is generated using the Web Framework's random GUID generator.