restlin/grid Yii2/Grid widget with features

extensionwidgetgrid

grid

Yii2 widget - is a default grid with features. This widget support changing page size from outbox, grouping features from Dosamigos\grid\GroupGridView and export to pdf.

For export to pdf you must set pdfAction (default - site/pdf).

Example action code (not ideal):

public function actionPdf($format = 'A4')
{    
    $html = Yii::$app->request->post('html','no data');
    $pdf = new \mPDF;
    $pdf->setFooter('page.{PAGENO} of {nb}');
    $pdf->AddPageByArray(['newformat' => $format]);
    $css = '<link rel="stylesheet" type="text/css" href="css/print.css"/>'; //example css
    $pdf->writeHtml($css.$html);
    $pdf->Output("output.pdf", "I");
}

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.8 is the latest of 8 releases



GPL-3.0-or-later license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
16 total downloads