diff --git a/framework/yii/helpers/base/Html.php b/framework/yii/helpers/base/Html.php index 9abf537..f5a4076 100644 --- a/framework/yii/helpers/base/Html.php +++ b/framework/yii/helpers/base/Html.php @@ -849,7 +849,8 @@ class Html * @param array $options options (name => config) for the radio button list. The following options are supported: * * - encode: boolean, whether to HTML-encode the items. Defaults to true. - * This option is ignored if the `item` option below is specified. + * This option is ignored if the `item` option is specified. + * - itemOptions: array, the HTML attributes for the `li` tags. This option is ignored if the `item` option is specified. * - item: callable, a callback that is used to generate each individual list item. * The signature of this callback must be: * @@ -870,13 +871,14 @@ class Html $tag = isset($options['tag']) ? $options['tag'] : 'ul'; $encode = !isset($options['encode']) || $options['encode']; $formatter = isset($options['item']) ? $options['item'] : null; - unset($options['tag'], $options['encode'], $options['item']); + $itemOptions = isset($options['itemOptions']) ? $options['itemOptions'] : array(); + unset($options['tag'], $options['encode'], $options['item'], $options['itemOptions']); $results = array(); foreach ($items as $index => $item) { if ($formatter !== null) { $results[] = call_user_func($formatter, $index, $item); } else { - $results[] = '