示例#1
0
 /**
  * Registers the needed assets
  */
 public function registerAssets()
 {
     $view = $this->getView();
     TypeaheadAsset::register($view);
     $this->setPluginOptions();
     $this->registerPlugin('typeahead');
 }
示例#2
0
 /**
  * Registers the needed assets
  */
 public function registerAssets()
 {
     $view = $this->getView();
     TypeaheadAsset::register($view);
     $this->registerPluginOptions('typeahead');
     $view->registerJs($this->_bloodhound);
     $view->registerJs('jQuery("#' . $this->options['id'] . '").typeahead(' . $this->_hashVar . ',' . $this->_dataset . ');');
     $this->registerPluginEvents($view);
 }