Skip to content

Commit 12fad84

Browse files
committed
update README
1 parent b7eeb6e commit 12fad84

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ public function actions()
127127
```
128128

129129

130-
In DataTable options specify:
131-
```js
132-
{
133-
"serverSide": true,
134-
"ajax": "/datatables"
135-
}
130+
And add options to widget:
131+
132+
```php
133+
<?= \nullref\datatable\DataTable::widget([
134+
/** ... */
135+
'serverSide' => true,
136+
'ajax' => '/site/datatables',
137+
]) ?>
136138
```
137139

138140

0 commit comments

Comments
 (0)