FilterType
The FilterType represents a base filter used as a parent for every other filter type in the bundle.
Options
label
- type:
null,false,stringorSymfony\Component\Translation\TranslatableInterface - default:
null
Sets the label that will be used when rendering the filter.
When value is null, a sentence cased filter name is used as a label, for example:
| Filter name | Guessed label |
|---|---|
| name | Name |
| firstName | First name |
label_translation_parameters
- type:
array - default:
[]
Sets the parameters used when translating the label option.
translation_domain
- type:
falseorstring - default:
'KreyuDataTable'
Sets the translation domain used when translating the translatable filter values.
Setting the option to false disables translation for the filter.
query_path
- type:
nullorstring - default:
nullthe query path is guessed from the filter name
Sets the path used in the proxy query to perform the filtering on.
form_type
- type:
string - default:
'Symfony\Component\Form\Extension\Core\Type\TextType'
This is the form type used to render the filter value field.
form_options
- type:
array - default:
[]
This is the array that's passed to the form type specified in the form_type option.
operator_form_type
- type:
string - default:
'Kreyu\Bundle\DataTableBundle\Filter\Form\Type\OperatorType'
This is the form type used to render the filter operator field.
operator_form_options
- type:
array - default:
[]
This is the array that's passed to the form type specified in the operator_form_type option.
operator_selectable
- type:
bool - default:
false
Determines whether the operator can be selected by the user.
default_operator
- type:
Kreyu\Bundle\DataTableBundle\Filter\Operator - default:
Kreyu\Bundle\DataTableBundle\Filter\Operator::Equals
Determines a default operator for the filter.
