File

src/lib/filter-toolbar/attribute-selector/attribute-selector.component.ts

Implements

OnInit OnChanges OnDestroy

Metadata

Index

Properties
Methods
Inputs
Outputs

Inputs

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.

Outputs

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.

Methods

addAttribute
addAttribute(index: number)

Add the chosen attribute to the used attributes. Moves chosen attribute to the top of the list.

Parameters :
Name Type Optional Description
index number No

The index of the chosen attribute.

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 :
Name Type Optional Description
attribute IAttributeItemSelector No

The chosen attribute.

index number No

The index of the chosen attribute.

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 :
Name Type Optional
attribute IAttributeItemSelector No
Returns : void

Properties

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

results matching ""

    No results matching ""