File

src/lib/sort-selection/sort-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 sortable attributes.

sortSelections
Type : ISortAttributesInput[]
Default value : []

The sortSelections input is an array of strings that contains the selected sorts.

Outputs

sortSelectionsChange
Type : ISortAttributesInput[]

The sortSelections output is an array of strings that contains the selected sorts.

Methods

deleteSortAttribute
deleteSortAttribute(sortIndex: number)

Removes the sort from the selection.

Parameters :
Name Type Optional Description
sortIndex number No

The sort index.

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

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

Parameters :
Name Type Optional Description
value SelectChange No

The value of the attribute selector.

index number No

The index.

Returns : void
onDrop
onDrop(dropElement: CdkDragDrop<ISelectedSortAttribute[]>)

Called when the user drops an element.

Parameters :
Name Type Optional Description
dropElement CdkDragDrop<ISelectedSortAttribute[]> No

The drop element.

Returns : void
onSortChange
onSortChange(attributesIndex: number)

Changes the sort direction.

Parameters :
Name Type Optional Description
attributesIndex number No

The sort index.

Returns : void
onSortSelectionAdd
onSortSelectionAdd(selectChange: SelectChange)

Called when the user selects a sort.

Parameters :
Name Type Optional Description
selectChange SelectChange No

The select change.

Returns : void
onSortSelectionChange
onSortSelectionChange(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

Properties

availableSortAttributes
Type : ISelectedSortAttribute[]
Default value : []

The availableSortAttributes computed property is an array of strings that contains the available sort attributes.

copyAvailableAttributes
Type : unknown
Default value : computed<IAttributeItem[]>(() => { const availableAttributes: IAttributeItem[] = []; this.availableAttributes().forEach((attribute: IAttributeItem) => { availableAttributes.push({ checked: new FormGroup({}), identifier: attribute.identifier, label: attribute.label, filterMode: attribute.filterMode, dateFilterRestriction: attribute.dateFilterRestriction, }); }); return availableAttributes; })

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

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.

results matching ""

    No results matching ""