PHP code example of rklandesverband / yii2-datatables

1. Go to this page and download the library: Download rklandesverband/yii2-datatables library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rklandesverband / yii2-datatables example snippets


use rklandesverband\datatables\DataTables;


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

...
'clientOptions' => [
    "lengthMenu"=> [[20,-1], [20,Yii::t('app',"All")]],
    "info"=>false,
    "responsive"=>true, 
    "dom"=> 'lfTrtip',
    "tableTools"=>[
        "aButtons"=> [  
            [
            "sExtends"=> "copy",
            "sButtonText"=> Yii::t('app',"Copy to clipboard")
            ],[
            "sExtends"=> "csv",
            "sButtonText"=> Yii::t('app',"Save to CSV")
            ],[
            "sExtends"=> "xls",
            "oSelectorOpts"=> ["page"=> 'current']
            ],[
            "sExtends"=> "pdf",
            "sButtonText"=> Yii::t('app',"Save to PDF")
            ],[
            "sExtends"=> "print",
            "sButtonText"=> Yii::t('app',"Print")
            ],
        ]
    ]
],
...

public $depends = [
...
'rklandesverband\datatables\DataTablesAsset',
...
];
=======
DataTables widget for Yii2
===========================
This extension provides the [DataTables](https://github.com/DataTables/DataTables) integration for the Yii2 framework.


[![Latest Stable Version](https://poser.pugx.org/rklandesverband/yii2-imagecropmassenupload/v/stable)](https://packagist.org/packages/rklandesverband/yii2-imagecropmassenupload)
[![Total Downloads](https://poser.pugx.org/rklandesverband/yii2-imagecropmassenupload/downloads)](https://packagist.org/packages/rklandesverband/yii2-imagecropmassenupload)
[![Latest Unstable Version](https://poser.pugx.org/rklandesverband/yii2-imagecropmassenupload/v/unstable)](https://packagist.org/packages/rklandesverband/yii2-imagecropmassenupload)
[![License](https://poser.pugx.org/rklandesverband/yii2-imagecropmassenupload/license)](https://packagist.org/packages/rklandesverband/yii2-imagecropmassenupload)

Installation
------------

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

With Composer installed, you can then install the extension using the following commands:

    composer global 

use rklandesverband\datatables\DataTables;


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

...
'clientOptions' => [
    "lengthMenu"=> [[20,-1], [20,Yii::t('app',"All")]],
    "info"=>false,
    "responsive"=>true, 
    "dom"=> 'lfTrtip',
    "tableTools"=>[
        "aButtons"=> [  
            [
            "sExtends"=> "copy",
            "sButtonText"=> Yii::t('app',"Copy to clipboard")
            ],[
            "sExtends"=> "csv",
            "sButtonText"=> Yii::t('app',"Save to CSV")
            ],[
            "sExtends"=> "xls",
            "oSelectorOpts"=> ["page"=> 'current']
            ],[
            "sExtends"=> "pdf",
            "sButtonText"=> Yii::t('app',"Save to PDF")
            ],[
            "sExtends"=> "print",
            "sButtonText"=> Yii::t('app',"Print")
            ],
        ]
    ]
],
...

public $depends = [
...
'rklandesverband\datatables\DataTablesAsset',
...
];
>>>>>>> c0bc5c12dfb9197055a648045d168c4325b342c8