src/lib/simple-filter-selection/range-filter/range-filter.component.ts
Range filter component, which enables three possible filter types:
<talenra-range-filter (filterSelection)="onFilterSelection($event)" [attribute]="selectedAttribute"></talenra-range-filter>
| selector | talenra-range-filter |
| imports |
ReactiveFormsModule
FormFieldComponent
InputComponent
ButtonComponent
TooltipDirective
DateComponent
TalenraInboxTranslatePipe
|
| styleUrls | ./range-filter.component.scss |
| templateUrl | ./range-filter.component.html |
Properties |
|
Methods |
Inputs |
Outputs |
| attribute |
Type : ISelectedFilterAttribute
|
| Required : true |
|
The attribute to identify which filter is selected. |
| filterSelection |
Type : ISelectedFilterAttribute
|
|
The filterSelection output is used to emit the filter values. |
| checkEndInputFalse | ||||||||||||
checkEndInputFalse(start: string | number, end: string | number)
|
||||||||||||
|
Auxiliary method to check if start string is before the end string of the given alphabet.
Parameters :
Returns :
void
|
| onEnterKey | ||||||||
onEnterKey(event: Event)
|
||||||||
|
Function is necessary to prevent the enter key from being pressed.
Parameters :
Returns :
void
|
| resetFilterAttribute | ||||||||
resetFilterAttribute(mouseEvent: MouseEvent)
|
||||||||
|
Resets the chosen filter values.
Parameters :
Returns :
void
|
| Public Readonly charNumberStartValueInput |
Type : unknown
|
Default value : viewChild<InputComponent>('charNumberStartValueInput')
|
|
The field for the char and number start value. |
| dateRange |
Type : FormGroup
|
Default value : new FormGroup(
{
startDate: new FormControl(null, validateDate()),
endDate: new FormControl(null, validateDate()),
},
{ validators: [validateStartDateIsBeforeEndDate('startDate', 'endDate', true)] }
)
|
|
The date range values. |
| Public Readonly dateStartValueInput |
Type : unknown
|
Default value : viewChild<DateComponent>('dateStartValueInput')
|
|
The field for the date start value. |
| falseEndInput |
Type : unknown
|
Default value : false
|
|
The falseEndInput is used to check if the end input is syntactically false. |