Skip to content

Commit e2265c1

Browse files
committed
chore(virtual-table-demo): minor virtual table demo fixes
1 parent c32aeb0 commit e2265c1

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

apps/virtual-table-demo/src/samples/sample-eight/sample-eight.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
key="active"
2828
sticky
2929
vertical-line
30-
width="60"
30+
width="80"
3131
>
3232
<ng-template ngx-th />
3333
<ng-template
@@ -70,7 +70,6 @@
7070
<ng-template
7171
let-cell
7272
ngx-td
73-
[nowrap]="false"
7473
>
7574
{{ cell }}
7675
</ng-template>

apps/virtual-table-demo/src/samples/sample-thirteen/sample-thirteen.component.html

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -184,23 +184,22 @@
184184
import &#123; Data &#125; from "./data.interface";
185185

186186
&#64;Component(&#123;
187-
selector: 'app',
188-
templateUrl: './app.component.html'
189-
&#123;)
187+
selector: 'app',
188+
templateUrl: './app.component.html'
189+
&#125;)
190190
export class AppComponent &#123;
191-
public data: Data[] = [ .. ];
192-
constructor(private toast: ToastService) &#123;&#125;
191+
public data: Data[] = [ .. ];
193192

194-
public rowOnClick(events: TableEvent): void &#123;
195-
this.toast.success('OnClick', events);
196-
&#125;
197-
198-
public rowDblClick(events: TableEvent): void &#123;
199-
this.toast.success('DblClick', events);
200-
&#125;
193+
constructor(private toast: ToastService) &#123;&#125;
201194

202-
&#123;
195+
public rowOnClick(events: TableEvent): void &#123;
196+
this.toast.success('OnClick', events);
197+
&#125;
203198

199+
public rowDblClick(events: TableEvent): void &#123;
200+
this.toast.success('DblClick', events);
201+
&#125;
202+
&#125;
204203
</code></pre>
205204
</div>
206205
</div>

0 commit comments

Comments
 (0)