Add placeholders

pull/104/head
cagataycivici 2019-10-22 09:27:10 +03:00
parent 291d699b9f
commit 5395bc19de
1 changed files with 4 additions and 4 deletions

View File

@ -19,12 +19,12 @@
</template> </template>
<Column field="vin" header="Vin" filterMatchMode="startsWith"> <Column field="vin" header="Vin" filterMatchMode="startsWith">
<template #filter> <template #filter>
<InputText type="text" v-model="filters['vin']" class="p-column-filter" /> <InputText type="text" v-model="filters['vin']" class="p-column-filter" placeholder="Starts with" />
</template> </template>
</Column> </Column>
<Column field="year" header="Year" filterMatchMode="contains"> <Column field="year" header="Year" filterMatchMode="contains">
<template #filter> <template #filter>
<InputText type="text" v-model="filters['year']" class="p-column-filter" /> <InputText type="text" v-model="filters['year']" class="p-column-filter" placeholder="Contains" />
</template> </template>
</Column> </Column>
<Column field="brand" header="Brand" filterMatchMode="equals"> <Column field="brand" header="Brand" filterMatchMode="equals">
@ -64,12 +64,12 @@
&lt;/template&gt; &lt;/template&gt;
&lt;Column field="vin" header="Vin" filterMatchMode="startsWith"&gt; &lt;Column field="vin" header="Vin" filterMatchMode="startsWith"&gt;
&lt;template #filter&gt; &lt;template #filter&gt;
&lt;InputText type="text" v-model="filters['vin']" class="p-column-filter" /&gt; &lt;InputText type="text" v-model="filters['vin']" class="p-column-filter" placeholder="Starts with" /&gt;
&lt;/template&gt; &lt;/template&gt;
&lt;/Column&gt; &lt;/Column&gt;
&lt;Column field="year" header="Year" filterMatchMode="contains"&gt; &lt;Column field="year" header="Year" filterMatchMode="contains"&gt;
&lt;template #filter&gt; &lt;template #filter&gt;
&lt;InputText type="text" v-model="filters['year']" class="p-column-filter" /&gt; &lt;InputText type="text" v-model="filters['year']" class="p-column-filter" placeholder="Contains" /&gt;
&lt;/template&gt; &lt;/template&gt;
&lt;/Column&gt; &lt;/Column&gt;
&lt;Column field="brand" header="Brand" filterMatchMode="equals"&gt; &lt;Column field="brand" header="Brand" filterMatchMode="equals"&gt;