Vue-tables-2: server side table: custom queries in request

Created on 26 May 2017  路  4Comments  路  Source: matfish2/vue-tables-2

  • Vue.js version: 2.2.1
  • consumed using: webpack

hi @matfish2 , first of all you've done a great work, thanks for this component, it really saved a lot of time for me. i have two questions:
1) what is the difference between orderBy and byColumn parameters?
2) is there any way to pass special GET-params (component not depends on them) to the table query in v-server-table?

Most helpful comment

  1. orderBy: which column should be used to sort the results. byColumn: a boolean parameter designating whether you are using a single filter for all columns, or a unique filter for each column (see the filterByColumn option)
  2. Yes. A. the params option allows you to pass additional parameters to the request. B. the customFilters option allows you to pass your own filters using an event bus.

All 4 comments

  1. orderBy: which column should be used to sort the results. byColumn: a boolean parameter designating whether you are using a single filter for all columns, or a unique filter for each column (see the filterByColumn option)
  2. Yes. A. the params option allows you to pass additional parameters to the request. B. the customFilters option allows you to pass your own filters using an event bus.

@matfish2 thanks a lot!

@matfish2 i have another question: is there any way to emit several filters at one moment? I see there is way using bus event, but it supposed to refresh table every time i make changes in each filter. what if i need to customize several filters and send response only after changes are made?

Under Methods:

setFilter(query) - query should be a string, or an object if filterByColumn is set to true.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deryckoe picture deryckoe  路  3Comments

bb78657 picture bb78657  路  6Comments

djokoabdullah picture djokoabdullah  路  3Comments

dhdmstjs picture dhdmstjs  路  6Comments

yosokus picture yosokus  路  3Comments