Initial commit
This commit is contained in:
9
src/app/component/items/items.component.html
Normal file
9
src/app/component/items/items.component.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<p-virtualscroller [items]="items" [itemSize]="[50, 100]" orientation="both" styleClass="border border-surface" [style]="{ width: '500px', height: '200px' }">
|
||||
<ng-template #item let-item let-options="options">
|
||||
<div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
|
||||
<div style="width: 100px">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</p-virtualscroller>
|
||||
Reference in New Issue
Block a user