Commit b51c7e3b by Qiang Xue

Fixes #756: added doc to Dropdown.

parent b6e3dd29
...@@ -21,8 +21,9 @@ use yii\helpers\Html; ...@@ -21,8 +21,9 @@ use yii\helpers\Html;
class Dropdown extends Widget class Dropdown extends Widget
{ {
/** /**
* @var array list of menu items in the dropdown. Each array element represents a single * @var array list of menu items in the dropdown. Each array element can be either an HTML string,
* menu with the following structure: * or an array representing a single menu with the following structure:
*
* - label: string, required, the label of the item link * - label: string, required, the label of the item link
* - url: string, optional, the url of the item link. Defaults to "#". * - url: string, optional, the url of the item link. Defaults to "#".
* - linkOptions: array, optional, the HTML attributes of the item link. * - linkOptions: array, optional, the HTML attributes of the item link.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment