承接 yii2mod/yii2-tree 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

yii2mod/yii2-tree

最新稳定版本:1.3.2

Composer 安装命令:

composer require yii2mod/yii2-tree

包简介

Tree widget based on Fancytree plugin.

README 文档

README

Yii2 Tree Widget


Tree widget based on Fancytree extension http://wwwendt.de/tech/fancytree/demo/#sample-default.html

Latest Stable Version Total Downloads License Build Status

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2mod/yii2-tree "*" 

or add

"yii2mod/yii2-tree": "*" 

to the require section of your composer.json.

Usage

Once the extension is installed, simply add widget to your page as follows:

<?php echo yii2mod\tree\Tree::widget([ 'items' => [ ['title' => 'Category 1'], ['title' => 'Category 2'], [ 'title' => 'Category 3', 'children' => [ [ 'title' => 'Category 3.1', ], [ 'title' => 'Category 3.2', 'children' => [ [ 'title' => 'Category 3.2.1', ] ], 'folder' => true, ], ], 'folder' => true, ], ], 'clientOptions' => [ 'autoCollapse' => true, 'clickFolderMode' => 3, 'activate' => new \yii\web\JsExpression('  function(node, data) {  node = data.node;  // Log node title  console.log(node.title);  }  '), ], ]); ?>

You can also change the theme of Fancytree extension!

To change the theme, you can configure the assetManager array in your application configuration:

// skin-win8 'assetManager' => [ 'bundles' => [ 'yii2mod\tree\TreeAsset' => [ 'css' => [ 'skin-win8/ui.fancytree.less', ] ], ], ]

统计信息

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

GitHub 信息

  • Stars: 21
  • Watchers: 7
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固