Skip to content

Commit

Permalink
Fix documentation for $selected argument for radio and checkbox dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
bertvandepoel committed Jul 26, 2016
1 parent 9c25631 commit ec81ba0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec81ba0

Please sign in to comment.