Class yii\bootstrap4\Widget

Inheritanceyii\bootstrap4\Widget » yii\base\Widget
Uses Traitsyii\bootstrap4\BootstrapWidgetTrait
Subclassesyii\bootstrap4\Accordion, yii\bootstrap4\Alert, yii\bootstrap4\Breadcrumbs, yii\bootstrap4\Button, yii\bootstrap4\ButtonDropdown, yii\bootstrap4\ButtonGroup, yii\bootstrap4\ButtonToolbar, yii\bootstrap4\Carousel, yii\bootstrap4\Dropdown, yii\bootstrap4\LinkPager, yii\bootstrap4\Modal, yii\bootstrap4\Nav, yii\bootstrap4\NavBar, yii\bootstrap4\Progress, yii\bootstrap4\Tabs

\yii\bootstrap4\Widget is the base class for all bootstrap widgets.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$clientEvents array The event handlers for the underlying Bootstrap JS plugin. yii\bootstrap4\BootstrapWidgetTrait
$clientOptions array The options for the underlying Bootstrap JS plugin. yii\bootstrap4\BootstrapWidgetTrait
$options array The HTML attributes for the widget container tag. yii\bootstrap4\Widget

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getView() yii\bootstrap4\BootstrapWidgetTrait
init() Initializes the widget. yii\bootstrap4\BootstrapWidgetTrait

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
registerClientEvents() Registers JS event handlers that are listed in $clientEvents. yii\bootstrap4\BootstrapWidgetTrait
registerPlugin() Registers a specific Bootstrap plugin and the related events yii\bootstrap4\BootstrapWidgetTrait

Property Details

$options public property

The HTML attributes for the widget container tag.

See also \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.

public array $options = []