2017 © Pedro Peláez
 

yii2-extension yii2-grid

Management Yii2 Gridview

image

prawee/yii2-grid

Management Yii2 Gridview

  • Sunday, January 29, 2017
  • by prawee
  • Repository
  • 1 Watchers
  • 3 Stars
  • 199 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Extends grid classes for Yii2 and Bootstrap 4

Contains

  • ActionAuthColumn
  • ActionChildColumn
  • ActionColumn
  • ActionRuleColumn
  • ImageColumn
  • MediaColumn

Installation

on your terminal run this command, (*1)

php composer.phar require prawee/yii2-grid "dev-master"

or add to composer.json on require path., (*2)

"prawee/yii2-grid": "dev-master"

Usage

ActionColumn

on your grid, (*3)

....
[
    'class'=>'prawee\grid\ActionColumn',
],
.....

ImageColumn

on your grid, (*4)

....
[
    'class'=>'prawee\grid\ImageColumn',
    'attribute'=>'image',
    'options'=>[
        'width'=>'40px',
    ],
],
....

ActionChildColumn

on your grid, (*5)

...
[
    'class'=>'prawee\grid\ActionChildColumn',
],
...

or it have child that's support multi param, (*6)

...
[
    'class'=>'prawee\grid\ActionChildColumn',
    'params'=>[
        'ref'=>Yii::$app->getRequest()->get('id'),
        'station'=>2,
    ],
],
...

MediaColumn

on your grid, (*7)

....
[
    'class'=>'prawee\grid\MediaColumn',
    'attribute'=>'name',
    'format'=>'image', #image,video
    'options'=>[
        'width'=>'40px',
    ],
],
....

The Versions

29/01 2017

dev-master

9999999-dev http://www.prawee.com

Management Yii2 Gridview

  Sources   Download

MIT

The Requires

 

extension yii2 gridview actioncolumn imagecolumn childcolumn