Update DataTableScrollDemo.vue

pull/2391/head
Tuğçe Küçükoğlu 2022-04-04 14:15:49 +03:00
parent b0f66117b7
commit 6b53f3ea5d
1 changed files with 41 additions and 41 deletions

View File

@ -42,19 +42,19 @@
<div class="card">
<h5>Horizontal and Vertical with Footer</h5>
<DataTable :value="customers2" :scrollable="true" scrollHeight="400px" :loading="loading" scrollDirection="both">
<Column field="id" header="Id" footer="Id" style="flex-grow:1; flex-basis:100px"></Column>
<Column field="name" header="Name" footer="Name" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="country.name" header="Country" footer="Country" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="date" header="Date" footer="Date" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="balance" header="Balance" footer="Balance" style="flex-grow:1; flex-basis:200px">
<Column field="id" header="Id" footer="Id" style="width:100px"></Column>
<Column field="name" header="Name" footer="Name" style="width:200px"></Column>
<Column field="country.name" header="Country" footer="Country" style="width:200px"></Column>
<Column field="date" header="Date" footer="Date" style="width:200px"></Column>
<Column field="balance" header="Balance" footer="Balance" style="width:200px">
<template #body="{data}">
{{formatCurrency(data.balance)}}
</template>
</Column>
<Column field="company" header="Company" footer="Company" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="status" header="Status" footer="Status" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="activity" header="Activity" footer="Activity" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="representative.name" header="Representative" footer="Representative" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="company" header="Company" footer="Company" style="width:200px"></Column>
<Column field="status" header="Status" footer="Status" style="width:200px"></Column>
<Column field="activity" header="Activity" footer="Activity" style="width:200px"></Column>
<Column field="representative.name" header="Representative" footer="Representative" style="width:200px"></Column>
</DataTable>
</div>
@ -180,19 +180,19 @@ export default {
<div class="card">
<h5>Horizontal and Vertical with Footer</h5>
<DataTable :value="customers2" :scrollable="true" scrollHeight="400px" :loading="loading" scrollDirection="both">
<Column field="id" header="Id" footer="Id" style="flex-grow:1; flex-basis:100px"></Column>
<Column field="name" header="Name" footer="Name" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="country.name" header="Country" footer="Country" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="date" header="Date" footer="Date" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="balance" header="Balance" footer="Balance" style="flex-grow:1; flex-basis:200px">
<Column field="id" header="Id" footer="Id" style="width:100px"></Column>
<Column field="name" header="Name" footer="Name" style="width:200px"></Column>
<Column field="country.name" header="Country" footer="Country" style="width:200px"></Column>
<Column field="date" header="Date" footer="Date" style="width:200px"></Column>
<Column field="balance" header="Balance" footer="Balance" style="width:200px">
<template #body="{data}">
{{formatCurrency(data.balance)}}
</template>
</Column>
<Column field="company" header="Company" footer="Company" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="status" header="Status" footer="Status" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="activity" header="Activity" footer="Activity" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="representative.name" header="Representative" footer="Representative" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="company" header="Company" footer="Company" style="width:200px"></Column>
<Column field="status" header="Status" footer="Status" style="width:200px"></Column>
<Column field="activity" header="Activity" footer="Activity" style="width:200px"></Column>
<Column field="representative.name" header="Representative" footer="Representative" style="width:200px"></Column>
</DataTable>
</div>
@ -402,19 +402,19 @@ export default {
<div class="card">
<h5>Horizontal and Vertical with Footer</h5>
<DataTable :value="customers2" :scrollable="true" scrollHeight="400px" :loading="loading" scrollDirection="both">
<Column field="id" header="Id" footer="Id" style="flex-grow:1; flex-basis:100px"></Column>
<Column field="name" header="Name" footer="Name" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="country.name" header="Country" footer="Country" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="date" header="Date" footer="Date" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="balance" header="Balance" footer="Balance" style="flex-grow:1; flex-basis:200px">
<Column field="id" header="Id" footer="Id" style="width:100px"></Column>
<Column field="name" header="Name" footer="Name" style="width:200px"></Column>
<Column field="country.name" header="Country" footer="Country" style="width:200px"></Column>
<Column field="date" header="Date" footer="Date" style="width:200px"></Column>
<Column field="balance" header="Balance" footer="Balance" style="width:200px">
<template #body="{data}">
{{formatCurrency(data.balance)}}
</template>
</Column>
<Column field="company" header="Company" footer="Company" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="status" header="Status" footer="Status" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="activity" header="Activity" footer="Activity" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="representative.name" header="Representative" footer="Representative" style="flex-grow:1; flex-basis:200px"></Column>
<Column field="company" header="Company" footer="Company" style="width:200px"></Column>
<Column field="status" header="Status" footer="Status" style="width:200px"></Column>
<Column field="activity" header="Activity" footer="Activity" style="width:200px"></Column>
<Column field="representative.name" header="Representative" footer="Representative" style="width:200px"></Column>
</DataTable>
</div>
@ -628,19 +628,19 @@ export default {
<div class="card">
<h5>Horizontal and Vertical with Footer</h5>
<p-datatable :value="customers2" :scrollable="true" scroll-height="400px" :loading="loading" scroll-direction="both">
<p-column field="id" header="Id" footer="Id" style="flex-grow:1; flex-basis:100px"></p-column>
<p-column field="name" header="Name" footer="Name" style="flex-grow:1; flex-basis:200px"></p-column>
<p-column field="country.name" header="Country" footer="Country" style="flex-grow:1; flex-basis:200px"></p-column>
<p-column field="date" header="Date" footer="Date" style="flex-grow:1; flex-basis:200px"></p-column>
<p-column field="balance" header="Balance" footer="Balance" style="flex-grow:1; flex-basis:200px">
<p-column field="id" header="Id" footer="Id" style="width:100px"></p-column>
<p-column field="name" header="Name" footer="Name" style="width:200px"></p-column>
<p-column field="country.name" header="Country" footer="Country" style="width:200px"></p-column>
<p-column field="date" header="Date" footer="Date" style="width:200px"></p-column>
<p-column field="balance" header="Balance" footer="Balance" style="width:200px">
<template #body="{data}">
{{formatCurrency(data.balance)}}
</template>
</p-column>
<p-column field="company" header="Company" footer="Company" style="flex-grow:1; flex-basis:200px"></p-column>
<p-column field="status" header="Status" footer="Status" style="flex-grow:1; flex-basis:200px"></p-column>
<p-column field="activity" header="Activity" footer="Activity" style="flex-grow:1; flex-basis:200px"></p-column>
<p-column field="representative.name" header="Representative" footer="Representative" style="flex-grow:1; flex-basis:200px"></p-column>
<p-column field="company" header="Company" footer="Company" style="width:200px"></p-column>
<p-column field="status" header="Status" footer="Status" style="width:200px"></p-column>
<p-column field="activity" header="Activity" footer="Activity" style="width:200px"></p-column>
<p-column field="representative.name" header="Representative" footer="Representative" style="width:200px"></p-column>
</p-datatable>
</div>