diff --git a/README.md b/README.md index 91026fd..d38f442 100644 --- a/README.md +++ b/README.md @@ -181,12 +181,15 @@ $builder->info($text, $title = null); #### ListDialog ```php -$builder->listCheck(array $list, $text = null, $selected = null); +$builder->listCheck(array $list, $text = null, array $selected = null); $builder->listMenu(array $list, $text = null); -$builder->listRadio(array $list, $text = null, array $selected = null); +$builder->listRadio(array $list, $text = null, $selected = null); $builder->table(array $rows, array $columns = null, $text = null); ``` +Where `$selected` in case of listCheck is an array of keys of the items from `$list` you want to preselect. +Where `$selected` in case of listRadio is the key of the item from `$list` you want to preselect. + ![https://help.gnome.org/users/zenity/stable/list.html](https://help.gnome.org/users/zenity/stable/figures/zenity-list-screenshot.png) #### NotificationDialog