CollapsibleFilter
extends Component
in package
Table of Contents
- $fieldHints : array<string|int, mixed>
- $fields : array<string|int, mixed>
- $filters : array<string|int, mixed>
- $iconOff : string
- $iconOn : string
- $modelProperty : string
- $panel : string
- $panelLabel : string
- __construct() : mixed
- Create a new component instance.
- render() : View|Closure|string
- Get the view / contents that represent the component.
Properties
$fieldHints
public
array<string|int, mixed>
$fieldHints
= []
$fields
public
array<string|int, mixed>
$fields
$filters
public
array<string|int, mixed>
$filters
$iconOff
public
string
$iconOff
= 'filter_list_off'
$iconOn
public
string
$iconOn
= 'filter_list'
$modelProperty
public
string
$modelProperty
= 'filterValues'
$panel
public
string
$panel
= 'collapsible-filter-panel'
$panelLabel
public
string
$panelLabel
= 'Filter'
Methods
__construct()
Create a new component instance.
public
__construct(array<string|int, mixed> $filters, array<string|int, mixed> $fields[, array<string|int, mixed> $fieldHints = [] ][, string $panelLabel = 'Filter' ][, string $panel = 'collapsible-filter-panel' ][, string $modelProperty = 'filterValues' ][, string $iconOn = 'filter_list' ][, string $iconOff = 'filter_list_off' ]) : mixed
Parameters
- $filters : array<string|int, mixed>
- $fields : array<string|int, mixed>
- $fieldHints : array<string|int, mixed> = []
- $panelLabel : string = 'Filter'
- $panel : string = 'collapsible-filter-panel'
- $modelProperty : string = 'filterValues'
- $iconOn : string = 'filter_list'
- $iconOff : string = 'filter_list_off'
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|Closure|string