承接 neam/yii-relations-ui 相关项目开发

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

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

neam/yii-relations-ui

Composer 安装命令:

composer require neam/yii-relations-ui

包简介

To simplify editing relations in a Yii 1 app

关键字:

README 文档

README

To simplify editing relations in a Yii 1 app.

Current widget

Has-many relation input based on Handsontable.

Use in a Yii 1 app as follows:

$this->widget('\neam\yii_relations_ui\widgets\HasManyHandsontableInput', [
    'model' => $model,
    'relation' => 'routes',
]);

Use any customized columns and handsontable settings:

$this->widget('\neam\yii_relations_ui\widgets\HasManyHandsontableInput', [
    'model' => $model,
    'relation' => 'routes',
    'settings' => [
        'columns' => [
            (object) ['data' => 'id'],
            (object) ['data' => 'route'],
            (object) ['data' => 'canonical', 'type' => 'checkbox', 'checkedTemplate' => 1, 'uncheckedTemplate' => 0], // example of using checkbox to save an attribute of type BOOLEAN NOT NULL
            (object) ['data' => 'route_type_id'],
            (object) ['data' => 'node_id'],
            (object) ['special' => 'delete_checkbox'], // special virtual column to mark which items should be deleted
        ]
    ]
]);

Note: This widget requires Yii <- Yii 2 bridge available at https://github.com/neam/yii-yii2-bridge

Screenshot 1 - A hasMany relation "routes" displayed in handsontable

![Handsontable Screenshot 1](/docs/screenshots/handsontable-screen-1.jpg?raw=true "A hasMany relation "routes" displayed in handsontable")

Screenshot 2 - A new route being added

Handsontable Screenshot 2

Screenshot 3 - The new route after saving

Handsontable Screenshot 3

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-12-08