Browse Source

Some doc code cleanup [skip ci]

tags/2.0.0-beta
Luciano Baraglia 12 years ago
parent
commit
8760407cc9
  1. 2
      framework/yii/bootstrap/Carousel.php
  2. 6
      framework/yii/bootstrap/Collapse.php
  3. 2
      framework/yii/bootstrap/Nav.php
  4. 2
      framework/yii/bootstrap/NavBar.php
  5. 2
      framework/yii/bootstrap/Progress.php
  6. 2
      framework/yii/bootstrap/Tabs.php

2
framework/yii/bootstrap/Carousel.php

@ -55,7 +55,7 @@ class Carousel extends Widget
* // required, slide content (HTML), such as an image tag * // required, slide content (HTML), such as an image tag
* 'content' => '<img src="http://twitter.github.io/bootstrap/assets/img/bootstrap-mdo-sfmoma-01.jpg"/>', * 'content' => '<img src="http://twitter.github.io/bootstrap/assets/img/bootstrap-mdo-sfmoma-01.jpg"/>',
* // optional, the caption (HTML) of the slide * // optional, the caption (HTML) of the slide
* 'caption'=> '<h4>This is title</h4><p>This is the caption text</p>', * 'caption' => '<h4>This is title</h4><p>This is the caption text</p>',
* // optional the HTML attributes of the slide container * // optional the HTML attributes of the slide container
* 'options' => array(), * 'options' => array(),
* ) * )

6
framework/yii/bootstrap/Collapse.php

@ -23,7 +23,7 @@ use yii\helpers\Html;
* 'Collapsible Group Item #1' => array( * 'Collapsible Group Item #1' => array(
* 'content' => 'Anim pariatur cliche...', * 'content' => 'Anim pariatur cliche...',
* // open its content by default * // open its content by default
* 'contentOptions' => array('class'=>'in') * 'contentOptions' => array('class' => 'in')
* ), * ),
* // another group item * // another group item
* 'Collapsible Group Item #2' => array( * 'Collapsible Group Item #2' => array(
@ -51,9 +51,9 @@ class Collapse extends Widget
* // required, the content (HTML) of the group * // required, the content (HTML) of the group
* 'content' => 'Anim pariatur cliche...', * 'content' => 'Anim pariatur cliche...',
* // optional the HTML attributes of the content group * // optional the HTML attributes of the content group
* 'contentOptions'=> array(), * 'contentOptions' => array(),
* // optional the HTML attributes of the group * // optional the HTML attributes of the group
* 'options'=> array(), * 'options' => array(),
* ) * )
* ``` * ```
*/ */

2
framework/yii/bootstrap/Nav.php

@ -136,7 +136,7 @@ class Nav extends Widget
if (is_array($items)) { if (is_array($items)) {
$items = Dropdown::widget(array( $items = Dropdown::widget(array(
'items' => $items, 'items' => $items,
'encodeLabels'=>$this->encodeLabels, 'encodeLabels' => $this->encodeLabels,
'clientOptions' => false, 'clientOptions' => false,
)); ));
} }

2
framework/yii/bootstrap/NavBar.php

@ -87,7 +87,7 @@ class NavBar extends Widget
* // optional, the menu item class type of the widget to render. Defaults to "Nav" widget. * // optional, the menu item class type of the widget to render. Defaults to "Nav" widget.
* 'class' => 'Menu item class type', * 'class' => 'Menu item class type',
* // required, the configuration options of the widget. * // required, the configuration options of the widget.
* 'options'=> array(...), * 'options' => array(...),
* ), * ),
* // optionally, you can pass a string * // optionally, you can pass a string
* '<form class="navbar-search pull-left" action="">' . * '<form class="navbar-search pull-left" action="">' .

2
framework/yii/bootstrap/Progress.php

@ -47,7 +47,7 @@ use yii\helpers\Html;
* echo Progress::widget(array( * echo Progress::widget(array(
* 'bars' => array( * 'bars' => array(
* array('percent' => 30, 'options' => array('class' => 'bar-danger')), * array('percent' => 30, 'options' => array('class' => 'bar-danger')),
* array('percent' => 30, 'label'=>'test', 'options' => array('class' => 'bar-success')), * array('percent' => 30, 'label' => 'test', 'options' => array('class' => 'bar-success')),
* array('percent' => 35, 'options' => array('class' => 'bar-warning')) * array('percent' => 35, 'options' => array('class' => 'bar-warning'))
* ) * )
* )); * ));

2
framework/yii/bootstrap/Tabs.php

@ -28,7 +28,7 @@ use yii\helpers\Html;
* 'label' => 'Two', * 'label' => 'Two',
* 'content' => 'Anim pariatur cliche...', * 'content' => 'Anim pariatur cliche...',
* 'headerOptions' => array(...), * 'headerOptions' => array(...),
* 'options' => array('id'=>'myveryownID'), * 'options' => array('id' => 'myveryownID'),
* ), * ),
* array( * array(
* 'label' => 'Dropdown', * 'label' => 'Dropdown',

Loading…
Cancel
Save