Property | Type | Description | |
---|---|---|---|
$assetsCss | array | of style library names to be registered when initializing the library. | |
$assetsJs | array | of javascript library names to be registered when initializing the library. | |
$htmlOptions | the HTML options for the view container tag. |
Property | Type | Description | |
---|---|---|---|
$_api | TbApi | ||
$_assetsUrl | holds the published assets |
Method | Description | |
---|---|---|
getApi ( ) : TbApi | Returns the core library (yiistrap) component | |
getAssetsUrl ( ) : string | Returns the assets URL. | |
init ( ) | Widget's initialization | |
registerAssetCss ( string $cssFile, string $media = '' ) | Registers a specific css in the asset's css folder | |
registerAssetJs ( string $jsFile, integer $position = CClientScript::POS_END ) | Register a specific js file in the asset's js folder |
public getApi ( ) : TbApi | ||
return | TbApi |
public getAssetsUrl ( ) : string | ||
return | string |
public registerAssetCss ( string $cssFile, string $media = '' ) | ||
$cssFile | string | the css file name to register |
$media | string | the media that the CSS file should be applied to. If empty, it means all media types. |
public registerAssetJs ( string $jsFile, integer $position = CClientScript::POS_END ) | ||
$jsFile | string | |
$position | integer | the position of the JavaScript code. |
public array $assetsCss | ||
return | array |
public array $assetsJs | ||
return | array |