File

src/lib/simple-filter-selection/selection-filter/selection-filter.component.ts

Description

The selection filter component is a component to show a selected item from a pool of items. There is a multiple selection possible.

'''html <talenra-selection-filter (filterSelection)="onFilterSelection($event)" [attribute]="selectedAttribute" [possibleValues]="possibleSelection"> '''

Implements

OnInit OnChanges

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor()

Inputs

attribute
Type : ISelectedFilterAttribute
Required :  true

The attribute to identify which filter is selected.

possibleValues
Type : ISelectionFilterValue[]
Default value : []

The possible values of the filter.

Outputs

filterSelection
Type : ISelectedFilterAttribute

The filterSelection output is used to emit the filter values.

Methods

resetValues
resetValues(mouseEvent?: MouseEvent)

Function is necessary to delete the filter from the filter toolbar. Furthermore, the previous filterings with the deleted filter will be ignored.

Parameters :
Name Type Optional Description
mouseEvent MouseEvent Yes

The mouse event.

Returns : void

Properties

Public Readonly select
Type : unknown
Default value : viewChild<SelectComponent>('talenraFilterSelect')

The select component.

selectionForm
Type : FormGroup
Default value : new FormGroup({ singleSelect: new FormControl<ISelectionFilterValue | undefined>(undefined), multiSelect: new FormControl<ISelectionFilterValue[]>([]), })

The selected values.

results matching ""

    No results matching ""