Skip to content

Commit

Permalink
Merge pull request #16 from d3yii2/ActionColumnAdd
Browse files Browse the repository at this point in the history
Added fixes action column
  • Loading branch information
uldisn authored Jul 2, 2019
2 parents 1869e77 + b5f31a5 commit 3416761
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ Allow upload, download, delete files for model record.
'title' => 'Widget Title',
'icon' => false,
'hideTitle' => false,
'readOnly' => false
'readOnly' => false,
//'viewByFancyBox' => false,
//'controllerRoute'=>'/d3emails/email/', //use if different controllers
// 'actionColumn' => static function ($row) {
// return 'OK';
//}

]
) ?>
```
Expand Down Expand Up @@ -251,3 +257,4 @@ D3files::saveFile($fileName, Users::className(), $model->id, $filePath, $fileTyp
- 0.9.0 (Feb 26, 2017) - added RU translation
- 0.9.3 (May 29, 2017) - auto creating upload directories
- 0.9.4 (Nov 16, 2017) - added parameter controllerRoute
- 0.9.13 (Jul 2, 2018) - added action column
4 changes: 3 additions & 1 deletion widgets/D3FilesWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use d3yii2\d3files\D3Files;
use d3yii2\d3files\models\D3files as ModelD3Files;
use yii\db\ActiveRecord;
use yii\helpers\Url;

class D3FilesWidget extends Widget
{
Expand Down Expand Up @@ -105,7 +106,8 @@ public function run()
'fileList' => $this->fileList,
'url_prefix' => $url_prefix,
'viewByFancyBox' => $this->viewByFancyBox,
'viewByFancyBoxExtensions' => $this->viewByFancyBoxExtensions
'viewByFancyBoxExtensions' => $this->viewByFancyBoxExtensions,
'actionColumn' => $this->actionColumn
]
);

Expand Down

0 comments on commit 3416761

Please sign in to comment.