Skip to content

Conversation

yajra
Copy link
Owner

@yajra yajra commented Oct 10, 2020

Add LaravelDataTables table variable.

See #143 for initial usage.

Example Code

mounted() {
    let vm = this;
    this.documentsTable = window.dtx['documents-table']({
        stateSave: true,
        stateSaveParams(settings, data) {
            data.company_id = vm.companyId;
        },
        stateLoadParams(settings, data) {
            vm.companyId = data.company_id;
        }
    })
}

@yajra yajra added hacktoberfest hacktoberfest-accepted Accepted for Hacktoberfest labels Oct 10, 2020
@yajra yajra merged commit 423038c into 4.0 Oct 10, 2020
@yajra yajra deleted the function-template-options branch October 10, 2020 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest hacktoberfest-accepted Accepted for Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant