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