Component Inputs
This node defines the inputs for a custom component.
The Component Inputs node acts as the entry point for data passed into a component from its parent.
The Component Inputs node is essential when building reusable components. It allows you to define what properties your component accepts (e.g., "Title", "Image URL", "Is Active"). When you place an instance of your component in another graph, these inputs appear as ports on the component node.
Inputs
Inputs
| Data | Description |
|---|---|
| * | Dynamic inputs defined in the node inspector. You define the name and type of each input here. |
Outputs
Inputs
| Data | Description |
|---|---|
| * | Dynamic outputs corresponding to the defined inputs. Connect these to the internal logic or UI of your component. |
Usage
Defining Inputs
- Open your custom component graph.
- Select the Component Inputs node.
- In the properties panel, click "Add Input".
- Give it a name (e.g.,
label) and a type (e.g.,String). - A new output port
labelwill appear on the node. - Connect this output to a Text node's
Textinput.
Using the Component
- Go to another component (e.g., Main Page).
- Drag your custom component onto the graph.
- You will see an input port named
label. - Connect a string "Hello World" to it.
- The text inside your component will update to "Hello World".
Detailed Behavior
- Types: Supports all standard types (String, Number, Boolean, Color, Image, etc.).
- Groups: You can organize inputs into groups in the property panel, which will be reflected in the node inspector when using the component.
Troubleshooting
- Port Not Updating: If you rename an input in the property panel, you may need to reconnect wires if the internal ID changed (though XFORGE usually handles renaming gracefully).