@@ -45,11 +45,11 @@ To pass them as widget options:
4545        'name',
4646        'email'
4747    ],
48-     'withColumnFilter' => true
48+     'withColumnFilter' => true, 
4949]) ?>
5050``` 
5151
52- ## Specifies header label  
52+ ## Specifies header label and css class for cell   
5353
5454``` php 
5555    <?= \nullref\datatable\DataTable::widget([
@@ -58,6 +58,7 @@ To pass them as widget options:
5858            [
5959                'data' => 'active',
6060                'title' => 'Is active',
61+                 'sClass' => 'active-cell-css-class',
6162            ],
6263        ],
6364    ]) ?>
@@ -72,7 +73,7 @@ To pass them as widget options:
7273            [
7374                'class' => 'nullref\datatable\LinkColumn',
7475                'url' => ['/model/delete'],
75-                 'options ' => ['data-confirm' => 'Are you sure you want to delete this item?', 'data-method' => 'post'],
76+                 'linkOptions ' => ['data-confirm' => 'Are you sure you want to delete this item?', 'data-method' => 'post'],
7677                'label' => 'Delete',
7778            ],
7879        ],
@@ -84,7 +85,7 @@ Properties of `LinkColumn`:
8485-  ` label `  - text placed in ` a `  tag;
8586-  ` title `  - header title of column;
8687-  ` url `  - will be passed to ` Url::to() ` ;
87- -  ` options `  - HTML options of the ` a `  tag;
88+ -  ` linkOptions `  - HTML options of the ` a `  tag;
8889-  ` queryParams `  - array of params added to ` url ` , ` ['id'] `  by default;
8990-  ` render `  - custom render js function. E.g:
9091``` php 
@@ -121,11 +122,11 @@ You ca add column filtering functionality by setting option `withColumnFilter` t
121122            [
122123                'data' => 'active',
123124                'title' => \Yii::t('app', 'Is active'),
124-                 'filter' => [  'true' => 'Yes', 'false' => 'No' ] 
125+                 'filter' => ['true' => 'Yes', 'false' => 'No'], 
125126            ],
126127            [
127128                'data' => 'last_connection',
128-                 'filter' => false
129+                 'filter' => false, 
129130            ],
130131        ],
131132    ]) ?>
@@ -167,8 +168,8 @@ Cell rendering or filter can be customized using `\nullref\datatable\DataTableCo
167168``` php 
168169'assetManager' => [
169170    'bundles' => [
170-         'nullref\datatable\DataTableAsset' => [
171-             'styling' => \nullref\datatable\DataTableAsset::STYLING_BOOTSTRAP,
171+         'nullref\datatable\assets\ DataTableAsset' => [
172+             'styling' => \nullref\datatable\assets\ DataTableAsset::STYLING_BOOTSTRAP,
172173        ]
173174    ],
174175],
@@ -187,15 +188,15 @@ Bootstrap tables require the class 'table', so you'll need to add the 'table' cl
187188    'columns' => [
188189        'id',
189190        'name',
190-         'email'
191+         'email', 
191192    ],
192193]) ?>
193194``` 
194195
195196## Custom assets  
196- It's posible  to use custom styles and scripts:
197+ It's possible  to use custom styles and scripts:
197198``` php 
198- 'nullref\datatable\DataTableAsset' => [
199+ 'nullref\datatable\assets\ DataTableAsset' => [
199200    'sourcePath' => '@webroot/js/plugin/datatables/',
200201    'js' => [
201202        'jquery.dataTables-1.10-cust.js',
0 commit comments