You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-structures/text.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,13 @@ Text elements support the following properties:
60
60
61
61
Text elements support these methods for manipulation:
62
62
63
+
:::info
64
+
Text objects do not support the `setText()` method since they are text themselves. Use `setValue()`, `setFontSize()`, and other text-specific methods instead.
65
+
:::
66
+
63
67
### Single Property Methods
68
+
-`setValue(value)` - Set text content for all lines
69
+
-`setValue(line, value)` - Set text content for specific line
64
70
-`setFontSize(value)` - Set font size for all text
65
71
-`setFontSize(line, size)` - Set font size for specific line
66
72
-`setColor(line, color)` - Set color for specific line
@@ -75,6 +81,7 @@ Text elements support these methods for manipulation:
75
81
-`setHeight(height)` - Set text box height
76
82
77
83
### Multiple Element Methods
84
+
-`setValues([...])` - Set text content for multiple lines
78
85
-`setFontSizes([...])` - Set font sizes for multiple lines
79
86
-`setColors([...])` - Set colors for multiple lines
80
87
-`setFontWeights([...])` - Set font weights for multiple lines
0 commit comments