microinginer / yii2-dropdown-action-column
Installs: 9 770
Dependents: 2
Suggesters: 0
Security: 0
Stars: 11
Watchers: 4
Forks: 6
Open Issues: 4
Type:yii2-extensions
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-12-11 04:48:44 UTC
README
##Default buttons
echo \yii\grid\GridView::widget([ ... 'columns' => [ ... [ 'class' => \microinginer\dropDownActionColumn\DropDownActionColumn::className(), ], ], ]);
##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' ], ], ] ], ], ]);
##Install
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist microinginer/yii2-dropdown-action-column "dev-master"
or add
"microinginer/yii2-dropdown-action-column": "dev-master"
to the require section of your composer.json file.