Add filter event
parent
ec4015255e
commit
7cc6de6fb8
|
@ -474,6 +474,11 @@ export default {
|
||||||
filteredValue = data;
|
filteredValue = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$emit('filter', {
|
||||||
|
filters: this.filters,
|
||||||
|
filteredValue: filteredValue
|
||||||
|
});
|
||||||
|
|
||||||
return filteredValue;
|
return filteredValue;
|
||||||
},
|
},
|
||||||
onRowClick(event, rowData, rowIndex) {
|
onRowClick(event, rowData, rowIndex) {
|
||||||
|
|
|
@ -928,14 +928,6 @@ export default {
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<tr>
|
||||||
<td>page</td>
|
<td>page</td>
|
||||||
<td>event.page: New page number <br/>
|
<td>event.page: New page number <br/>
|
||||||
|
@ -945,9 +937,18 @@ export default {
|
||||||
</td>
|
</td>
|
||||||
<td>Callback to invoke on pagination.</td>
|
<td>Callback to invoke on pagination.</td>
|
||||||
</tr>
|
</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>
|
<tr>
|
||||||
<td>filter</td>
|
<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>
|
<td>Callback to invoke on filtering.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue