PHP code example of kartik-v / yii2-popover-x
1. Go to this page and download the library: Download kartik-v/yii2-popover-x library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kartik-v / yii2-popover-x example snippets
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();