Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(table): Split computedItems into multiple functions (#1893)
* feat(table): Split computedItems into multiple functions Don't do all the processing in one function so external users (parent) can grab the items at various stages without having to reproduce all the filtering/sorting/pagination logic. For example a parent may want to have access to the filtered and sorted, but not yet paginated set of items. With the split functions it can now do something like this: const table = this.$refs.the-table let items = table.hasProvider ? table.localItems : table.items items = table.sortItems(table.filterItems(items)) This patch incorporates no functional changes.
- Loading branch information
Showing
1 changed file
with
47 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters