[Documentation] VDataTable footer props need more clear example
See original GitHub issueProblem to solve
Given Example :
<div id="app">
<v-app id="inspire">
<v-data-table
:headers="headers"
:items="desserts"
:items-per-page="5"
item-key="name"
class="elevation-1"
:footer-props="{
showFirstLastPage: true,
firstIcon: 'mdi-arrow-collapse-left',
lastIcon: 'mdi-arrow-collapse-right',
prevIcon: 'mdi-minus',
nextIcon: 'mdi-plus'
}"
></v-data-table>
</v-app>
</div>
comments
I’m so sorry if this is stupid request, and i’m sorry also maybe my experience is not enough, but i just want to solve the problem that i had, and share it also, so other people won’t have the same problem that i had, and waste time to search about it.
In the API props table written items-per-page-options
but if going to use under <v-data-table>
as footer-props
it’s become itemsPerPageOptions
.
Proposed solution
Proposed Example:
<div id="app">
<v-app id="inspire">
<v-data-table
:headers="headers"
:items="desserts"
:items-per-page="5"
item-key="name"
class="elevation-1"
:footer-props="{
itemsPerPageOptions: [5, 10], // -> Add this example
showFirstLastPage: true,
firstIcon: 'mdi-arrow-collapse-left',
lastIcon: 'mdi-arrow-collapse-right',
prevIcon: 'mdi-minus',
nextIcon: 'mdi-plus'
}"
></v-data-table>
</v-app>
</div>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:45
- Comments:9 (1 by maintainers)
Top Results From Across the Web
v-data-table API - Vuetify
Vuetify is a Material Design component framework for Vue.js. It aims to provide all the tools necessary to create beautiful content rich applications....
Read more >How do i edit the elements from a vutify data table footer?
You can find it in the docs by switching the "component" to v-data-footer at the "api" section near the top (it's a drop-down...
Read more ><table>: The Table element - HTML - MDN Web Docs - Mozilla
This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:.
Read more >Styling the DataTable - Dash Python
dash_table.DataTable` is an interactive table that supports rich styling, conditional formatting, editing, sorting, filtering, and more.
Read more >DataTable - React Table Component - PrimeFaces
Following sample datatable has 4 columns and retrieves the data from a service on ... refer to the tooltip documentation for more information....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 - had to search to figure this out
firstIcon: 'mdi-arrow-collapse-left', lastIcon: 'mdi-arrow-collapse-right',
How can I add functions to these two icons i.e. how can I add
@click
property?