Browse Source

Added note about theme asset bundle to bootstrap widgets guide

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
582ff594aa
  1. 44
      docs/guide/bootstrap-widgets.md

44
docs/guide/bootstrap-widgets.md

@ -21,40 +21,28 @@ convenient way to include bootstrap assets in your pages with a single line adde
public $depends = array( public $depends = array(
'yii\web\YiiAsset', 'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset', // this line 'yii\bootstrap\BootstrapAsset', // this line
// 'yii\bootstrap\BootstrapThemeAsset' // uncomment to apply bootstrap 2 style to bootstrap 3
); );
``` ```
Using bootstrap through Yii asset manager allows you to combine and minimize its resources with your own ones when Using bootstrap through Yii asset manager allows you to minimize its resources and combine with your own resources when
needed. needed.
Yii widgets Yii widgets
----------- -----------
Most complex bootstrap components are wrapped into Yii widgets to allow more robust syntax and integrate with Most complex bootstrap components are wrapped into Yii widgets to allow more robust syntax and integrate with
framework features. All widgets belong to `\yii\bootstrap` namespace. Let's review these. framework features. All widgets belong to `\yii\bootstrap` namespace:
### Alert - Alert
- Button
### Button - ButtonDropdown
- ButtonGroup
### ButtonDropdown - Carousel
- Collapse
### ButtonGroup - Dropdown
- Modal
### Carousel - Nav
- NavBar
### Collapse - Progress
- Tabs
### Dropdown
### Modal
### Nav
### NavBar
### Progress
### Tabs
### Typeahead

Loading…
Cancel
Save