2017 © Pedro Peláez
 

yii2-extensions yii2-dropdown-action-column

image

microinginer/yii2-dropdown-action-column

  • Sunday, October 1, 2017
  • by inginer
  • Repository
  • 5 Watchers
  • 10 Stars
  • 2,257 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 4 Open issues
  • 4 Versions
  • 15 % Grown

The README.md

Alternative yii\grid\ActionColumn for yii2

Russian readme, (*1)

Default buttons

echo \yii\grid\GridView::widget([
    ...
    'columns'      => [
        ...
        [
            'class' => \microinginer\dropDownActionColumn\DropDownActionColumn::className(),
        ],
    ],
]);

alternative yii\grid\ActionColumn default buttons, (*2)

Custom buttons

echo \yii\grid\GridView::widget([
    ...
    'columns'      => [
        ...
        [
            'class' => \microinginer\dropDownActionColumn\DropDownActionColumn::className(),
            'items' => [
                [
                    'label' => 'View',
                    'url'   => ['view'],
                ],
                [
                    'label' => 'Export',
                    'url'   => ['expert'],
                ],
                [
                    'label'   => 'Disable',
                    'url'     => ['disable'],
                    'linkOptions' => [
                        'data-method' => 'post'
                    ],
                ],
            ]
        ],
    ],
]);

alternative yii\grid\ActionColumn custom buttons, (*3)

Install

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require --prefer-dist microinginer/yii2-dropdown-action-column "dev-master"

or add, (*6)

"microinginer/yii2-dropdown-action-column": "dev-master"

to the require section of your composer.json file., (*7)

The Versions

01/10 2017

dev-master

9999999-dev https://github.com/microinginer/yii2-dropdown-action-column

  Sources   Download

MIT

The Requires

 

by Avatar inginer
by gir3li

yii2 dropdown gridview buttons actioncolumn dropdownbuttons

01/10 2017

v1.0.2

1.0.2.0 https://github.com/microinginer/yii2-dropdown-action-column

  Sources   Download

MIT

The Requires

 

by Avatar inginer
by gir3li

yii2 dropdown gridview buttons actioncolumn dropdownbuttons

19/09 2017

v1.0.1

1.0.1.0 https://github.com/microinginer/yii2-dropdown-action-column

  Sources   Download

MIT

The Requires

 

by Avatar inginer
by gir3li

yii2 dropdown gridview buttons actioncolumn dropdownbuttons

11/11 2016

v1.0.0

1.0.0.0 https://github.com/microinginer/yii2-dropdown-action-column

  Sources   Download

MIT

The Requires

 

by Avatar inginer
by gir3li

yii2 dropdown gridview buttons actioncolumn dropdownbuttons