mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
10
apps/ui/app/screen-qualifiers/main-page.ios.xml
Normal file
10
apps/ui/app/screen-qualifiers/main-page.ios.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
|
||||
<ActionBar>
|
||||
<Label text="Screen Qualifiers"></Label>
|
||||
</ActionBar>
|
||||
|
||||
<StackLayout>
|
||||
<Label text="{{ currentDate }}" fontSize="20"/>
|
||||
<Label text="IOS Page" backgroundColor="deepskyblue" fontSize="20"/>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
10
apps/ui/app/screen-qualifiers/main-page.land.xml
Normal file
10
apps/ui/app/screen-qualifiers/main-page.land.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
|
||||
<ActionBar>
|
||||
<Label text="Screen Qualifiers"></Label>
|
||||
</ActionBar>
|
||||
|
||||
<StackLayout>
|
||||
<Label text="{{ currentDate }}" fontSize="20"/>
|
||||
<Label text="LandScape Page" backgroundColor="deepskyblue" fontSize="20"/>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
10
apps/ui/app/screen-qualifiers/main-page.minWH120.port.xml
Normal file
10
apps/ui/app/screen-qualifiers/main-page.minWH120.port.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
|
||||
<ActionBar>
|
||||
<Label text="Screen Qualifiers"></Label>
|
||||
</ActionBar>
|
||||
|
||||
<StackLayout>
|
||||
<Label text="{{ currentDate }}" fontSize="20"/>
|
||||
<Label text="minWH 120 DIP Portrait Page" backgroundColor="deepskyblue" fontSize="20"/>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
10
apps/ui/app/screen-qualifiers/main-page.minWH360.ts
Normal file
10
apps/ui/app/screen-qualifiers/main-page.minWH360.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { EventData } from '@nativescript/core/data/observable';
|
||||
import { Observable } from '@nativescript/core/data/observable';
|
||||
import { Page } from '@nativescript/core/ui/page';
|
||||
|
||||
export function pageLoaded(args: EventData) {
|
||||
const page = <Page>args.object;
|
||||
|
||||
page.bindingContext = new Observable();
|
||||
page.bindingContext.set('currentDate', 'No date for alternate screens!');
|
||||
}
|
||||
10
apps/ui/app/screen-qualifiers/main-page.minWH360.xml
Normal file
10
apps/ui/app/screen-qualifiers/main-page.minWH360.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
|
||||
<ActionBar>
|
||||
<Label text="Screen Qualifiers"></Label>
|
||||
</ActionBar>
|
||||
|
||||
<StackLayout>
|
||||
<Label text="{{ currentDate }}" fontSize="20"/>
|
||||
<Label text="minWH 360 DIP Page" backgroundColor="deepskyblue" fontSize="20"/>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
10
apps/ui/app/screen-qualifiers/main-page.ts
Normal file
10
apps/ui/app/screen-qualifiers/main-page.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { EventData } from '@nativescript/core/data/observable';
|
||||
import { Observable } from '@nativescript/core/data/observable';
|
||||
import { Page } from '@nativescript/core/ui/page';
|
||||
|
||||
export function pageLoaded(args: EventData) {
|
||||
const page = <Page>args.object;
|
||||
|
||||
page.bindingContext = new Observable();
|
||||
page.bindingContext.set('currentDate', new Date());
|
||||
}
|
||||
10
apps/ui/app/screen-qualifiers/main-page.xml
Normal file
10
apps/ui/app/screen-qualifiers/main-page.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
|
||||
<ActionBar>
|
||||
<Label text="Screen Qualifiers"></Label>
|
||||
</ActionBar>
|
||||
|
||||
<StackLayout>
|
||||
<Label text="{{ currentDate }}" fontSize="20"/>
|
||||
<Label text="Default Page" backgroundColor="yellow" fontSize="20"/>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user