mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Property renamed and bug fixes
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<Page>
|
||||
<ScrollView>
|
||||
<StackLayout>
|
||||
<Button tap="itemTap" text="action bar hidden" tag="action-bar-hidden" />
|
||||
<Button tap="itemTap" text="page title and icon" tag="page-title-icon" />
|
||||
<Button tap="itemTap" text="navigation button" tag="navigation-button" />
|
||||
<Button tap="itemTap" text="action items icons" tag="action-items-icon" />
|
||||
|
||||
9
apps/action-bar-demo/pages/action-bar-hidden.ts
Normal file
9
apps/action-bar-demo/pages/action-bar-hidden.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import pages = require("ui/page");
|
||||
import view = require("ui/core/view");
|
||||
|
||||
var toggle = false;
|
||||
export function toggleTap(args) {
|
||||
var page = <pages.Page>view.getAncestor(<view.View>args.object, "Page")
|
||||
page.actionBarHidden = toggle;
|
||||
toggle = !toggle;
|
||||
}
|
||||
8
apps/action-bar-demo/pages/action-bar-hidden.xml
Normal file
8
apps/action-bar-demo/pages/action-bar-hidden.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<Page actionBarHidden="true">
|
||||
<Page.actionBar>
|
||||
<ActionBar title="Hide Test"/>
|
||||
</Page.actionBar>
|
||||
<StackLayout>
|
||||
<Button text="hide/show" tap="toggleTap" />
|
||||
</StackLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user