Skip to main content

PropertyValueArray

This struct contains just an array of property values.

NameDescriptionType
valueProperty values.PropertyValue[]

Helper Methods and Properties

⚠️ Note

These helper methods and properties are available when using the npm package @m-filescorporation/uix-vault-messages. Install it in your project to use these helpers. For more information, see Overview/VaultMessages/.

Instance Methods

MethodDescriptionParametersReturns
AddAdds a new property value to the array.propertyDef: number
type: Datatype
value: TypedValueValueMap[T]
PropertyValueArray
AddWithTypedValueAdds a new property value with a TypedValue to the array.propertyDef: number
value: TypedValue
PropertyValueArray

Working with Objects

// Extension helpers for PropertyValueArray instances
// Adds a new property value to the array.
const result = propertyvaluearrayInstance.Add(0, 0);

// Adds a new property value with a TypedValue to the array.
const result = propertyvaluearrayInstance.AddWithTypedValue(
0,
TypedValue.Text("example text"),
);

Example

{
"value": [] /* Array of PropertyValue */
}