Add filter event
parent
ec4015255e
commit
7cc6de6fb8
|
@ -474,6 +474,11 @@ export default {
|
|||
filteredValue = data;
|
||||
}
|
||||
|
||||
this.$emit('filter', {
|
||||
filters: this.filters,
|
||||
filteredValue: filteredValue
|
||||
});
|
||||
|
||||
return filteredValue;
|
||||
},
|
||||
onRowClick(event, rowData, rowIndex) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue