(args)
| 9 | } |
| 10 | |
| 11 | export function addChild(args) { |
| 12 | let button = new Button(); |
| 13 | button.text = 'Button' + buttonsCount; |
| 14 | button.margin = 10; |
| 15 | button.backgroundColor = 'lightgreen'; |
| 16 | |
| 17 | (<StackLayout>args.object.page.getViewById('target')).addChild(button); |
| 18 | buttonsCount++; |
| 19 | } |
| 20 | |
| 21 | export function clear(args) { |
| 22 | (<StackLayout>args.object.page.getViewById('target')).removeChildren(); |