src/lib/sort-selection/sort-selection.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | talenra-sort-selection |
| imports |
ButtonComponent
FormFieldComponent
FormsModule
ReactiveFormsModule
ScrollContainerComponent
SelectComponent
TooltipDirective
CdkDrag
CdkDropList
CdkDragHandle
OptionComponent
TalenraInboxTranslatePipe
|
| templateUrl | ./sort-selection.component.html |
| styleUrl | ./sort-selection.component.scss |
Properties |
Methods |
Inputs |
Outputs |
| availableAttributes |
Type : IAttributeItem[]
|
Default value : []
|
|
The availableAttributes input is an array of AttributeItem that contains the available sortable attributes. |
| sortSelections |
Type : ISortAttributesInput[]
|
Default value : []
|
|
The sortSelections input is an array of strings that contains the selected sorts. |
| sortSelectionsChange |
Type : ISortAttributesInput[]
|
|
The sortSelections output is an array of strings that contains the selected sorts. |
| deleteSortAttribute | ||||||||
deleteSortAttribute(sortIndex: number)
|
||||||||
|
Removes the sort from the selection.
Parameters :
Returns :
void
|
| onAttributeSelectionModelChange | ||||||||||||
onAttributeSelectionModelChange(value: SelectChange, index: number)
|
||||||||||||
|
Called when the user clicks the x button in the sort attribute selection.
Parameters :
Returns :
void
|
| onDrop | ||||||||
onDrop(dropElement: CdkDragDrop<ISelectedSortAttribute[]>)
|
||||||||
|
Called when the user drops an element.
Parameters :
Returns :
void
|
| onSortChange | ||||||||
onSortChange(attributesIndex: number)
|
||||||||
|
Changes the sort direction.
Parameters :
Returns :
void
|
| onSortSelectionAdd | ||||||||
onSortSelectionAdd(selectChange: SelectChange)
|
||||||||
|
Called when the user selects a sort.
Parameters :
Returns :
void
|
| onSortSelectionChange | ||||||||||||
onSortSelectionChange(selectChange: SelectChange, index: number)
|
||||||||||||
|
Called when the user changes a filter attribute.
Parameters :
Returns :
void
|
| availableSortAttributes |
Type : ISelectedSortAttribute[]
|
Default value : []
|
|
The availableSortAttributes computed property is an array of strings that contains the available sort attributes. |
| inboxState |
Type : unknown
|
Default value : inject(InboxState)
|
|
The inbox service and references. |
| selectedAttributes |
Type : ISelectedSortAttribute[]
|
Default value : []
|
|
The selectedAttributes input is an array of AttributeItem that contains the selected sorts. |
| selectionForm |
Type : FormGroup
|
Default value : new FormGroup({
attributeSelection: new FormControl(''),
})
|
|
The selected values. |