Demo for removableSort

pull/310/head
cagataycivici 2020-04-18 19:15:31 +03:00
parent 45d62fdbae
commit 674c9098e3
1 changed files with 14 additions and 0 deletions

View File

@ -23,6 +23,13 @@
<Column field="size" header="Size" :sortable="true"></Column>
<Column field="type" header="Type" :sortable="true"></Column>
</TreeTable>
<h3>Removable Sort</h3>
<TreeTable :value="nodes" sortMode="single" removableSort>
<Column field="name" header="Name" :expander="true" :sortable="true"></Column>
<Column field="size" header="Size" :sortable="true"></Column>
<Column field="type" header="Type" :sortable="true"></Column>
</TreeTable>
</div>
<div class="content-section documentation">
@ -43,6 +50,13 @@
&lt;Column field="size" header="Size" :sortable="true"&gt;&lt;/Column&gt;
&lt;Column field="type" header="Type" :sortable="true"&gt;&lt;/Column&gt;
&lt;/TreeTable&gt;
&lt;h3&gt;Removable Sort&lt;/h3&gt;
&lt;TreeTable :value="nodes" sortMode="single" removableSort&gt;
&lt;Column field="name" header="Name" :expander="true" :sortable="true"&gt;&lt;/Column&gt;
&lt;Column field="size" header="Size" :sortable="true"&gt;&lt;/Column&gt;
&lt;Column field="type" header="Type" :sortable="true"&gt;&lt;/Column&gt;
&lt;/TreeTable&gt;
</template>
</CodeHighlight>