0 follower

Final Class Yiisoft\Yii\DataView\Filter\Widget\Context

InheritanceYiisoft\Yii\DataView\Filter\Widget\Context

Context for filter widgets that provides necessary data for rendering filter inputs.

Public Methods

Hide inherited methods

Method Description Defined By
__construct() Creates a new filter widget context. Yiisoft\Yii\DataView\Filter\Widget\Context

Property Details

Hide inherited properties

$formId public property
public string $formId null
$property public property
public string $property null
$value public property
public string|null $value null

Method Details

Hide inherited methods

__construct() public method

Creates a new filter widget context.

public mixed __construct ( string $property, string|null $value, string $formId )
$property string

The name of the property being filtered.

$value string|null

The current value of the filter. Null indicates no filter is currently applied.

$formId string

The ID of the HTML form containing the filter.

                public function __construct(
    public readonly string $property,
    public readonly ?string $value,
    public readonly string $formId,
) {}