承接 webvimark/jqtreewidget 相关项目开发

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

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

webvimark/jqtreewidget

Composer 安装命令:

composer require webvimark/jqtreewidget

包简介

Tree

README 文档

README

Wrapper for awesome http://mbraak.github.io/jqTree/

--

Lets say you have model Category with following structure:

  • id
  • parent_id
  • active
  • sorter

Then name, description and so on.

This widget will help you to create nice tree, which allows you to sort and change structre by drug and drop

Twitter bootstrap 2 would be nice, but not necessary

Installation

  1. Place this widget in "extensions" folder
  2. Probably you have folder named "jqtreewidget" in lowercase. Rename it to "JQTreeWidget"

Usage

If your model doesn't have 'status' or similar field, then just remove 'statusField'

<?php $this->widget('ext.JQTreeWidget.JQTreeWidget', array(
        'models'        => Category::find()->orderBy('sorter')->all(), // It has to be ordered by **'orderField'**
        'modelName'     => 'Category',
        'parentIdField' => 'parent_id',
        'statusField'   => 'active',
        'orderField'    => 'sorter',
        'withChildren'    => false, //default = true
        'leafName'      => function($model){
			return Html::a($model->name, ['/content/page/update', 'id'=>$model->id]);
		},
)) ?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-08-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固