Add presort sample
parent
31fa89613c
commit
191109bf98
|
@ -25,6 +25,14 @@
|
||||||
<Column field="brand" header="Brand" :sortable="true"></Column>
|
<Column field="brand" header="Brand" :sortable="true"></Column>
|
||||||
<Column field="color" header="Color" :sortable="true"></Column>
|
<Column field="color" header="Color" :sortable="true"></Column>
|
||||||
</DataTable>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content-section documentation">
|
<div class="content-section documentation">
|
||||||
|
@ -47,6 +55,14 @@
|
||||||
<Column field="brand" header="Brand" :sortable="true"></Column>
|
<Column field="brand" header="Brand" :sortable="true"></Column>
|
||||||
<Column field="color" header="Color" :sortable="true"></Column>
|
<Column field="color" header="Color" :sortable="true"></Column>
|
||||||
</DataTable>
|
</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>
|
||||||
</template>
|
</template>
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue