定制 yii-dream-team/yii2-jstree 二次开发

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

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

yii-dream-team/yii2-jstree

最新稳定版本:1.0.0

Composer 安装命令:

composer require yii-dream-team/yii2-jstree

包简介

Yii2 JsTree assets and widget

README 文档

README

jsTree is jquery plugin, that provides interactive trees. It is absolutely free, open source and distributed under the MIT license. jsTree is easily extendable, themable and configurable, it supports HTML & JSON data sources and AJAX loading.

This package allows you to integrate jsTree jQuery plugin into your project in a few minutes.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii-dream-team/yii2-jstree "*"

or add

"yii-dream-team/yii2-jstree": "*"

to the require section of your composer.json.

Usage

<?= \yiidreamteam\jstree\JsTree::widget([
    'containerOptions' => [
        'class' => 'data-tree',
    ],
    'jsOptions' => [
        'core' => [
            'multiple' => false,
            'data' => [
                'url' => \yii\helpers\Url::to(['ajax/tree']),
            ],
            'themes' => [
                'name' => 'foobar',
                'url' => "/themes/foobar/js/jstree3/style.css",
                'dots' => true,
                'icons' => false,
            ]
        ],
    ]
]) ?>

Licence

MIT

Links

统计信息

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

GitHub 信息

  • Stars: 31
  • Watchers: 5
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-23