Commit 582ff594 by Alexander Makarov

Added note about theme asset bundle to bootstrap widgets guide

parent 6c1ef346
...@@ -21,40 +21,28 @@ convenient way to include bootstrap assets in your pages with a single line adde ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment