Browse Source

Fixes #7339: Added example to Dropdown phpdoc

tags/2.0.3
Valery Viktorovsky 10 years ago committed by Alexander Makarov
parent
commit
af70660f3c
  1. 15
      Dropdown.php

15
Dropdown.php

@ -15,6 +15,21 @@ use yii\helpers\Url;
/** /**
* Dropdown renders a Bootstrap dropdown menu component. * Dropdown renders a Bootstrap dropdown menu component.
* *
* For example,
*
* ```php
* <div class="dropdown">
* <a href="#" data-toggle="dropdown" class="dropdown-toggle">Label <b class="caret"></b></a>
* <?php
* echo Dropdown::widget([
* 'items' => [
* ['label' => 'DropdownA', 'url' => '/'],
* ['label' => 'DropdownB', 'url' => '#'],
* ],
* ]);
* ?>
* </div>
* ```
* @see http://getbootstrap.com/javascript/#dropdowns * @see http://getbootstrap.com/javascript/#dropdowns
* @author Antonio Ramirez <amigo.cobos@gmail.com> * @author Antonio Ramirez <amigo.cobos@gmail.com>
* @since 2.0 * @since 2.0

Loading…
Cancel
Save