From 32e7fe4e044fe5074845456e1a46c151acc6d712 Mon Sep 17 00:00:00 2001 From: Bert Van de Poel Date: Sun, 17 Jul 2016 09:16:57 +0300 Subject: [PATCH] Fix documentation for $selected argument for radio and checkbox dialogs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 91026fd..6d007cd 100644 --- a/README.md +++ b/README.md @@ -183,10 +183,12 @@ $builder->info($text, $title = null); ```php $builder->listCheck(array $list, $text = null, $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` 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