This is no longer a stub. Style. Updated descriptions. Added links.
Line 2:
Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=ButtonStringEraseComponent.png
|Image=ButtonStringEraseComponent.png
Line 8:
Line 7:
}}
}}
The ButtonStringErase component can be used to remove characters from the beginning or end of a string whenever a button is pressed.
The '''ButtonStringErase''' component can be used to remove characters from the beginning or end of a [[Type:string|string]] whenever an [[Type:IButton|IButton]] is pressed.
<!--T:2-->
<!--T:2-->
Line 20:
Line 19:
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
To function, the component simply needs to be attached to a slot that also has a button component attached to it. From then on, pressing that button will activate the ButtonStringErade, making it erase the first or last <code>Count</code> characters from its <code>TargetString</code>.
To function, the component simply needs to be attached to a [[Slot|slot]] that also has a button component attached to it. From then on, pressing that button will activate the '''ButtonStringErase''', making it erase the first or last <code>Count</code> characters from its <code>TargetString</code>.
Whether or not to remove characters from the beginning of the string.
Usage
To function, the component simply needs to be attached to a slot that also has a button component attached to it. From then on, pressing that button will activate the ButtonStringErase, making it erase the first or last Count characters from its TargetString.