Skip to content

Query Elements by Type Node

UI/Elements/Query

Gets all elements of a specific component type

a2ui_query_elements_by_typestd
Inputs1
Outputs2
Security exposureUnrated
Packagestd

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

1

Component Type

String
component_type

The type of component to query (e.g., 'button', 'text', 'textField')

Output Pins

2

Elements

Struct
elements

Array of matching elements

A2UIElementA2UIElement6 fields
idstringrequired

Unique identifier for this element

styleanyOf (2)

Optional style configuration

variant 1Stylevariant

Complete style definition

classNamestring | null
backgroundanyOf (2)
variant 1Backgroundvariant

Background type

variant 2nullvariant
borderanyOf (2)
variant 1Bordervariant

Border styling

variant 2nullvariant
shadowanyOf (2)
variant 1Shadowvariant

Shadow styling. The JSON representation intentionally matches the original frontend contract. The previous `{ boxShadows, textShadow }` shape is still accepted during deserialization and normalized to these fields.

variant 2nullvariant
paddinganyOf (2)
variant 1Spacingvariant

Spacing (padding/margin). Edge fields are the canonical frontend JSON shape; strings and `{ "value": "..." }` remain accepted for compatibility.

variant 2nullvariant
+46 more fields
variant 2nullvariant
childrenanyOf (2)

Child component references

variant 1Childrenvariant

Children definition - explicit list or template

variant 1objectvariant
explicitListArray<string>required
variant 2objectvariant
templateobjectrequired
variant 2nullvariant
actionsarray | null

Actions that can be triggered on this component

itemsActionarray item

Action definition for user interactions

namestringrequired
contextMap<string, BoundValue>
default {}
*BoundValuemap value

Represents a value that can be either a literal or a data path binding

targetSurfaceIdstring | null
eventHandlersobject | null

Ordered actions bound to named component events. Legacy `actions` remains the fallback.

*Array<Action>map value
itemsActionarray item

Action definition for user interactions

namestringrequired
contextMap<string, BoundValue>
default {}
targetSurfaceIdstring | null
__element_idstring | null

Internal element ID for workflow operations (added at runtime)

Count

Integer
count

Number of matching elements

Node Info

Internal name
a2ui_query_elements_by_type
Category
UI/Elements/Query