yii2-popover-x An enhanced bootstrap popover for Yii 2.0 that combines both the popover and modal features.

  1. Features
  2. Demo
  3. Installation
  4. Usage
  5. Report
  6. License
  7. Resources

An extended popover widget for Yii Framework 2 based on the bootstrap-popover-x jQuery plugin by Krajee. This plugin is an extended popover JQuery plugin which combines both the popover and bootstrap modal features and includes various new styling enhancements. This widget can be setup just like the builtin yii\bootstrap\Modal, with some additional enhancements.


The plugin offers these enhanced features:

  • The extended popover can be rendered just like a bootstrap modal dialog with the bootstrap popover styling. Since the plugin extends the bootstrap modal, all features of the bootstrap modal and its methods are also available.
  • Adds a popover footer along with header. Configuration of the HTML content for the popover is much easier, just like a bootstrap modal.
  • Specially styles and spaces out bootstrap buttons added in popover footer.
  • Add a close icon/button to a popover window.
  • Configure various prebuilt styles/templates. In addition to a default (grey), the bootstrap 3 contextual color styles of primary, info, success, danger, and warning can be used.
  • Control popover placements top, bottom, left, or right of the target element.
  • Specially style the popover arrow to be consistent for each contextual color and popover placement.
  • Prebuilt CSS styles for controlling appearance and sizes of the popovers.

Note: This extension depends on the kartik-v/yii2-widgets extension which in turn depends on the yiisoft/yii2-bootstrap extension. Check the composer.json for this extension's requirements and dependencies. Note: Yii 2 framework is still in active development, and until a fully stable Yii2 release, your core yii2-bootstrap packages (and its dependencies) may be updated when you install or update this extension. You may need to lock your composer package versions for your specific app, and test for extension break if you do not wish to auto update dependencies.


You can see detailed documentation and demonstration on usage of the extension.


The preferred way to install this extension is through composer.

Note: You must set the minimum-stability to dev in the composer.json file in your application root folder before installation of this extension.

Either run:

$ php composer.phar require kartik-v/yii2-popover-x "*"

or add:

"kartik-v/yii2-popover-x": "*"

to the require section of your composer.json file.


use kartik\popover\PopoverX;

    'header' => 'Hello world',
    'footer' => Html::button('View', ['class'=>'btn btn-primary']),
    'toggleButton' => ['class'=>'btn btn-primary'],

echo '<p class="text-justify">' .
    'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. '. 
    'Aenean commodo ligula eget dolor.' . 




yii2-popover-x is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.


0 0
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: Kartik V
Created on: Jul 16, 2014
Last updated: 9 years ago

Related Extensions