src/lib/filter-toolbar/attribute-selector/attribute-selector.component.ts
| selector | talenra-attribute-selector |
| imports |
IconComponent
ScrollContainerComponent
CdkDropList
ButtonComponent
CdkDropListGroup
CdkDrag
TooltipDirective
SearchFieldComponent
SearchInputComponent
ReactiveFormsModule
|
| templateUrl | ./attribute-selector.component.html |
| styleUrl | ./attribute-selector.component.scss |
Properties |
Methods |
Inputs |
Outputs |
| allAttributes |
Type : IAttributeItemSelector[]
|
Default value : []
|
|
The list of available attributes to be selected and deselected. |
| maxSelectedAttributes |
Type : number
|
Default value : 30
|
|
The maximum number of selected attributes. Default value is 30. |
| resetAttributeSelection |
Type : boolean
|
Default value : false
|
|
The reset attribute selection. If true, the attribute selection will be reset. Will be set to false after the reset. |
| selectedAttributes |
Type : IAttributeItemSelector[]
|
Default value : []
|
|
The list of selected attributes. |
| title |
Type : string
|
Default value : 'Attributselector'
|
|
The title of the attribute selector, displayed above the lists. |
| titleIcon |
Type : string
|
Default value : ''
|
|
The icon in the title of the attribute selector, displayed above the lists. Has to be one of the available icons from the talenra icon library. |
| resetAttributeSelectionChange |
Type : EventEmitter
|
|
The reset attribute selection emitter. If true, the attribute selection will be reset. Will be set to false after the reset. |
| selectedAttributeIconClickEmitter |
Type : EventEmitter
|
|
The event emitter for which specific custom space is clicked correlating with the attribute. |
| selectedAttributesChange |
Type : EventEmitter
|
|
The event emitter for the selected attributes. |
| closeClick |
|
The event emitter for the click of the close button. |
| addAttribute | ||||||||
addAttribute(index: number)
|
||||||||
|
Add the chosen attribute to the used attributes. Moves chosen attribute to the top of the list.
Parameters :
Returns :
void
|
| dropListEntered |
dropListEntered()
|
|
Sets that the placeholder in the start sort list shown.
Returns :
void
|
| dropListExited |
dropListExited()
|
|
Sets that the placeholder in the start sort list is not shown.
Returns :
void
|
| onCloseClick |
onCloseClick()
|
|
Method to emit the close button and close the inbox detail view
Returns :
void
|
| removeAttribute | ||||||||||||
removeAttribute(attribute: IAttributeItemSelector, index: number)
|
||||||||||||
|
Remove the chosen filter from the used attributes.
Parameters :
Returns :
void
|
| resetAttributes |
resetAttributes()
|
|
Function to delete all attributes from the selected attributes.
Returns :
void
|
| selectedAttributesIconClicked | ||||||
selectedAttributesIconClicked(attribute: IAttributeItemSelector)
|
||||||
|
Attributes icon click emitter to enable the tracking which attribute icon is clicked.
Parameters :
Returns :
void
|
| placeholderSelectionAttributesListShown |
Type : unknown
|
Default value : false
|
|
Value if placeholder in selected sort list is shown. If nothing selected yet, then placeholder is shown. |
| searchedAttributesList |
Type : IAttributeItemSelector[]
|
Default value : []
|
|
List of searched attributes, not selected. |
| searchField |
Type : FormGroup
|
Default value : new FormGroup({
searchField: new FormControl(''),
})
|
|
Form group for the search field |