Skip to content
This repository

Modal 

thelfensdrfer edited this page · 1 revision

Modal demo

<?php $this->widget('EBootstrapModalTrigger', array(
    'element' => 'a',
    'value' => 'Show the Modal',
    'modal' => 'my-modal', //Same as EBootstrapModal->id
    'htmlOptions' => array(
        'class' => 'btn',
    ),
)); ?>

<?php $this->beginWidget('EBootstrapModal', array(
    'id' => 'my-modal',
    'header' => 'My custom Modal', //Title
    'footer' => array( //Array with actions, i.e. a list of buttons, can be any html
        EBootstrap::ibutton('Button #1', '#', 'primary'),
        EBootstrap::ibutton('Button #2', '#'),
    ),
    'backdrop' => true, //Darken background
    'keyboard' => true, //Close with ESC
    'show' => false, //Show on page load
    'close' => "&times;" //Close value
)); ?>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam sit amet elit vitae arcu interdum ullamcorper. Nullam ultrices, nisi quis scelerisque convallis, augue neque tempor enim, et mattis justo nibh eu elit. Quisque ultrices gravida pede. Mauris accumsan vulputate tellus. Phasellus condimentum bibendum dolor. Mauris sed ipsum. Phasellus in diam. Nam sapien ligula, consectetuer id, hendrerit in, cursus sed, leo. Nam tincidunt rhoncus urna. Aliquam id massa ut nibh bibendum imperdiet. Curabitur neque mauris, porta vel, lacinia quis, placerat ultrices, orci.</p>
<?php $this->endWidget(); ?>
Something went wrong with that request. Please try again.