Changes
Title
unchanged
Activating Bootstrap 3 Tooltips & Popover for your Yii Site.
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
yii, yii2, bootstrap, bootstrap3, tooltip, popover
Content
changed
[...]
**Step 1:** Initialize the Bootstrap Tooltip & Popover plugins in your view layout file `@web\views\layouts\main.php`. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).
```php
$js = <<< 'SCRIPT
'
/* To initialize BS3 tooltips set this below */
$(function () {[...]
'title'=>'This is a test tooltip',
'data-toggle'=>'tooltip',
'style'=>'text-decoration: underline:; cursor:pointer;'
]);
```
### Popovers[...]