Skip to content

Filter

The Filter class is used to create filters inside a field of type table. It allows setting headers, identifiers, width, sorting, and rendering type.

Available methods:

MethodDescription
label(string $label)Sets the filter label.
type(string $type)Defines the filter type.
options(array $options)Specifies the list of selectable values.
php
Filter::make('price')
php
Filter::make('createdon')
    ->label('Date')
php
Filter::make('formName')
    ->label('Form name')
    ->type('select')
    ->options([
        'Job' => 'Job',
        'Contact' => 'Contact',
    ])

© PageBlocks 2019-present