定制 tacone/rapyd-datatree 二次开发

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

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

tacone/rapyd-datatree

Composer 安装命令:

composer require tacone/rapyd-datatree

包简介

README 文档

README

If you use Laravel 5 you don't need this repository, the datatree has been merged in the core of Rapyd!

If you use Laravel 4.2 and Rapyd you can use this repo to add the DataTree to your app.

Installation

Before beginning, you need to add to your composer Baum\Baum as we don't add it automatically for you.

Add it to composer, add the service provider and publish the assets.

Add the service provider to app.php

        'Tacone\RapydDataTree\RapydDataTreeServiceProvider',

Add the css and js hooks in your template:

In the <head>:

    {{ DataTree::styles() }}

At the end of the <body>:

    {{ DataTree::scripts() }}

Sample usage

use Tacone\RapydDataTree\DataTree;

class MyController extends Controller
{
    public function anyIndex($rootId = null)
    {
        $rootId or App::abort(404);
        $root = Menu::find($rootId) or App::abort(404);

        $tree = DataTree::source($root);
        $tree->add('title');
        $tree->edit("/admin/menu/edit", 'Edit', 'modify|delete');

        return View::make('admin/menu/index', compact('tree'));
    }
}

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-11-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固