File

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

Implements

OnChanges

Metadata

Index

Properties
Methods
Inputs
Outputs

Inputs

availableAttributes
Type : IAttributeItem[]
Default value : []

The availableAttributes input is an array of AttributeItem that contains the available filters.

filterSelections
Type : IFilterAttribute[]
Default value : []

The filterSelection input is an array of strings that contains the selected filters.

Outputs

filterSelectionsChange
Type : IFilterAttribute[]

The selectedFilters output is an array of strings that contains the selected filters.

Methods

changeOperator
changeOperator(selectedAttributes: ISelectedFilterAttribute)

Changes the value of the operator.

Parameters :
Name Type Optional Description
selectedAttributes ISelectedFilterAttribute No

The selected attributes.

Returns : void
deleteFilterAttribute
deleteFilterAttribute(mouseEvent: MouseEvent, filterIndex: number)

Removes the filter from the selection.

Parameters :
Name Type Optional Description
mouseEvent MouseEvent No

The mouse event.

filterIndex number No

The filter index.

Returns : void
onAttributeSelectionAdd
onAttributeSelectionAdd(selectChange: SelectChange)

Called when the user selects a filter.

Parameters :
Name Type Optional Description
selectChange SelectChange No

The select change.

Returns : void
onAttributeSelectionChange
onAttributeSelectionChange(selectChange: SelectChange, index: number)

Called when the user changes a filter attribute.

Parameters :
Name Type Optional Description
selectChange SelectChange No

The select change.

index number No

The index.

Returns : void
onAttributeSelectionModelChange
onAttributeSelectionModelChange(value: SelectChange, index: number)

Called when the user clicks the x button in the filter attribute selection.

Parameters :
Name Type Optional Description
value SelectChange No

The value of the attribute selector.

index number No

The index.

Returns : void
onFilterSelection
onFilterSelection(filterIndex: number, filterAttribute: ISelectedFilterAttribute)

Called when the user selects a filter.

Parameters :
Name Type Optional Description
filterIndex number No

The filter index.

filterAttribute ISelectedFilterAttribute No

The filter attribute.

Returns : void

Properties

destroyRef
Type : unknown
Default value : inject(DestroyRef)
filters
Type : IFilterAttribute[]
Default value : []

The filters array contains the selected filters.

filterToolbarService
Type : unknown
Default value : inject(FilterToolbarService)

The inbox service and references.

inboxState
Type : unknown
Default value : inject(InboxState)
optionsMainAttributeSelector
Type : IAttributeItem[]
Default value : []

The availableAttributes output is an array of AttributeItem that contains the available filters.

selectedAttributes
Type : ISelectedFilterAttribute[]
Default value : []

The selectedAttributes input is an array of AttributeItem that contains the selected filters.

results matching ""

    No results matching ""