A Yii2 data provider that transpose data into a table format
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.
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