承接 gustarus/yii2-activegrid 相关项目开发

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

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

gustarus/yii2-activegrid

最新稳定版本:1.1.0

Composer 安装命令:

composer require gustarus/yii2-activegrid

包简介

A module manage multiple relations in one table

README 文档

README

Use this to build active grids to manage multiple relations.

Usage example

<? use gustarus\activegrid\ActiveGrid; ?>

<? echo ActiveGrid::widget([
  'model' => new Model(),
  'form' => $form, // yii\widgets\ActiveForm
  'models' => $model->quizAnswers,
  'columns' => [
    [
      'class' => ActiveInputColumn::className(),
      'attribute' => 'content',
      'header' => 'Text',
      'headerOptions' => ['class' => 'text-center'],
      'fieldOptions' => ['class' => 'form-control'],
    ],

    [
      'class' => ActiveSelectColumn::className(),
      'attribute' => 'next_question_id',
      'header' => 'Next question',
      'fieldData' => $questionsList,
      'headerOptions' => ['class' => 'text-center'],
      'fieldOptions' => ['prompt' => '', 'class' => 'form-control'],
    ]
  ]
]); ?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-06