From b9f5a3140134e1057b10463f45dca612d3d6d5f8 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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