示例#1
0
 /**
  * Registers a specific jQuery UI widget asset bundle, initializes it with client options and registers related events
  * @param string $plugin the name of the jQuery UI widget
  * @param string $id the ID of the widget. If null, it will use the `id` value of [[options]].
  */
 protected function registerWidget($plugin)
 {
     $clientOptions = $this->getClientOptions();
     if ($clientOptions !== false) {
         Easyui::registerPlugin($this->options, $plugin, $clientOptions, $this->getView());
     }
 }