diselop/yii2-ztree 问题修复 & 功能扩展

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

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

diselop/yii2-ztree

Composer 安装命令:

composer require diselop/yii2-ztree

包简介

The zTree extension for the Yii framework

README 文档

README

zTree is a multi-functional 'tree plug-ins.'

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist diselop/yii2-ztree "*"

or add

"diselop/yii2-ztree": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \diselop\ztree\Ztree::widget(['nodes'=>[
    'name'=>'cities','children'=>[
        ['name'=>'USA','children'=>[
            ['name'=>'New York'],
            ['name'=>'Los Angeles'],
            ['name'=>'Chicago'],
            ['name'=>'San Diego'],
        ]],
        ['name'=>'China','children'=>[
            ['name'=>'Beijing'],
            ['name'=>'Shanghai'],
            ['name'=>'Shenzhen'],
            ['name'=>'Gaozhou'],
        ]],
        ['name'=>'Russia','children'=>[
            ['name'=>'Moscow'],
            ['name'=>'Orenburg'],
            ['name'=>'Omsk'],
            ['name'=>'Samara'],
        ]],
    ]
]]);
?>

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 3
  • 开发语言: CSS

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-02-25