Component:ButtonClipboardCopyText: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
This is no longer a stub. Some cleanup. Added usage description.
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
|Name=Button Clipboard Copy Text
|Name=Button Clipboard Copy Text
}}
}}
{{stub}}
The '''ButtonClipboardCopyText''' component is triggered on [[Button_Events#Event_Types|Button Press]] and copies the text content of a [[Type:IField|field]] into the pressing user's clipboard.


== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Source|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv0=true|
|Source|'''[[Type:IField`1|IField`1]]<[[Type:String|String]]>'''|TypeAdv0=true|Specifies where the value is copied from.
}}
}}


== Behavior ==
== Usage ==
This helps with copying text or to add the functionality for copying text for projects.


== Examples ==
== Examples ==
Line 18: Line 18:
[[Category:Components:Common UI:Button Interactions:Specialized{{#translation:}}|Button Clipboard Copy Text]]
[[Category:Components:Common UI:Button Interactions:Specialized{{#translation:}}|Button Clipboard Copy Text]]
[[Category:Components{{#translation:}}|Button Clipboard Copy Text]]
[[Category:Components{{#translation:}}|Button Clipboard Copy Text]]
[[Category:ComponentStubs]]

Latest revision as of 02:39, 12 September 2024

Component image 
Button Clipboard Copy Text component as seen in the Scene Inspector

The ButtonClipboardCopyText component is triggered on Button Press and copies the text content of a field into the pressing user's clipboard.

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Source IField`1<String> Specifies where the value is copied from.

Usage

This helps with copying text or to add the functionality for copying text for projects.

Examples

See Also