Skip to content

Commit b9f5a31

Browse files
committed
Fix documentation for $selected argument for radio and checkbox dialogs
1 parent 9c25631 commit b9f5a31

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,15 @@ $builder->info($text, $title = null);
181181
#### ListDialog
182182

183183
```php
184-
$builder->listCheck(array $list, $text = null, $selected = null);
184+
$builder->listCheck(array $list, $text = null, array $selected = null);
185185
$builder->listMenu(array $list, $text = null);
186-
$builder->listRadio(array $list, $text = null, array $selected = null);
186+
$builder->listRadio(array $list, $text = null, $selected = null);
187187
$builder->table(array $rows, array $columns = null, $text = null);
188188
```
189189

190+
Where `$selected` in case of listCheck is an array of keys of the items from `$list` you want to preselect.
191+
Where `$selected` in case of listRadio is the key of the item from `$list` you want to preselect.
192+
190193
![https://help.gnome.org/users/zenity/stable/list.html](https://help.gnome.org/users/zenity/stable/figures/zenity-list-screenshot.png)
191194

192195
#### NotificationDialog

0 commit comments

Comments
 (0)