Skip to content

Commit 3a97754

Browse files
Include new test page for date picker related to issue 324
1 parent 02808d1 commit 3a97754

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

app/app.routes.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ import { TabViewComponent } from "./tab-view/tab-view.component";
3030
import { NavigationOptionsComponent } from "./navigation-options/navigation-options.component";
3131
import { NavigationInfoComponent } from "./navigation-options/navigation-info.component";
3232

33-
import { SegmentedBarMainPageComponent } from "./segmented-bar/segmented-bar-main-page.component"
34-
import { SegmentedBarIssue649Component } from "./segmented-bar/issue-649.component"
33+
import { SegmentedBarMainPageComponent } from "./segmented-bar/segmented-bar-main-page.component";
34+
import { SegmentedBarIssue649Component } from "./segmented-bar/issue-649.component";
35+
36+
import { DatePickerMainPageComponent } from "./date-picker/date-picker-main-page.component";
37+
import { DatePickerIssue324Component } from "./date-picker/issue-324.component";
3538

3639
import { MainComponent } from "./main/main-page-router-outlet";
3740

@@ -71,6 +74,8 @@ export const routableComponents = [
7174
NavigationInfoComponent,
7275
SegmentedBarMainPageComponent,
7376
SegmentedBarIssue649Component,
77+
DatePickerMainPageComponent,
78+
DatePickerIssue324Component,
7479
];
7580

7681
// Set isNavigatable: true if the page is a mian page to other sub pages
@@ -112,6 +117,9 @@ export const routes = [
112117
{ path: 'segmented-bar', component: SegmentedBarMainPageComponent, data: { title: "SegmentedBar", isNavigatable: true } },
113118
{ path: 'segmented-bar/issue-649', component: SegmentedBarIssue649Component, data: { title: "issue-649" } },
114119

120+
{ path: 'date-picker', component: DatePickerMainPageComponent, data: { title: "DatePicker", isNavigatable: true } },
121+
{ path: 'date-picker/issue-324', component: DatePickerIssue324Component, data: { title: "issue-324" } },
122+
115123
// Needed for AoT compilation
116124
{
117125
path: "lazy",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Component } from "@angular/core";
2+
3+
@Component({
4+
template: `
5+
<StackLayout>
6+
<Button text="issue-649" [nsRouterLink]="['issue-324']"></Button>
7+
</StackLayout>
8+
`,
9+
})
10+
export class DatePickerMainPageComponent { }
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
template: `
5+
<Grid class="tab-view-container">
6+
<TabView>
7+
<StackLayout *tabItem="{title: 'no scroll'}">
8+
<DatePicker></DatePicker>
9+
</StackLayout>
10+
<StackLayout *tabItem="{title: 'with scroll'}">
11+
<ScrollView>
12+
<StackLayout>
13+
<DatePicker></DatePicker>
14+
</StackLayout>
15+
</ScrollView>
16+
</StackLayout>
17+
</TabView>
18+
</Grid>
19+
`,
20+
})
21+
22+
export class DatePickerIssue324Component {
23+
}

app/segmented-bar/segmented-bar-main-page.component.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Component } from "@angular/core";
22

33
@Component({
4-
selector: "main",
54
template: `
65
<StackLayout>
76
<Button text="issue-649" [nsRouterLink]="['issue-649']"></Button>

0 commit comments

Comments
 (0)