1 | <?php |
||
20 | class TbDropdown extends TbBaseMenu { |
||
21 | /** |
||
22 | *### .init() |
||
23 | * |
||
24 | * Initializes the widget. |
||
25 | */ |
||
26 | public function init() { |
||
36 | |||
37 | /** |
||
38 | *### .renderMenuItem() |
||
39 | * |
||
40 | * Renders the content of a menu item. |
||
41 | * Note that the container and the sub-menus are not rendered here. |
||
42 | * |
||
43 | * @param array $item the menu item to be rendered. Please see {@link items} on what data might be in the item. |
||
44 | * |
||
45 | * @return string the rendered item |
||
46 | */ |
||
47 | protected function renderMenuItem($item) { |
||
76 | |||
77 | /** |
||
78 | *### .getDividerCssClass() |
||
79 | * |
||
80 | * Returns the divider CSS class. |
||
81 | * @return string the class name |
||
82 | */ |
||
83 | public function getDividerCssClass() |
||
87 | |||
88 | /** |
||
89 | *### .getDropdownCssClass() |
||
90 | * |
||
91 | * Returns the dropdown css class. |
||
92 | * @return string the class name |
||
93 | */ |
||
94 | public function getDropdownCssClass() |
||
98 | |||
99 | /** |
||
100 | *### .isVertical() |
||
101 | * |
||
102 | * Returns whether this is a vertical menu. |
||
103 | * @return boolean the result |
||
104 | */ |
||
105 | public function isVertical() |
||
109 | } |
||
110 |