/** * Registers the needed assets */ public function registerAssets() { $view = $this->getView(); TypeaheadAsset::register($view); $this->setPluginOptions(); $this->registerPlugin('typeahead'); }
/** * 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); }