Component:ButtonClipboardCopyText: Difference between revisions

From Resonite Wiki
No edit summary
This is no longer a stub. Some cleanup. Added usage description.
 
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.
This component is triggered on [[Button_Events#Event_Types|Button Press]] and copies the text content of a field into the pressing user's clipboard.


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