Skip to content

Commit 932d474

Browse files
committed
refactor(showcase): add scroll example
1 parent 4753d6d commit 932d474

26 files changed

+143
-51
lines changed

projects/ng-sortgrid-demo/src/app/app.component.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,28 @@
1111
color: #333; /* old IE */
1212
background-color: #333; /* Modern Browsers */
1313
}
14+
15+
/*
16+
Custom styles
17+
*/
18+
.container-fluid {
19+
padding: 20px;
20+
}
21+
22+
.example-list {
23+
list-style-type: none;
24+
padding: 0;
25+
}
26+
27+
.example-list li {
28+
display: table-cell;
29+
padding: 4px;
30+
}
31+
32+
.example-container {
33+
display: flex;
34+
flex-wrap: wrap;
35+
width: 100%;
36+
justify-content: center;
37+
}
38+

projects/ng-sortgrid-demo/src/app/app.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Component } from '@angular/core';
1+
import {Component, ViewEncapsulation} from '@angular/core';
22

33
@Component({
44
selector: 'app-root',
55
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.css']
6+
styleUrls: ['./app.component.css'],
7+
encapsulation: ViewEncapsulation.None
78
})
89
export class AppComponent {
910
public items = [1, 2, 3, 4, 5, 6, 7, 8, 9];

projects/ng-sortgrid-demo/src/app/app.routing.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {RouterModule} from '@angular/router';
44

55
@NgModule({
66
imports: [RouterModule.forRoot([
7-
{path: '', loadChildren: './introduction/introduction.module#IntroductionModule'}
7+
{path: '', loadChildren: './introduction/introduction.module#IntroductionModule'},
8+
{path: 'scrolling', loadChildren: './scrolling/scrolling.module#ScrollingModule'}
89
])],
910
exports: [RouterModule]
1011
})

projects/ng-sortgrid-demo/src/app/introduction/examples/async-pipe/async-pipe-memory.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {delay, tap} from 'rxjs/operators';
55
@Component({
66
selector: 'ngsg-demo-async',
77
templateUrl: './async-pipe-memory.component.html',
8-
styleUrls: ['./async-pipe-memory.component.css', '../memory-demo.css']
8+
styleUrls: ['./async-pipe-memory.component.css']
99
})
1010
export class AsyncPipeMemoryComponent {
1111

projects/ng-sortgrid-demo/src/app/introduction/examples/getting-started/getting-started-memory.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import {Component} from '@angular/core';
22

33
@Component({
44
selector: 'ngsg-demo-memory',
5-
templateUrl: 'getting-started-memory.component.html',
6-
styleUrls: ['../memory-demo.css']
5+
templateUrl: 'getting-started-memory.component.html'
76
})
87
export class GettingStartedMemoryComponent {
98

projects/ng-sortgrid-demo/src/app/introduction/examples/groups/groups-memory.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import {Component} from '@angular/core';
22

33
@Component({
44
selector: 'ngsg-demo-groups-memory',
5-
templateUrl: 'groups-memory.component.html',
6-
styleUrls: ['../memory-demo.css']
5+
templateUrl: 'groups-memory.component.html'
76
})
87
export class GroupsMemoryComponent {
98

projects/ng-sortgrid-demo/src/app/introduction/examples/memory-demo.css

Lines changed: 0 additions & 20 deletions
This file was deleted.

projects/ng-sortgrid-demo/src/app/introduction/examples/react-on-changes/react-on-changes-memory.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import {Component, OnInit} from '@angular/core';
22

33
@Component({
44
selector: 'ngsg-demo-react-on-changes-memory',
5-
templateUrl: 'react-on-changes-memory.component.html',
6-
styleUrls: ['../memory-demo.css']
5+
templateUrl: 'react-on-changes-memory.component.html'
76
})
87
export class ReactOnChangesMemoryComponent implements OnInit {
98

projects/ng-sortgrid-demo/src/app/introduction/introduction.component.css

Whitespace-only changes.

projects/ng-sortgrid-demo/src/app/introduction/introduction.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ <h1>5. Scrolling</h1>
3434
The scrolling demo is in a separate page because we need more items and a sticky navheader.
3535
</p>
3636

37-
<button class="btn btn-primary" style="margin-bottom: 50px">Check out the demo...</button>
37+
<button routerLink="scrolling" class="btn btn-primary" style="margin-bottom: 50px">Check out the demo...</button>
3838

3939
</div>

0 commit comments

Comments
 (0)