Class TbModal
Bootstrap modal widget.
- CWidget
- TbModal
Copyright: Copyright © Christoffer Niska 2013-
License: New BSD License
Author: Antonio Ramirez <ramirez.cobos@gmail.com>
Located at widgets/TbModal.php
public
|
|
public
|
|
public
|
#
initOptions( )
Initialize plugin options. Important: The display of the button overrides the initialization of the modal bootstrap widget. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
public
array
|
$htmlOptions | array() |
#
the HTML options for the view container tag. |
public
array
|
$buttonOptions | array() |
#
The additional HTML attributes of the button that will show the modal. If empty
array, only the markup of the modal will be rendered on the page, so users can
easily call the modal manually with their own scripts. The following special
attributes are available:
For available options of the button trigger, see http://twitter.github.com/bootstrap/javascript.html#modals. |
public
boolean
|
$fade | true |
#
indicates whether the modal should use transitions. Defaults to 'true'. |
public
boolean
|
$keyboard | true |
#
$keyboard, closes the modal when escape key is pressed. |
public
boolean
|
$show | false |
#
$show, shows the modal when initialized. |
public
mixed
|
$backdrop | true |
#
includes a modal-backdrop element. Alternatively, specify |
public
mixed
|
$remote |
|
#
the remote url. If a remote url is provided, content will be loaded via jQuery's load method and injected into the .modal-body of the modal. |
public
string
|
$onShow |
|
#
a javascript function that will be invoked immediately when the
|
public
string
|
$onShown |
|
#
a javascript function that will be invoked when the modal has been made
visible to the user |
public
string
|
$onHide |
|
#
a javascript function that will be invoked immediately when the hide instance method has been called. |
public
string
|
$onHidden |
|
#
a javascript function that will be invoked when the modal has finished being
hidden from the user |
protected
string[]
|
$events | array() |
#
the Javascript event handlers. |
protected
array
|
$options | array() |
#
$options the plugin options. |
public
string
|
$closeText |
|
|
public
string
|
$header |
|
#
header content |
public
string
|
$content |
|
#
body of modal |
public
string
|
$footer |
|
#
footer content |