Skip to content

eddmash/yii2-transpose-dataprovider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-transposedataprovider

A Yii2 data provider that transpose data into a table format

Installation

The preferred way to install this extension is through composer.

Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.

Either run

$ php composer.phar require eddmash/transposedataprovider "@dev"

or add

"eddmash/transposedataprovider": "@dev"

to the require section of your composer.json file.

Usage

use Eddmash\TransposeDataProvider;

$dataProvider = new TransposeDataProvider([
    'query'=>$dataQuery,
    'groupField'=>'rowid',
    'columnsField'=>'columns.column_name',
    'valuesField'=>'data',
    'extraFields'=>['call_data_id', 'instance.name'],
    'pagination'=>[
        'pageSize'=>4
    ]
]);

Learn more yii2-transpose-dataprovider documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages