PHP Class Grido\Components\Filters\Text

Author: Petr Bugyík
Inheritance: extends Filter
Show file Open project: o5/grido

Protected Properties

Property Type Description
$condition string
$formatValue string
$suggestion boolean
$suggestionCallback callback
$suggestionColumn mixed
$suggestionLimit integer

Public Methods

Method Description
getSuggestionCallback ( ) : callback
getSuggestionColumn ( ) : string
getSuggestionLimit ( ) : integer
handleSuggest ( string $query )
setSuggestion ( mixed $column = NULL ) : Text Allows suggestion.
setSuggestionCallback ( callback $callback ) : Text Sets custom data callback.
setSuggestionLimit ( integer $limit ) : Text Sets a limit for suggestion select.

Protected Methods

Method Description
getFormControl ( ) : TextInput

Method Details

getFormControl() protected method

protected getFormControl ( ) : TextInput
return Nette\Forms\Controls\TextInput

getSuggestionCallback() public method

getSuggestionColumn() public method

public getSuggestionColumn ( ) : string
return string

getSuggestionLimit() public method

public getSuggestionLimit ( ) : integer
return integer

handleSuggest() public method

public handleSuggest ( string $query )
$query string - value from input

setSuggestion() public method

Allows suggestion.
public setSuggestion ( mixed $column = NULL ) : Text
$column mixed
return Text

setSuggestionCallback() public method

Sets custom data callback.
public setSuggestionCallback ( callback $callback ) : Text
$callback callback
return Text

setSuggestionLimit() public method

Sets a limit for suggestion select.
public setSuggestionLimit ( integer $limit ) : Text
$limit integer
return Text

Property Details

$condition protected property

protected string $condition
return string

$formatValue protected property

protected string $formatValue
return string

$suggestion protected property

protected bool $suggestion
return boolean

$suggestionCallback protected property

protected callback $suggestionCallback
return callback

$suggestionColumn protected property

protected mixed $suggestionColumn
return mixed

$suggestionLimit protected property

protected int $suggestionLimit
return integer