Class hscstudio\heart\widgets\Modal

Inheritancehscstudio\heart\widgets\Modal » yii\bootstrap\Widget
Available since version2.0

Modal renders a Modal TB

Place this widget in view
<?= \hscstudio\heart\widgets\Modal::widget(['modalSize'=>'']) ?>

Call this modal with link
<a href='link controller to content' class='modal-heart' title='title of modal'>Show Modal</a>

You can specify source of html data that show
<a href='link controller to content' class='modal-heart' title='title of modal' source='.main'>Show Modal</a>

See also http://almsaeedstudio.com/AdminLTE/pages/widgets.html.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$modalId array The HTML attributes for the widget container tag. hscstudio\heart\widgets\Modal
$modalSize hscstudio\heart\widgets\Modal
$registerAsset hscstudio\heart\widgets\Modal

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() Initializes the widget. hscstudio\heart\widgets\Modal
run() Renders the widget. hscstudio\heart\widgets\Modal

Property Details

$modalId public property
array $modalId 'modal-heart'

The HTML attributes for the widget container tag. The following special options are recognized:

  • tag: string, defaults to "div", the name of the container tag.

See also \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.

$modalSize public property
$modalSize ''
$registerAsset public property

Method Details

init() public method

Initializes the widget.

void init( )
run() public method

Renders the widget.

void run( )