承接 iutbay/yii2-jstree 相关项目开发

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

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

iutbay/yii2-jstree

最新稳定版本:v0.1

Composer 安装命令:

composer require iutbay/yii2-jstree

包简介

JsTree for Yii2

README 文档

README

JsTree for Yii2.

WIP...

Installation

The preferred way to install this helper is through composer.

Either run

php composer.phar require "iutbay/yii2-jstree" "*"

or add

"iutbay/yii2-jstree" : "*"

to the require section of your application's composer.json file.

https://packagist.org/packages/iutbay/yii2-jstree

Usage

With model and ActiveForm :

<?= $form->field($model, 'test')->widget(\iutbay\yii2jstree\JsTree::className(), [
	'items' => [
		[
			'id' => 1,
			'text' => 'Test 1',
			'children' => [
				[
					'id' => 2,
					'text' => 'Test 2',
				],
			],
		],
		[
			'id' => 3,
			'text' => 'Test 3',
			'icon' => 'fa fa-file',	// font awesome icon
		],
	],
]) ?>

Without model :

<?= \iutbay\yii2jstree\JsTree::widget([
	'name' => 'test',
	'value' => '1,2',
	'items' => [
		[
			'id' => 1,
			'text' => 'Test 1',
			'children' => [
				[
					'id' => 2,
					'text' => 'Test 2',
				],
			],
		],
		[
			'id' => 3,
			'text' => 'Test 3',
			'icon' => 'fa fa-file',	// font awesome icon
		],
	],
]) ?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-12-27