From ec81ba0b51787039522cc79bd99c5112ea50582d 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 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 91026fd..24f85c6 100644 --- a/README.md +++ b/README.md @@ -181,12 +181,19 @@ $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); ``` +<<<<<<< HEAD +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. +======= +Where `$selected` is the key of the item from `$list` you want to preselect. +>>>>>>> d4e4912323483db710a182dd410e7b80760f9f3b + ![https://help.gnome.org/users/zenity/stable/list.html](https://help.gnome.org/users/zenity/stable/figures/zenity-list-screenshot.png) #### NotificationDialog