jamesdordoy / laravel-vue-datatable

Vue.js Datatable made for Laravel
https://jamesdordoy.github.io/laravel-vue-datatable
MIT License
151 stars 52 forks source link

Pagination : can't find this : Showing X to X of X Entries #102

Closed JamalSaid closed 4 years ago

JamalSaid commented 4 years ago

hello,

i want to show this div " Showing X to X of X Entries "in the bottom of the table .

may table 👍

` <data-table ref="UserTable" url="api/user" order-dir= "desc" :per-page="perPage" :columns="columns" :classes="classes"

                    <slot v-if="column.label == 'Actions'">
                        <a href="#"  @click="editModel(item)" title="Update">
                            <i class="fa fa-edit text-primary mr-2 "></i>
                        </a>
                        <a href="#" @click="deleteUser(item.id)" title="Delete">
                            <i class="fa fa-trash  text-danger "></i>
                        </a>
                    </slot>

                </td>
            </tr>
        </tbody>
        <tbody v-else class="text-center" slot="body">

            <span class="text-center">No Data Found</span>

        </tbody>
        </data-table>`

pLease Sir Somehelp i need to konw the total of Users.

JamalSaid commented 4 years ago

fixed with your awesome Code :

<data-table :url="url" :columns="columns">

Thank you Bro :)

edwingromero commented 3 years ago

How do I change the language of "Showing X to X of X Entries"