Home >PHP Framework >Laravel >Laravel-admin pop-up table component [modified]

Laravel-admin pop-up table component [modified]

藏色散人
藏色散人forward
2020-08-08 11:56:185180browse

The following is an introduction to the laraval-admin pop-up table component from the Laravel tutorial column, I hope it will be helpful to friends in need!

Laravel-admin pop-up table component [modified]

laravel-admin-expand-table

github address: https://github.com/ydtg1993/laravel-admin -expand-table

laravel-admin的弹窗table组件,由于目前现在官方Table组件不支持分页且同步,所以做了个js解决它
简单的js引入调用即可,无过度的封装,使用灵活便于修改自定义

##Background interface attention

1. Method POST
2. Accept the fixed value of passed parameters
p:Current page number
limit: number of entries per page
Other parameters are customized...
3. Return the json data structure
{
    "data":[                    #数据集
        {"id":1,"name":"馒头"},
        {"id":2,"name":"大米"},
        ...
    ],
    "total":25                  #数据总条目书
}

The above is the detailed content of Laravel-admin pop-up table component [modified]. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete