PHP code example of professionalweb / bootstro-widget-yii2

1. Go to this page and download the library: Download professionalweb/bootstro-widget-yii2 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/ */

    

professionalweb / bootstro-widget-yii2 example snippets


use professionalweb\BootstroWidget\BootstroWidget;

<?=
BootstroWidget::widget([
    'startSelector' => '.bootstro',
    'pluginOptions' => [
        'nextButtonText' => 'Next',
        'finishButtonText' => 'Back',
        'finishButtonText' => 'Complete',
        'onComplete' => new JsExpression('function(){setTourIsCompleted();}'),
        'onExit' => new JsExpression('function(){setTourIsCompleted();}')
    ]
]);