Answers for "laravel pagination vuetify"

PHP
0

laravel pagination vuetify

<v-pagination
    v-model="pagination.current"
    :length="pagination.total"
    @input="onPageChange"
></v-pagination>
Posted by: Guest on February-07-2020
0

laravel pagination vuetify

export default {
    data() {
        return {
            users: null,
            pagination: {
                current: 1,
                total: 0
            }
        }
    },
    methods: {
        getUsers() {
            window.axios.get('/api/users?page=' + this.pagination.current)
                .then(response => {
                    this.users = response.data.data;
                    this.pagination.current = response.data.current_page;
                    this.pagination.total = response.data.last_page;
                });
        },
        onPageChange() {
            this.getUsers();
        }
    },
    mounted() {
        this.getUsers();
    }
}
Posted by: Guest on February-07-2020

Code answers related to "laravel pagination vuetify"

Browse Popular Code Answers by Language