PHP Трейт yii\bootstrap\BootstrapWidgetTrait

Note: class, which uses this trait must declare public field named options with the array default value: php class MyWidget extends \yii\base\Widget { use BootstrapWidgetTrait; public $options = []; } This field is not present in the trait in order to avoid possible PHP Fatal error on definition conflict.
С версии: 2.0.6
Автор: Antonio Ramirez ([email protected])
Автор: Qiang Xue ([email protected])
Автор: Paul Klimov ([email protected])
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$clientEvents the event handlers for the underlying Bootstrap JS plugin. Please refer to the corresponding Bootstrap plugin Web page for possible events. For example, this page shows how to use the "Modal" plugin and the supported events (e.g. "shown").
$clientOptions the options for the underlying Bootstrap JS plugin. Please refer to the corresponding Bootstrap plugin Web page for possible options. For example, this page shows how to use the "Modal" plugin and the supported options (e.g. "remote").

Открытые методы

Метод Описание
getView ( ) : View
init ( ) Initializes the widget.

Защищенные методы

Метод Описание
registerClientEvents ( ) Registers JS event handlers that are listed in [[clientEvents]].
registerPlugin ( string $name ) Registers a specific Bootstrap plugin and the related events

Описание методов

getView() абстрактный публичный метод

См. также: yii\base\Widget::getView()
abstract public getView ( ) : View
Результат yii\web\View the view object that can be used to render views or view files.

init() публичный метод

This method will register the bootstrap asset bundle. If you override this method, make sure you call the parent implementation first.
public init ( )

registerClientEvents() защищенный метод

Registers JS event handlers that are listed in [[clientEvents]].
С версии: 2.0.2
protected registerClientEvents ( )

registerPlugin() защищенный метод

Registers a specific Bootstrap plugin and the related events
protected registerPlugin ( string $name )
$name string the name of the Bootstrap plugin

Описание свойств

$clientEvents публичное свойство

the event handlers for the underlying Bootstrap JS plugin. Please refer to the corresponding Bootstrap plugin Web page for possible events. For example, this page shows how to use the "Modal" plugin and the supported events (e.g. "shown").
public $clientEvents

$clientOptions публичное свойство

the options for the underlying Bootstrap JS plugin. Please refer to the corresponding Bootstrap plugin Web page for possible options. For example, this page shows how to use the "Modal" plugin and the supported options (e.g. "remote").
public $clientOptions