API ReferenceGE Extensionsflowgraphnodesuibuttons
Set Button Property (Flowgraph Node)
- **Node Name:** `Set Button Property`
Overview
- Node Name:
Set Button Property - Category:
repeat_instant - File:
extensions/flowgraph/nodes/ui/buttons/setButtonProperty.lua
Updates properties of an existing button. Only properties with connected/set pins are modified.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
buttonId | number | - | ID of the button to modify |
label | string | "Button" | Displayed name |
active | bool | - | Whether the button is active |
order | number | - | Position in button list |
style | string | "default" | Button styling |
How It Works
postInit()- Sets up style hard templates.work()- For each property (active,order,style,label), if the pin has a non-nil value, callsself.mgr.modules.button:set(id, property, value).
Key Dependencies
self.mgr.modules.button:set(id, prop, value)- sets individual button properties.
Example Usage
-- Disable a button dynamically:
-- Connect buttonId and set active=false
self.mgr.modules.button:set(id, "active", false)
self.mgr.modules.button:set(id, "label", "Disabled")See Also
- Create Button (Flowgraph Node) - Related reference
- Get Button (Flowgraph Node) - Related reference
- Get Multiple Buttons (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide