2017 © Pedro Peláez
 

yii2-extension yii2-gridify-view

This is widget extended of ListView with plugin of https://github.com/hongkhanh/gridify. This widget allows load content automatically via Ajax when you reach the end of the page. Content is displayed in table form.

image

bupy7/yii2-gridify-view

This is widget extended of ListView with plugin of https://github.com/hongkhanh/gridify. This widget allows load content automatically via Ajax when you reach the end of the page. Content is displayed in table form.

  • Monday, May 7, 2018
  • by bupy7
  • Repository
  • 4 Watchers
  • 24 Stars
  • 138 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

yii2-gridify-view

This is widget extended of ListView with plugin of https://github.com/hongkhanh/gridify. This widget allows load content automatically via Ajax when you reach the end of the page. Content is displayed in table form., (*1)

Screenshot, (*2)

Installation

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

Either run, (*4)

$ php composer.phar require bupy7/yii2-gridify-view "dev-master"

or add, (*5)

"bupy7/yii2-gridify-view": "dev-master"

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

How use

Added in your controller following code:, (*7)

public function actionIndex()
{
    $searchModel = new ModelSearch();
    $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

    if (Yii::$app->request->isAjax) {
        return $this->renderPartial('_page', [
            'dataProvider' => $dataProvider,
            'onlyItems' => true,
        ]);
    }

    return $this->render('index', [
        'dataProvider' => $dataProvider,
        'searchModel' => $searchModel,
    ]);
}

Added in your index view following code:, (*8)

$this->render('_page', [
    'dataProvider' => $dataProvider,
]);

Added in your _page view following code:, (*9)

use bupy7\gridifyview\GridifyView;

echo GridifyView::widget([
    'dataProvider' => $dataProvider,
    'itemView' => '_item',
    'onlyItems' => isset($onlyItems) ? $onlyItems : false,
    'pluginOptions' => [
        'url' => ['/path/to/actin/in/your/controller'],
        'srcNode' => '> div',
        'resizable' => true,
        'width' => '250px',
        'maxWidth' => '350px',
        'margin' => '20px',
    ],
    'events' => [
        'afterLoad' => 'function(){
            alert('Successfully!');
        }',
    ],
]);

License

yii2-gridify-view is released under the BSD 3-Clause License., (*10)

The Versions

07/05 2018

dev-master

9999999-dev https://github.com/bupy7/yii2-gridify-view

This is widget extended of ListView with plugin of https://github.com/hongkhanh/gridify. This widget allows load content automatically via Ajax when you reach the end of the page. Content is displayed in table form.

  Sources   Download

BSD-3-Clause BSD 3-Clause

The Requires

 

extension yii2 widget grid image view box listview

07/05 2018

1.0.1

1.0.1.0 https://github.com/bupy7/yii2-gridify-view

This is widget extended of ListView with plugin of https://github.com/hongkhanh/gridify. This widget allows load content automatically via Ajax when you reach the end of the page. Content is displayed in table form.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 widget grid image view box listview

28/08 2015

1.0.0

1.0.0.0 https://github.com/bupy7/yii2-gridify-view

This is widget extended of ListView with plugin of https://github.com/hongkhanh/gridify. This widget allows load content automatically via Ajax when you reach the end of the page. Content is displayed in table form.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget grid image view box listview