Class ModalHelper
Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.
<?php echo $this->Cakestrap->Modal()->header('Alert') ->options(['show' => true]) ->body("This modal needs your attention, but it's not super important.") ->footer('I am footer.') ->set(); ?>
- Cake\View\Helper
- Cakestrap\View\Helper\Basic
- Cakestrap\View\Helper\ModalHelper
Namespace: Cakestrap\View\Helper
Package: Cakestrap\View\Helper
Link: http://getbootstrap.com/javascript/#modals
Located at ModalHelper.php
Package: Cakestrap\View\Helper
Link: http://getbootstrap.com/javascript/#modals
Located at ModalHelper.php
public
object
|
|
public
string
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
string
|
__call(),
_reset(),
assignTemplate(),
body()
|
public
|
|
public
|
|
public
|
protected
string
|
$_container
Contains parent html tag |
#
[]
|
protected
array
|
$_contents
An array of valid content for this helper. |
#
[]
|
protected
array
|
$_options
Default modal options. These options are merged with the user-provided options. |
#
[
'show' => false,
'width' => 'modal-md',
'id' => '',
'closable'=> false,
'class' => ''
]
|
protected
array
|
$_clone
A variable that cloned the default $_options. |
$_stringTemplate,
$_template
|