new module:model/WebFormComponent(componentKey, componentType)
- Source:
Constructs a new WebFormComponent.
Each component type contains additional properties
Extends:
- Object
Parameters:
| Name | Type | Description |
|---|---|---|
componentKey |
String | |
componentType |
String | The type of component this object represents |
Extends
- Object
Members
(inner) componentKey :String
- Source:
Type:
- String
(inner) componentName :String
- Source:
Name value that is used for mapping components to external sources
Type:
- String
(inner) componentType :String
- Source:
The type of component this object represents
Type:
- String
Methods
(static) constructFromObject(data, obj) → {module:model/WebFormComponent}
- Source:
Constructs a WebFormComponent from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data to obj if supplied or a new instance if not.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:model/WebFormComponent | Optional instance to populate. |
Returns:
The populated WebFormComponent instance.