zgabievi/kendo-grid-state 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zgabievi/kendo-grid-state

Composer 安装命令:

composer require zgabievi/kendo-grid-state

包简介

Helper package to handle kendo grid state in Laravel

README 文档

README

Latest Version on Packagist Build Status Quality Score Total Downloads

Do you love to use Kendo Grid on your website? Have you ever tried to manage it's state to return correct data? With the help of this package, it will only take you several seconds now. You just need to install our helper, and tell us on which model should it work... Done!

Installation

Install via composer

composer require zgabievi/kendo-grid-state

Usage

To use this package you only need to add Filterable trait to your model

Example:

 namespace App;
 
 use Illuminate\Database\Eloquent\Model;
 use Zgabievi\KendoGridState\Traits\Filterable;
 
 class Post extends Model
 {
     use Filterable;
     
     //
 }

URL Examples:

  • https://domain.com/api/posts?take=5
  • https://domain.com/api/posts?skip=5&take=2
  • https://domain.com/api/posts?sort[0][field]=title&sort[0][dir]=desc
  • https://domain.com/api/posts?filter[logic]=and&filter[filters][0][field]=title&filter[filters][0][operator]=eq&filter[filters][0][value]=POST_TITLE

Query Parameters:

  • filter?
    • filters[]
      • field? (string | Function)
      • ignoreCase? (boolean)
      • operator ("eq", "neq", "isnull", "isnotnull", "lt", "lte", "gt", "gte", "startswith", "endswith", "contains", "doesnotcontain", "isempty", "isnotempty")
      • value? (any)
    • logic ("or", "and")
  • group?[]
    • aggregates?[]
      • aggregate ("count", "sum", "average", "min", "max")
      • field (string)
    • dir? ("asc", "desc")
    • field (string)
  • skip? (number)
  • sort?
    • dir? ("asc", "desc")
    • field (string)
  • take? (number)

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email zura.gabievi@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License file for more information.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固