Class hscstudio\heart\widgets\Modal
Inheritance | hscstudio\heart\widgets\Modal » yii\bootstrap\Widget |
---|---|
Available since version | 2.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
Property | Type | Description | Defined 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
Method | Description | Defined By |
---|---|---|
init() | Initializes the widget. | hscstudio\heart\widgets\Modal |
run() | Renders the widget. | hscstudio\heart\widgets\Modal |
Property Details
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.