Add empty records message

pull/256/head
cagataycivici 2020-03-16 19:01:34 +03:00
parent 894712d78e
commit 4f1b0d90cc
2 changed files with 8 additions and 2 deletions

View File

@ -21,6 +21,9 @@
<InputText v-model="filters['global']" placeholder="Global Search" /> <InputText v-model="filters['global']" placeholder="Global Search" />
</div> </div>
</template> </template>
<template #empty>
No customers found.
</template>
<Column selectionMode="multiple" headerStyle="width: 3em"></Column> <Column selectionMode="multiple" headerStyle="width: 3em"></Column>
<Column field="name" header="Name" :sortable="true"> <Column field="name" header="Name" :sortable="true">
<template #body="slotProps"> <template #body="slotProps">
@ -60,7 +63,7 @@
</Column> </Column>
<Column field="date" header="Date" :sortable="true" filterMatchMode="custom" :filterFunction="filterDate"> <Column field="date" header="Date" :sortable="true" filterMatchMode="custom" :filterFunction="filterDate">
<template #filter> <template #filter>
<Calendar v-model="filters['date']" dateFormat="yy-mm-dd" class="p-column-filter" filterMatchMode="equals" placeholder="Registration Date"/> <Calendar v-model="filters['date']" dateFormat="yy-mm-dd" class="p-column-filter" placeholder="Registration Date"/>
</template> </template>
</Column> </Column>
<Column field="status" header="Status" :sortable="true" filterMatchMode="equals"> <Column field="status" header="Status" :sortable="true" filterMatchMode="equals">

View File

@ -2323,6 +2323,9 @@ export default {
&lt;InputText v-model="filters['global']" placeholder="Global Search" /&gt; &lt;InputText v-model="filters['global']" placeholder="Global Search" /&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;/template&gt; &lt;/template&gt;
&lt;template #empty&gt;
No customers found.
&lt;/template&gt;
&lt;Column selectionMode="multiple" headerStyle="width: 3em"&gt;&lt;/Column&gt; &lt;Column selectionMode="multiple" headerStyle="width: 3em"&gt;&lt;/Column&gt;
&lt;Column field="name" header="Name" :sortable="true"&gt; &lt;Column field="name" header="Name" :sortable="true"&gt;
&lt;template #body="slotProps"&gt; &lt;template #body="slotProps"&gt;
@ -2362,7 +2365,7 @@ export default {
&lt;/Column&gt; &lt;/Column&gt;
&lt;Column field="date" header="Date" :sortable="true" filterMatchMode="custom" :filterFunction="filterDate"&gt; &lt;Column field="date" header="Date" :sortable="true" filterMatchMode="custom" :filterFunction="filterDate"&gt;
&lt;template #filter&gt; &lt;template #filter&gt;
&lt;Calendar v-model="filters['date']" dateFormat="yy-mm-dd" class="p-column-filter" filterMatchMode="equals" placeholder="Registration Date"/&gt; &lt;Calendar v-model="filters['date']" dateFormat="yy-mm-dd" class="p-column-filter" placeholder="Registration Date"/&gt;
&lt;/template&gt; &lt;/template&gt;
&lt;/Column&gt; &lt;/Column&gt;
&lt;Column field="status" header="Status" :sortable="true" filterMatchMode="equals"&gt; &lt;Column field="status" header="Status" :sortable="true" filterMatchMode="equals"&gt;