Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown Sub-menu /extensions/bootstrap/Nav #3679

Closed
duanhdan opened this issue Jun 3, 2014 · 2 comments
Closed

Dropdown Sub-menu /extensions/bootstrap/Nav #3679

duanhdan opened this issue Jun 3, 2014 · 2 comments
Labels
ext:bootstrap status:to be verified Needs to be reproduced and validated.

Comments

@duanhdan
Copy link

duanhdan commented Jun 3, 2014

How do we disbale dropdown menu by this code:

if ($items !== null) {
            $linkOptions['data-toggle'] = 'dropdown';
            Html::addCssClass($options, 'dropdown');
            Html::addCssClass($linkOptions, 'dropdown-toggle');
            $label .= ' ' . Html::tag('b', '', ['class' => 'caret']);
            if (is_array($items)) {
                if ($this->activateItems) {
                    $items = $this->isChildActive($items, $active);
                }
                $items = Dropdown::widget([
                    'items' => $items,
                    'encodeLabels' => $this->encodeLabels,
                    'clientOptions' => false,
                    'view' => $this->getView(),
                ]);
            }
        }

And set the class for ul tag?

@duanhdan
Copy link
Author

duanhdan commented Jun 3, 2014

Should have option that could set $items use Dropdown:widget or Nav:widget

@yii-bot
Copy link

yii-bot commented Jan 24, 2016

Issue moved to yiisoft/yii2-bootstrap#103

@yii-bot yii-bot closed this as completed Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ext:bootstrap status:to be verified Needs to be reproduced and validated.
Projects
None yet
Development

No branches or pull requests

5 participants