src/lib/simple-filter-selection/simple-filter-selection.component.ts
| selector | talenra-simple-filter-selection |
| imports |
ScrollContainerComponent
FormFieldComponent
SelectComponent
FormsModule
OptionComponent
ButtonComponent
TextFilterComponent
ReactiveFormsModule
TooltipDirective
SelectionFilterComponent
RangeFilterComponent
TalenraInboxTranslatePipe
|
| templateUrl | ./simple-filter-selection.component.html |
| styleUrl | ./simple-filter-selection.component.scss |
Properties |
Methods |
Inputs |
Outputs |
| 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. |
| filterSelectionsChange |
Type : IFilterAttribute[]
|
|
The selectedFilters output is an array of strings that contains the selected filters. |
| changeOperator | ||||||||
changeOperator(selectedAttributes: ISelectedFilterAttribute)
|
||||||||
|
Changes the value of the operator.
Parameters :
Returns :
void
|
| deleteFilterAttribute | ||||||||||||
deleteFilterAttribute(mouseEvent: MouseEvent, filterIndex: number)
|
||||||||||||
|
Removes the filter from the selection.
Parameters :
Returns :
void
|
| onAttributeSelectionAdd | ||||||||
onAttributeSelectionAdd(selectChange: SelectChange)
|
||||||||
|
Called when the user selects a filter.
Parameters :
Returns :
void
|
| onAttributeSelectionChange | ||||||||||||
onAttributeSelectionChange(selectChange: SelectChange, index: number)
|
||||||||||||
|
Called when the user changes a filter attribute.
Parameters :
Returns :
void
|
| onAttributeSelectionModelChange | ||||||||||||
onAttributeSelectionModelChange(value: SelectChange, index: number)
|
||||||||||||
|
Called when the user clicks the x button in the filter attribute selection.
Parameters :
Returns :
void
|
| onFilterSelection | ||||||||||||
onFilterSelection(filterIndex: number, filterAttribute: ISelectedFilterAttribute)
|
||||||||||||
|
Called when the user selects a filter.
Parameters :
Returns :
void
|
| 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. |