(page: Page, name: string, text: string)
| 19 | } |
| 20 | |
| 21 | function setTextFieldText(page: Page, name: string, text: string) { |
| 22 | const textField = <TextField>page.getViewById(name); |
| 23 | |
| 24 | if (name === 'maxLenghtFromCodeBehind' || name === 'maxLenghtFromCodeBehindWithText') { |
| 25 | textField.maxLength = 3; |
| 26 | } |
| 27 | |
| 28 | textField.text = text; |
| 29 | } |