getProperty
Description
Returns the attribute of a component, such as its name, dimensions etc.
Input / Parameter
component
The name of the component to get property from.
String/Text
-
-
Yes, if componentId is not set
componentId
The component ID to get property from (for components in FlatList item)
String/Text
-
-
Yes, if component is not set
property
The attribute of the component.
String/Text
-
-
Yes
Output
Returns the property of the component.
String/Text
Example
In this example, we will get the name attribute of an input box component using Component.getProperty and print it to the console.
Steps
First we drag an input box onto the page. We will name it "InputBox" with the value "This is an input field".

We want to get the 'name' attribute of "InputBox" and display it in the browser console with the help of the
Log.writehelper function.Drag
Component.getPropertyinto the event flow, and specify the name of the component, which in this case is "InputBox".
Result
The
nameattribute of "InputBox" will be displayed in the browser console.
Links
Related Information
See also:
Functions
Last updated