示例#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());
     }
 }
示例#2
0
 public function datebox($options = [])
 {
     $options = array_merge($this->inputOptions, $options);
     $this->adjustLabelFor($options);
     $this->parts['{input}'] = Easyui::activeDatebox($this->model, $this->attribute, $options);
     return $this;
 }