Update action-bar examples in ui-tests-app.

This commit is contained in:
Vasil Chimev
2015-11-02 14:49:32 +02:00
parent 11b60656eb
commit b5a68cb748
4 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,5 @@
import frame = require("ui/frame");
export function navigate(args) {
frame.topmost().navigate("action-bar/clean");
}

View File

@ -8,6 +8,6 @@
</ActionBar>
</Page.actionBar>
<StackLayout>
<Button text="do nothing"/>
<Button text="go to cleared page" tap="navigate"/>
</StackLayout>
</Page>

View File

@ -0,0 +1,5 @@
import frame = require("ui/frame");
export function navigate(args) {
frame.topmost().goBack();
}

View File

@ -8,6 +8,6 @@
</ActionBar>
</Page.actionBar>
<StackLayout>
<Button text="do nothing"/>
<Button text="go to previous page" tap="navigate"/>
</StackLayout>
</Page>