Skip to content

Commit 276e85b

Browse files
authored
Merge pull request #65 from hoaaah/patch-1
Update Readme to explain difference id
2 parents 993fd38 + 62e992b commit 276e85b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ To pass them as widget options:
6464
]) ?>
6565
```
6666

67+
## Specifies datatable id
68+
69+
```php
70+
<?= \nullref\datatable\DataTable::widget([
71+
'data' => $dataProvider->getModels(),
72+
'id' => 'your-datatable-id'
73+
]) ?>
74+
```
75+
6776
## Add Links to row
6877

6978
```php

0 commit comments

Comments
 (0)