TheAutopilot (talk | contribs) 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 | ||
}} | }} | ||
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. | |||
{{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. | ||
}} | }} | ||
== | == 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]] | ||
Latest revision as of 02:39, 12 September 2024
Component image
The ButtonClipboardCopyText component is triggered on Button Press and copies the text content of a field into the pressing user's clipboard.
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.