From 191109bf98f53255b293effe8b511b079bdcf48b Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 1 Oct 2019 13:18:33 +0300 Subject: [PATCH] Add presort sample --- src/views/datatable/DataTableSortDemo.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/datatable/DataTableSortDemo.vue b/src/views/datatable/DataTableSortDemo.vue index f9b68aca9..d48fb2b04 100644 --- a/src/views/datatable/DataTableSortDemo.vue +++ b/src/views/datatable/DataTableSortDemo.vue @@ -25,6 +25,14 @@ + +

Presort

+ + + + + +
@@ -47,6 +55,14 @@ <Column field="brand" header="Brand" :sortable="true"></Column> <Column field="color" header="Color" :sortable="true"></Column> </DataTable> + +<h3>Presort</h3> +<DataTable :value="cars" sortField="year" :sortOrder="-1"> + <Column field="vin" header="Vin" :sortable="true"></Column> + <Column field="year" header="Year" :sortable="true"></Column> + <Column field="brand" header="Brand" :sortable="true"></Column> + <Column field="color" header="Color" :sortable="true"></Column> +</DataTable>