Final Class Yiisoft\Yii\DataView\Filter\Widget\Context
| Inheritance | Yiisoft\Yii\DataView\Filter\Widget\Context |
|---|
Context for filter widgets that provides necessary data for rendering filter inputs.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $formId | string | Yiisoft\Yii\DataView\Filter\Widget\Context | |
| $property | string | Yiisoft\Yii\DataView\Filter\Widget\Context | |
| $value | string|null | Yiisoft\Yii\DataView\Filter\Widget\Context |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Creates a new filter widget context. | Yiisoft\Yii\DataView\Filter\Widget\Context |
Property Details
Method Details
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,
) {}
Signup or Login in order to comment.