定制 digital-creative/nova-data-table 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

digital-creative/nova-data-table

最新稳定版本:v0.1.1

Composer 安装命令:

composer require digital-creative/nova-data-table

包简介

A Laravel Nova card.

README 文档

README

Latest Version on Packagist Total Downloads License

A Laravel Nova Data Table Component

Regular data table NovaDataTable in Action

Data table with row labels NovaDataTable in Action

Installation

You can install the package via composer:

composer require digital-creative/nova-data-table

Basic Usage

class ExampleNovaResource extends Resource
{

    public function cards(Request $request)
        {
            return [
                (new NovaDataTable())
                    ->columns(
                        [
                          new Columns('Name', 'name'),
                          new Columns('Age', 'age'),
                          new Columns('Address', 'address'),
                        ]
                    )->data([
                        [
                            'name' => 'Richard Needham',
                            'address' => '9293 South Peachtree Drive Rahway, NJ 07065',
                            'age' => 18
                        ],
                        [
                            'name' => 'Cari Mckenzie',
                            'address' => '8478 Tallwood St.Far Rockaway, NY 11691',
                            'age' => 24,
                        ],
                        [
                            'name' => 'Daniella Connor',
                            'address' => '7674 Hilltop Road Mcdonough, GA 30252',
                            'age' => 33
                        ],
                        [
                            'name' => 'Lamar Mac',
                            'address' => '67 Thorne Circle New Brunswick, NJ 08901',
                            'age' => 44
                        ]
                    ])
                    ->rowLabels([
                        'Label1',
                        'Label2',
                        'Label2',
                        'Label3',
                    ])
            ];
        }

}

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-04