Component:CloudValueField`1: Difference between revisions

From Resonite Wiki
change and add info
no `1
Tag: New redirect
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<languages></languages>
#REDIRECT[[Component:CloudValueField]]
<translate>
<!--T:1-->
{{Infobox Component
|Image=CloudValueField`1Component.png
|Name=Cloud Value Field`1
}}
 
For more info on how Cloud Variables work in general, see [[Cloud Variables]].
 
This updates as fast as reading/writing cloud variables permits. All the restrictions that apply to cloud variables apply to this component, including permissions and world contexts.
 
This component constantly writes the contents of the field specified by <code>Target</code> to the value of the specified cloud variable.
 
<!--T:2-->
== Fields ==
{{Table ComponentFields
|Path|String| The [[Cloud_Variables#Cloud_Variable_Definition| path]] of the variable this component will read. Needs to start with a UserID.
|IsLinkedToCloud|Bool| ''(Read Only)'' Indicates whether this field was successfully bound to the target variable.
|VariableOwnerId|String| The UserID of the user that created the variable.
|ChangeHandling|CloudVariableChangeMode| See [[Type:CloudVariableChangeMode|Cloud Variable Change Mode]].
|Target|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]&lt;T&gt;}}|TypeAdv4=true| The target [[Type:IField`1| field]] to which the variable value will be written.
}}
 
<!--T:3-->
== Usage ==
Put this component on a slot, and give it a valid cloud variable <code>Path</code> and <code>VariableOwnerId</code>. For how to get a valid path and id, see [[Cloud Variables]]. when given a <code>Target</code>, the contents of the field given to <code>Target</code> will auto update with the cloud variable value.
 
<!--T:4-->
== Examples ==
 
<!--T:5-->
== Related Components ==
</translate>
[[Category:Generics{{#translation:}}]]
[[Category:Components{{#translation:}}|Cloud Value Field`1]]
[[Category:Generic Components{{#translation:}}|Cloud Value Field`1]]
[[Category:Components:Cloud:Variables{{#translation:}}|Cloud Value Field`1]]

Latest revision as of 12:24, 11 November 2024