Add filter event

pull/41/head
cagataycivici 2019-07-10 20:59:21 +03:00
parent ec4015255e
commit 7cc6de6fb8
2 changed files with 15 additions and 9 deletions

View File

@ -474,6 +474,11 @@ export default {
filteredValue = data;
}
this.$emit('filter', {
filters: this.filters,
filteredValue: filteredValue
});
return filteredValue;
},
onRowClick(event, rowData, rowIndex) {

View File

@ -928,14 +928,6 @@ export default {
</tr>
</thead>
<tbody>
<tr>
<td>sort</td>
<td>event.originalEvent: Browser event. <br />
event.sortField: Field to sort against. <br />
event.sortOrder: Sort order as integer. <br />
event.multiSortMeta: MultiSort metadata.</td>
<td>Callback to invoke on sort.</td>
</tr>
<tr>
<td>page</td>
<td>event.page: New page number <br/>
@ -945,9 +937,18 @@ export default {
</td>
<td>Callback to invoke on pagination.</td>
</tr>
<tr>
<td>sort</td>
<td>event.originalEvent: Browser event. <br />
event.sortField: Field to sort against. <br />
event.sortOrder: Sort order as integer. <br />
event.multiSortMeta: MultiSort metadata.</td>
<td>Callback to invoke on sort.</td>
</tr>
<tr>
<td>filter</td>
<td>event.filters: Collection of active filters.</td>
<td>event.filters: Collection of active filters. <br />
event.filteredValue: Filtered collection.</td>
<td>Callback to invoke on filtering.</td>
</tr>
<tr>