This constructor is an implementation detail. Do not use this.
Sets the centered text. If the current mode is split, it is switched to centered mode.
Sets the left text. If the current mode is centered, it is switched to split mode, with the right text being empty.
Sets the right text. If the current mode is centered, it is switched to split mode, with the left text being empty.
Calculates the component's state.
Encodes the component's state information as JSON.
Generated using TypeDoc
The Text Component simply visualizes any given text. This can either be a single centered text, or split up into a left and right text, which is suitable for a situation where you have a label and a value.