2017 © Pedro Peláez
 

yii2-extension yii2-actioncolumn

Yii2 ajax delete for action column

image

dixonsatit/yii2-actioncolumn

Yii2 ajax delete for action column

  • Tuesday, January 24, 2017
  • by dixonsatit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

Yii2 Action Column

Yii2 ajax delete for action column, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist dixonsatit/yii2-actioncolumn "*"

or add, (*4)

"dixonsatit/yii2-actioncolumn": "*"

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

Usage

Once the extension is installed, simply use it in your code by :, (*6)


'pjax-id']); ?> = GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ // ..... [ 'class' => 'dixonsatit\actioncolumn\ActionColumn', 'pjaxId'=>'pjax-id' ] ], ]); ?>

in controller change actionDelete() to, (*7)

    public function actionDelete($id)
    {
        $this->findModel($id)->delete();

        //return $this->redirect(['index']);
    }

The Versions

24/01 2017

dev-master

9999999-dev

Yii2 ajax delete for action column

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension yii2

24/01 2017

1.0.2

1.0.2.0

Yii2 ajax delete for action column

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension yii2

24/01 2017

dev-develop

dev-develop

Yii2 ajax delete for action column

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension yii2

22/01 2017

1.0.1

1.0.1.0

Yii2 ajax delete for action column

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension yii2

22/01 2017

1.0.0

1.0.0.0

Yii2 ajax delete for action column

  Sources   Download

MIT

The Requires

 

by sathit seethaphon

extension yii2