S
S
Sergey Beloventsev2017-07-04 16:21:11
Yii
Sergey Beloventsev, 2017-07-04 16:21:11

How to disable data-toggle on nav widget?

Actually there is a need to create such a menu

<li class="dropdown">
     <a class="dropdown-toggleOne col-md-24 col-sm-16 col-xs-16 " href="Parrent">Parrent</a>
     <ul class="dropdown-menu">
           <li>
                 <a data-test="1" href="Child1">Child1</a>
           </li>
           <li>
                 <a data-test="2" href="Child2">Child2</a>
          </li>
      </ul> 
</li>

that is, exclude the caret and data-toggle='dropdown' on the element
<a class="dropdown-toggleOne col-md-24 col-sm-16 col-xs-16 " href="Parrent">Parrent</a>

This can be done somehow in the Nav widget

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-07-04
@Sergalas

to lay out without a carriage. What is the problem? Are you worried about not using the widget? So they (bootstrap widgets) will generally be thrown out in the next major version of yii, since it is more often, easier and shorter to write html than to set up a widget.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question