-
Notifications
You must be signed in to change notification settings - Fork 399
Vuetable Methods
- normalizeFields
- setData
- reload
- refresh
- resetData
- transform
- gotoPreviousPage
- gotoNextPage
- gotoPage
- changePage
- isVisibleDetailRow
- showDetailRow
- hideDetailRow
- toggleDetailRow
- showField
- hideField
- toggleField
-
params: none
-
description
Parse
fields
definition to field objects usable by Vuetable. This method is called automatically "once" during thecreated
life cycle hook.If you dynamically change the
fields
prop, you will need to manually callnormalizeFields
method to properly parse thefields
definition as Vuetable will not be able to pickup the change and will not work as expected.
-
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
tofalse
.
-
params: none
-
description
Force Vuetable to reload the data from the server using the current value of parameters. However, the page number will not be reset.
-
params: none
-
description
Force Vuetable to reload the data from the server and the page number will be reset to 1. It's the same as using goto-page page event to load page 1.
-
params: none
-
description
This will set
tableData
andtablePagination
tonull
resulting in not displaying any data in the table (as there is no data to display). This method will also firevuetable:data-reset
event which can be captured to force update pagination component accordingly.
-
params:
- data: Array
-
must return: Array
-
description
In case, the data returned from the server is not in the format that Vuetable expected, you can define
transform
method on the main Vue instance and Vuetable will automatically called it with the data from the server.The
transform
method must return the array of data that Vuetable expected.See also: Data Format (JSON)
-
params: none
-
description
** API Mode Only **
This method will automatically request the previous page of data from the server.
-
params: none
-
description
** API Mode Only **
This method will automatically request the next page of data from the server.
-
params:
- page: Number
-
description
** API Mode Only **
This method will automatically request the specified page of data from the server.
-
params:
- page: String, Number
-
description
** API Mode Only **
This method will automatically request the specified page of data from the server. You can either pass in the page number, or 'prev' string for previous page, or 'next' string for next page.
-
params:
- rowId: RowIdentifier
-
description
Determine if the detail row of the given row identifier is marked as visible.
See also: Row Identifier
-
params:
- rowId: RowIdentifier
-
description
Force displaying the detail row of the given row.
See also: Row Identifier
-
params:
- rowId: RowIdentifier
-
description
Force hiding the detail row of the given row.
See also: Row Identifier
-
params:
- rowId: RowIdentifier
-
description
Toggle the display of the detail row of the given row.
See also: Row Identifier
-
params:
- index: Number
-
description
Force displaying the specified field.
-
params:
- index: Number
-
description
Force hiding the specified field.
-
params:
- index: Number
-
description
Toggle display of the specified field.