forked from kartik-v/yii2-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Module.php
48 lines (42 loc) · 1.39 KB
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @package yii2-grid
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016
* @version 3.1.2
*/
namespace kartik\grid;
use Yii;
/**
* Module with various modifications to the Yii 2 grid.
*
* @author Kartik Visweswaran <[email protected]>
* @since 1.0
*/
class Module extends \kartik\base\Module
{
const MODULE = "gridview";
/**
* @var mixed the action (url) used for downloading exported file
*/
public $downloadAction = '/gridview/export/download';
/**
* @inheritdoc
*/
public function init()
{
$this->_msgCat = 'kvgrid';
parent::init();
if (isset($dummyDemoTranslations)) {
/** @noinspection PhpUnusedLocalVariableInspection */
$dummyMessages = Yii::t('kvgrid', 'Add Book') .
Yii::t('kvgrid', 'Book Listing') .
Yii::t('kvgrid', 'Download Selected') .
Yii::t('kvgrid', 'Library') .
Yii::t('kvgrid', 'Reset Grid') .
Yii::t('kvgrid', 'The page summary displays SUM for first 3 amount columns and AVG for the last.') .
Yii::t('kvgrid', 'The table header sticks to the top in this demo as you scroll') .
Yii::t('kvgrid', 'Resize table columns just like a spreadsheet by dragging the column edges.');
}
}
}