> For the complete documentation index, see [llms.txt](https://ryunosukee.gitbook.io/vue3-datatables/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryunosukee.gitbook.io/vue3-datatables/methods.md).

# Methods

* `setOrder(column, isAscending)`
* `setFilter(query)` - `query` should be a string, or an object if `filterByColumn` is set to `true`.
* `resetQuery()` - Resets all query inputs (user-request filters) to empty strings.
* `getData()` Get table data using the existing request parameters. Server component only.
* `refresh()` Refresh the table. This method is simply a wrapper for the `serverSearch` method, and thus resets the pagination. Server component only
* `getOpenChildRows(rows = null)` If no argument is supplied returns all open child row components in the page. To limit the returned dataset you can pass the `rows` arguemnt, which should be an array of unique identifiers.
* `setCustomFilters(params)` set custom filters values. Expects an object with key-value pairs
* `resetCustomFilters()` (server component) resets all custom filters to `null`
* `getRequestParams()` (server component) get current request parameters
* `setRequestParams(params)` (server component) - see

  [here](https://2221522102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7sYHptVdDcwClGe4CEQW%2Fuploads%2FrmrvdGgcio3CoVNa5RlP%2Fsetting%20multiple%20request%20parameters?alt=media)

  ​
* `downloadCsv(filename = 'table.csv')` (client component) -

  [premium version](https://xscode.com/matfish2/vue-tables-2)

  \- download CSV of current table state (i.e filtered and sorted, without pagination limit)
