(layout: layout.StackLayout, text: 'left' | 'center' | 'right' | 'stretch')
| 25 | } |
| 26 | |
| 27 | function addButton(layout: layout.StackLayout, text: 'left' | 'center' | 'right' | 'stretch') { |
| 28 | var btn = new btns.Button(); |
| 29 | btn.text = text; |
| 30 | btn.horizontalAlignment = text; |
| 31 | layout.addChild(btn); |
| 32 | layout.style.paddingLeft = 5; |
| 33 | |
| 34 | return btn; |
| 35 | } |