public function setSuggestion($column = NULL)
    {
        $this->suggestion = TRUE;
        $this->suggestionColumn = $column;

        $prototype = $this->getControl()->getControlPrototype();
        $prototype->attrs['autocomplete'] = 'off';
        $prototype->class[] = 'suggest';

        $this->grid->onRender[] = function() use ($prototype) {
            $replacement = '-query-';
            $prototype->setAttribute('data-grido-suggest-replacement', $replacement);
            $prototype->setAttribute('data-grido-suggest-limit', $this->suggestionLimit);
            $prototype->setAttribute('data-grido-suggest-handler', $this->link('suggest!', [
                'query' => $replacement
            ]));
        };

        return $this;
    }
public function setSuggestion($column = NULL)
    {
        $this->suggestion = TRUE;
        $this->suggestionColumn = $column;

        $prototype = $this->getControl()->getControlPrototype();
        $prototype->attrs['autocomplete'] = 'off';
        $prototype->class[] = 'suggest';

        $this->grid->onRender[] = function() use ($prototype) {
            $replacement = '-query-';
            $prototype->setAttribute('data-grido-suggest-replacement', $replacement);
            $prototype->setAttribute('data-grido-suggest-limit', $this->suggestionLimit);
            $prototype->setAttribute('data-grido-suggest-handler', $this->link('suggest!', [
                'query' => $replacement
            ]));
        };

        return $this;
    }
public function setSuggestion ( $ column = NULL ) { $ this -> suggestion = TRUE ; $ this -> suggestionColumn = $ column ; $ prototype = $ this -> getControl ( ) -> getControlPrototype ( ) ; $ prototype -> attrs [ 'autocomplete' ] = 'off' ; $ prototype -> class [ ] = 'suggest' ; $ this -> grid -> onRender [ ] = function ( ) use ( $ prototype ) { $ replacement = '-query-' ; $ prototype -> setAttribute ( 'data-grido-suggest-replacement' , $ replacement ) ; $ prototype -> setAttribute ( 'data-grido-suggest-limit' , $ this -> suggestionLimit ) ; $ prototype -> setAttribute ( 'data-grido-suggest-handler' , $ this -> link ( 'suggest!' , [ 'query' => $ replacement ] ) ) ; } ; return $ this ; }
Allows suggestion.
@param mixed $column
@return Text
Allows suggestion .