Vue3-datatables
  • Dependencies & Compatability
  • Getting Started
  • Client Table
    • Asynchronous Loading
    • Grouping
    • Filtering Algorithm
    • Editable Cells
  • Server Table
    • Implementations
    • Custom Request Function
    • Setting Multiple Request Parameters
    • Error Message
    • Draw Counter
  • Dependencies & Compatability
  • Getting Started
  • Virtual Pagination
  • Column Templates
  • Nested Data Structures
  • Selectable Rows
  • List Filters
  • Custom Template
  • Custom Filters
  • Multiple Sorting
  • Date Columns
  • Custom Sorting
  • Conditional Cell Styling
  • Columns Visibility
  • Child Rows
  • Properties
  • Slots
  • Methods
  • Events
Powered by GitBook
On this page

Methods

PreviousSlotsNextEvents
  • 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

    ​

  • downloadCsv(filename = 'table.csv') (client component) -

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

premium version
here