We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb0cec commit 7a9d315Copy full SHA for 7a9d315
README.md
@@ -31,6 +31,23 @@ to the require section of your `composer.json` file.
31
]) ?>
32
```
33
34
+## DataTable options
35
+Also you can use all [Datatables options](https://datatables.net/reference/option/)
36
+
37
+To pass them as widget options:
38
+```php
39
+<?= \nullref\datatable\DataTable::widget([
40
+ 'data' => $dataProvider->getModels(),
41
+ 'scrollY' => '200px',
42
+ 'scrollCollapse' => true,
43
+ 'paging' => false,
44
+ 'columns' => [
45
+ 'name',
46
+ 'email'
47
+ ],
48
+]) ?>
49
+```
50
51
## Add Links to row
52
53
```php
@@ -136,7 +153,3 @@ And add options to widget:
136
153
'ajax' => '/site/datatables',
137
154
138
155
139
-
140
141
142
0 commit comments