protected function doInit() { // das zuerst machen, da das html von f::inputSet bei html() schon gemorphed wird $widget = $this->getAutoCompleteWidget(); $widgetSelector = \Psc\JS\jQuery::getClassSelector($widget); $content = NULL; $content .= f::inputSet(f::input($widget, $this->getHint()))->setStyle('width', '90%')->html(); // gilt für alle // ist auch in ajax.dialog.add.speakers $content .= f::hint($this->getExplanation()); $this->html = f::group($this->getLabel(), $content, f::GROUP_COLLAPSIBLE)->setStyle('width', '80%'); $this->constructParams['widget'] = new \Psc\JS\Code($widgetSelector); $this->constructParams['delay'] = $this->getAutoCompleteDelay(); $this->constructParams['minLength'] = $this->getAutoCompleteMinLength(); $this->constructParams['url'] = $this->getAutoCompleteURL(); $this->constructParams['maxResults'] = $this->getMaxResults(); if ($this->getAutoCompleteBody() != NULL) { $this->constructParams['body'] = $this->getAutoCompleteBody(); } $this->constructParams['eventManager'] = new \Psc\JS\Code('main.getEventManager()'); $this->autoLoad(); }