yii\bootstrap\Dropdown::run PHP Method

run() public method

Renders the widget.
public run ( )
    public function run()
    {
        BootstrapPluginAsset::register($this->getView());
        $this->registerClientEvents();
        return $this->renderItems($this->items, $this->options);
    }

Usage Example

Example #1
0
 public function run()
 {
     // Only show this widget if we're not on the error page
     if ($this->_isError) {
         return '';
     } else {
         return parent::run();
     }
 }
All Usage Examples Of yii\bootstrap\Dropdown::run