Search code examples
vue.jsvuejs2vue-tables-2

Method to get parameters send it in Ajax request


Is there method te get parameters send it with ajax method on vue-tables-2 component ?

query: limit: 25 ascending: 1 page: 1 byColumn: 0


Solution

  • The option requestAdapter in vue-tables-2 is what you're looking for

    example:

    var vueTablesOptions = {
        requestAdapter: (data) => {
            // massage data
            return data;
        },
    }
    

    The author has a much better example here