Skip to content

Vuetable Methods

Rati Wannapanop edited this page Apr 12, 2017 · 7 revisions

Vuetable - Methods

# normalizeFields

  • params: none

  • description

    Parse fields definition to field objects usable by Vuetable. This method is called automatically "once" during the created life cycle hook.

    If you dynamically change the fields prop, you will need to manually call normalizeFields method to properly parse the fields definition as Vuetable will not be able to pickup the change and will not work as expected.

# setData

  • params:

    • data: Array
  • description

    You can use this method to manually set the data that Vuetable will be used for table rendering instead of requesting data from the server.

    Note The method will automatically set api-mode to false.

# transform

  • params:

    • data: Array
  • must return: Array

  • description

    aa

# gotoPreviousPage

  • params: none

  • description

    aa

# gotoNextPage

  • params: none

  • description

    aa

# gotoPage

  • params:

    • page: Number
  • description

    aa

# changePage

  • params:
    • page: String, Number

# isVisibleDetailRow

  • params:

    • rowId: Number
  • description

    aa

# showDetailRow

  • params:

    • rowId: Number
  • description

    aa

# hideDetailRow

  • params:

    • rowId: Number
  • description

    aa

# toggleDetailRow

  • params:

    • rowId: Number
  • description

    aa

# showField

  • params:

    • index: Number
  • description

    aa

# hideField

  • params:

    • index: Number
  • description

    aa

# toggleField

  • params:

    • index: Number
  • description

    aa

# reload

  • params: none

  • description

    aa

# refresh

  • params: none

  • description

    aa

Clone this wiki locally