承接 ozzyboshi/yii2-gridview-multiheader 相关项目开发

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

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

ozzyboshi/yii2-gridview-multiheader

Composer 安装命令:

composer require ozzyboshi/yii2-gridview-multiheader

包简介

An extended gridview widget for Yii 2 with multi headers.

README 文档

README

A standard yii2 gridview with more than one header

Yii2 Gridview Multiheader.

This widget is a Yii 2 extension of the regular Yii2 Gridview widget and allows to build a html table with more than a raw as header.

Installation

The preferred way to install this extension is through composer.

Either run

composer require ozzyboshi/yii2-gridview-multiheader

or add

"ozzyboshi/yii2-gridview-multiheader": "*"

to the require section of your composer.json file.

In the latter case you want probably to add a psr-4 autoloader to your composer.json file like this

"autoload" : {
        "classmap" : [
                "vendor/ozzyboshi/yii2-gridview-multiheader"
            ]
        },

and run composer dumpautoload

Usage:

// MyView.php

use ozzyboshi\gridviewmultiheader\GridViewMultiheader as GridViewMultiheader;
...

<?php

echo GridViewMultiheader::widget([
  'tableOptions' => ['class' => 'table table-striped',],
  'addingHeaders' => [
      ['' => 1],
      ['Prelievi da enel' => 3],
      ['Delta Prelievi da enel' => 4],
      ['Produzione impianto' => 3],
      ['Delta produzione impianto' => 4],
      ['Immissioni su rete ENEL' => 3],
      ['Delta immissioni su rete ENEL' => 4],
      ['Consumi casa' => 3]
    ],
    'dataProvider' => $dataProvider,
    'showHeader' => true,
    'id' => 'summarytable',
    'columns' => [
      'data',
      'consumofascia1',
      'consumofascia2',
      'consumofascia3',
      'consumodelta1witheuro',
      'consumodelta2witheuro',
      'consumodelta3witheuro',
      'consumodeltatotalewitheuro',
      'produzionefascia1',
      'produzionefascia2',
      'produzionefascia3',
      'produzionedelta1witheuro',
      'produzionedelta2witheuro',
      'produzionedelta3witheuro',
      'produzionedeltatotalewitheuro',
      'immissionefascia1',
      'immissionefascia2',
      'immissionefascia3',
      'immissionedelta1witheuro',
      'immissionedelta2witheuro',
      'immissionedelta3witheuro',
      'immissionedeltatotalewitheuro',
      'consumicasafotovoltaico',
      'consumicasatotali',
      'consumicasapercentuale',
    ],
  ]);
?>

You can see the result of this table at http://lettureenel.ozzyboshi.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-04-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固