mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-18 09:17:15 +08:00
add BootstrapPlugin::register() to Dropdown widget
This commit is contained in:

committed by
Qiang Xue

parent
263684f362
commit
40d367bb70
@ -46,7 +46,6 @@ class Dropdown extends Widget
|
|||||||
*/
|
*/
|
||||||
protected $_containerOptions = [];
|
protected $_containerOptions = [];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes the widget.
|
* Initializes the widget.
|
||||||
* If you override this method, make sure you call the parent implementation first.
|
* If you override this method, make sure you call the parent implementation first.
|
||||||
@ -64,6 +63,7 @@ class Dropdown extends Widget
|
|||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
echo $this->renderItems($this->items);
|
echo $this->renderItems($this->items);
|
||||||
|
BootstrapPluginAsset::register($this->getView());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user