Skip to content

Commit fa49ce8

Browse files
authored
Merge pull request #41 from bertvandepoel/doc_fix1
Fix documentation for $selected argument for radio and checkbox dialogs
2 parents d3a64dd + b9f5a31 commit fa49ce8

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
@@ -202,12 +202,15 @@ $builder->info($text, $title = null);
202202
#### ListDialog
203203

204204
```php
205-
$builder->listCheck(array $list, $text = null, $selected = null);
205+
$builder->listCheck(array $list, $text = null, array $selected = null);
206206
$builder->listMenu(array $list, $text = null);
207-
$builder->listRadio(array $list, $text = null, array $selected = null);
207+
$builder->listRadio(array $list, $text = null, $selected = null);
208208
$builder->table(array $rows, array $columns = null, $text = null);
209209
```
210210

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

213216
#### NotificationDialog

0 commit comments

Comments
 (0)