From 5ffd62404725cfe1367d4d51b0f5eead9b87c45c Mon Sep 17 00:00:00 2001
From: cagataycivici
Date: Tue, 22 Oct 2019 10:44:47 +0300
Subject: [PATCH] Fixed code highlight
---
src/views/datatable/DataTableDoc.vue | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue
index 4089fcbfe..69034770f 100644
--- a/src/views/datatable/DataTableDoc.vue
+++ b/src/views/datatable/DataTableDoc.vue
@@ -911,8 +911,8 @@ export default {
Enabling state is easy as defining a unique stateKey, the storage to keep the state is defined with the stateStorage property that accepts session for sessionStorage and local for localStorage.
Currently following features are supported by TableState; paging, sorting, filtering, column resizing, column reordering, row expansion, row group expansion and row selection.
-
-
+
+
<DataTable :value="cars" :paginator="true" :rows="10" :filters.sync="filters" :resizableColumns="true"
stateStorage="session" stateKey="dt-state-demo-session">
<template #header>
@@ -952,8 +952,8 @@ export default {
No records found.
</template>
</DataTable>
-
-
+
+
import CarService from '../../service/CarService';
@@ -1063,25 +1063,25 @@ export default {
<Column field="vin" header="Vin">
<template #body="slotProps">
<span class="p-column-title">Vin</span>
- {{slotProps.data.vin}}
+ {{slotProps.data.vin}}
</template>
</Column>
<Column field="year" header="Year">
<template #body="slotProps">
<span class="p-column-title">Year</span>
- {{slotProps.data.year}}
+ {{slotProps.data.year}}
</template>
</Column>
<Column field="brand" header="Brand">
<template #body="slotProps">
<span class="p-column-title">Brand</span>
- {{slotProps.data.brand}}
+ {{slotProps.data.brand}}
</template>
</Column>
<Column field="color" header="Color">
<template #body="slotProps">
<span class="p-column-title">Color</span>
- {{slotProps.data.color}}
+ {{slotProps.data.color}}
</template>
</Column>
</DataTable>