File

packages/eui/packages/components/eui-table-v2/filter/eui-table-v2-filter.component.ts

Description

Component used with eui-table-v2 to add a filter feature to the table.

Implements

OnInit OnDestroy

Metadata

Index

Properties
Methods
Inputs
Outputs
HostBindings
Accessors

Inputs

placeholder
Type : string

Placeholder text for the filter input.

Outputs

filterChange
Type : EventEmitter

Event emitted when the value of the input changes.

HostBindings

class
Type : string

Methods

Public resetFilter
resetFilter()

Reset the filter and emit the change event.

Returns : void
Public setFilter
setFilter(value: string)

Set the filter value and emit the change event.

Parameters :
Name Type Optional Description
value string No

Value of the input.

Returns : void

Properties

Public filter$
Type : BehaviorSubject<string>
Default value : new BehaviorSubject(null)
filterInput
Type : ElementRef<HTMLInputElement>
Decorators :
@ViewChild('filterInput', {read: ElementRef})
Public form
Default value : new FormGroup({ filter: new FormControl<string>(null), })

Accessors

cssClasses
getcssClasses()

Computes and returns the CSS classes for the component based on its current state.

Returns : string

results matching ""

    No results matching ""