|
|
@ -39,8 +39,8 @@ class Dropdown extends Widget |
|
|
|
* or an array representing a single 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. |
|
|
|
* - encode: boolean, optional, whether to HTML-ecnode item label. |
|
|
|
* - encode: boolean, optional, whether to HTML-encode item label. |
|
|
|
* - url: string|array, optional, the url of the item link. This will be processed by [[Url::to()]]. |
|
|
|
* - url: string|array, optional, the URL of the item link. This will be processed by [[\yii\helpers\Url::to()]]. |
|
|
|
* If not set, the item will be treated as a menu header when the item has no sub-menu. |
|
|
|
* If not set, the item will be treated as a menu header when the item has no sub-menu. |
|
|
|
* - visible: boolean, optional, whether this menu item is visible. Defaults to true. |
|
|
|
* - visible: boolean, optional, whether this menu item is visible. Defaults to true. |
|
|
|
* - linkOptions: array, optional, the HTML attributes of the item link. |
|
|
|
* - linkOptions: array, optional, the HTML attributes of the item link. |
|
|
|