Nextras\Forms\Controls\Typeahead::handleAutocomplete PHP Method

handleAutocomplete() public method

public handleAutocomplete ( $q )
    public function handleAutocomplete($q)
    {
        if (!$this->callback) {
            throw new Nette\InvalidStateException('Undefined Typehad callback.');
        }
        $this->getPresenter()->sendJson(Nette\Utils\Callback::invokeArgs($this->callback, [$q]));
    }