xpbl4/yii2-grid

The GridView override for Yii2 framework.

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

v1.0.1 2023-08-27 23:08 UTC

This package is auto-updated.

Last update: 2024-12-21 21:26:35 UTC


README

Latest Version Software License Total Downloads

GridView widget extending features of Yii 2 framework widget.

Install

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist xpbl4/yii2-grid "*"

or add

"xpbl4/yii2-grid": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by:

use xpbl4\grid\GridView;

echo GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        'id',
        'name',
        'created_at:datetime',
        // ...
    ],
]);

GridView

The following functionalities have been added/enhanced:

Table Filter (Enhanced)

  • Filter/Header position
    • [[FILTER_POS_HEADER]]: the filters will be replace of each column's header cell.
  • Filter error placement
    • [[ERROR_POS_FILTER]]: the errors will be displayed right below each column's filter input.
    • [[ERROR_POS_SUMMARY]]: the errors will be displayed in the filter model {errors} section. See [[renderErrors()]].
    • [[ERROR_POS_TOOLTIP]]: the errors will be displayed in tooltip of each column's filter input.

Contributing

Please see CONTRIBUTING for details.

Credits

License

yii2-grid is released under the BSD-3-Clause License. Please see License File for more information.