Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2bootstrap
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
yii2bootstrap
Commits
14c09f02
Commit
14c09f02
authored
Dec 02, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6335
parent
c5d0f251
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Nav.php
Nav.php
+3
-2
No files found.
Nav.php
View file @
14c09f02
...
@@ -171,7 +171,7 @@ class Nav extends Widget
...
@@ -171,7 +171,7 @@ class Nav extends Widget
if
(
$this
->
activateItems
)
{
if
(
$this
->
activateItems
)
{
$items
=
$this
->
isChildActive
(
$items
,
$active
);
$items
=
$this
->
isChildActive
(
$items
,
$active
);
}
}
$items
=
$this
->
renderDropdown
(
$items
);
$items
=
$this
->
renderDropdown
(
$items
,
$item
);
}
}
}
}
...
@@ -186,10 +186,11 @@ class Nav extends Widget
...
@@ -186,10 +186,11 @@ class Nav extends Widget
* Renders the given items as a dropdown.
* Renders the given items as a dropdown.
* This method is called to create sub-menus.
* This method is called to create sub-menus.
* @param array $items the given items. Please refer to [[Dropdown::items]] for the array structure.
* @param array $items the given items. Please refer to [[Dropdown::items]] for the array structure.
* @param array $parentItem the parent item information. Please refer to [[items]] for the structure of this array.
* @return string the rendering result.
* @return string the rendering result.
* @since 2.0.1
* @since 2.0.1
*/
*/
protected
function
renderDropdown
(
$items
)
protected
function
renderDropdown
(
$items
,
$parentItem
)
{
{
return
Dropdown
::
widget
([
return
Dropdown
::
widget
([
'items'
=>
$items
,
'items'
=>
$items
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment