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.
NOTE: Refer the CHANGE LOG for details on changes to various releases.
The plugin offers these enhanced features:
primary
,
info
, success
, danger
, and warning
can be used.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 examples on usage of the extension.
The preferred way to install this extension is through composer.
Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the
minimum-stability
settings for your application's composer.json.
Either run
$ php composer.phar require kartik-v/yii2-popover-x "dev-master"
or add
"kartik-v/yii2-popover-x": "dev-master"
to the require
section of your composer.json
file.
use kartik\popover\PopoverX;
PopoverX::begin([
'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.' .
'</p>';
PopoverX::end();
yii2-popover-x is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details.
yii2-popover-x
Date: 02-Apr-2020
pluginOptions
correctly when only toggleButton
is configured.src
directory.header
, closeButton
, and toggleButton
rendering validation.Date: 08-Sep-2017
Date: 12-Jan-2016
init
and run
of PopoverX widget.Date: 12-Jan-2016
Date: 01-Jul-2015
Date: 25-Nov-2014
Date: 10-Nov-2014
Date: 2014-10-24
content
property to render the widget directly without begin and end methods.arrowOptions
property to configure HTML attributes for arrow.Date: 2014-07-15
Comments