Answer the question
In order to leave comments, you need to log in
How to repeat less in the code implementing server side pagination, sort, search?
I wrote a table component on vue that can work with pagination, search and sorting on the server side. In fact, the table only renders ready-made data and emits events with the necessary data to the outside, on the basis of which outside the table, methods with requests to the server are already working out. Here's what the component looks like on the page:
<server-table
:items="table.data"
:fields="table.fields"
:meta="table.meta"
@on-page-change="onPageChange"
@on-sort="onSort"
@on-search="onSearch"
/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question