Class TbApi
Bootstrap API component.
- CApplicationComponent
- TbApi
Package: bootstrap\components
Copyright: Copyright © Christoffer Niska 2013-
License: New BSD License
Author: Christoffer Niska <christoffer.niska@gmail.com>
Located at components/TbApi.php
Copyright: Copyright © Christoffer Niska 2013-
License: New BSD License
Author: Christoffer Niska <christoffer.niska@gmail.com>
Located at components/TbApi.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
registerCoreScripts( string $url = null, integer $position = CClientScript::POS_END )
Registers jQuery and Bootstrap JavaScript. |
public
|
|
public
|
|
public
|
|
public
|
#
registerPopover( string $selector = 'body', array $options = array() )
Registers the Bootstrap Popover plugin. |
public
|
#
registerTooltip( string $selector = 'body', array $options = array() )
Registers the Bootstrap Tooltip plugin. |
public
|
#
registerPlugin( string $name, string $selector, array $options = array(), integer $position = CClientScript::POS_END )
Registers a specific Bootstrap plugin using the given selector and options. |
public
|
#
registerEvents( string $selector, string[] $events, integer $position = CClientScript::POS_END )
Registers events using the given selector. |
protected
string
|
string |
PLUGIN_AFFIX
|
'affix' |
|
string |
PLUGIN_ALERT
|
'alert' |
|
string |
PLUGIN_BUTTON
|
'button' |
|
string |
PLUGIN_CAROUSEL
|
'carousel' |
|
string |
PLUGIN_COLLAPSE
|
'collapse' |
|
string |
PLUGIN_DROPDOWN
|
'dropdown' |
|
string |
PLUGIN_MODAL
|
'modal' |
|
string |
PLUGIN_POPOVER
|
'popover' |
|
string |
PLUGIN_SCROLLSPY
|
'scrollspy' |
|
string |
PLUGIN_TAB
|
'tab' |
|
string |
PLUGIN_TOOLTIP
|
'tooltip' |
|
string |
PLUGIN_TRANSITION
|
'transition' |
|
string |
PLUGIN_TYPEAHEAD
|
'typeahead' |
public static
integer
|
$counter | 0 |
#
static counter, used for determining script identifiers |
public
boolean
|
$forceCopyAssets | false |
#
whether we should copy the asset file or directory even if it is already published before. |