protected function attached($component)
{
parent::attached($component);
$this->componentControlAttached($component);
if ($component instanceof Nette\Application\IPresenter) {
$this->control->{'data-typeahead-url'} = $this->link('autocomplete!', ['q' => '__QUERY_PLACEHOLDER__']);
}
}