Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Свойство | Тип | Описание | |
---|---|---|---|
$_api | TbApi | ||
$_assetsUrl | holds the published assets |
Метод | Описание | |
---|---|---|
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 | ||
Результат | TbApi |
public getAssetsUrl ( ) : string | ||
Результат | 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 | ||
Результат | array |
public array $assetsJs | ||
Результат | array |