(text: string, labelHeight: number, shouldWrap = false)
| 144 | } |
| 145 | |
| 146 | function createLabel(text: string, labelHeight: number, shouldWrap = false) { |
| 147 | const label = new Label(); |
| 148 | label.height = labelHeight; |
| 149 | label.text = text; |
| 150 | label.textWrap = shouldWrap; |
| 151 | label.borderColor = 'green'; |
| 152 | label.borderWidth = 1; |
| 153 | |
| 154 | return label; |
| 155 | } |