src/lib/inbox-layout/data-items-list/data-items-list.component.ts
One of the main part of the application. Responsible for ensuring that the transmitted data is properly structured to the user.
Example :<talenra-data-items-list
[dataItemsChange]="filteredDataItems"
[scrollToIndex]="keyboardService.scrollToIndex"
[furtherActionsMenu]="furtherActionsMenu"
(dataItemsInteractions)="onDataItemsInteractions($event)"
(clickedDataItems)="selectedDataItem($event)"
(scrollChange)="onScrollChange($event)"
></talenra-data-items-list>
OnInit
OnDestroy
AfterViewInit
| selector | talenra-data-items-list |
| imports |
VirtualScrollerModule
DataItemComponent
MessageComponent
TalenraInboxTranslatePipe
|
| styleUrls | ./data-items-list.component.scss |
| templateUrl | ./data-items-list.component.html |
Properties |
|
Methods |
Inputs |
Outputs |
| dataItems |
Type : any[]
|
Default value : []
|
|
Input attribute for the data items list to be displayed in the UI. |
| lockedDataItems |
Type : IDataItemId[] | undefined
|
Default value : undefined
|
|
The locked data items for the data item list. |
| mainCheckboxState |
Type : CheckboxState
|
Default value : CheckboxState.Outline
|
|
Checkbox state of the toolbar checkbox. The state changes all the checkboxes in the data items list. Outline: No checkbox is checked. Indeterminate: Does not change the state of the checkboxes. Checked: All checkboxes are checked. |
| pairingAttributes |
Type : IPairingAttributes[]
|
| Required : true |
|
pairing of attributes to be displayed in the UI. |
| scrollToIndex |
Type : number
|
Default value : 0
|
|
Input attribute to scroll to specific index |
| selectedDataItem |
Type : any
|
Default value : undefined
|
|
Input attribute for the selected data item to be displayed in the UI. |
| selectedMainAttributes |
Type : string[]
|
Default value : []
|
|
Attribute identifier for the selected main attributes to be displayed in attributes settings and data items list. |
| clickedDataItem |
Type : any
|
|
Transfer the clicked data item from the data item list to the data item sidebar information. |
| dataItemsInteractions |
Type : IInteractedDataItems
|
|
EventEmitter to send data items interactions. |
| mainCheckboxStateChange |
Type : CheckboxState
|
|
Emitter for the change in the checkbox state of the toolbar checkbox. |
| numberMarkedDataItemsChange |
Type : number
|
|
EventEmitter to send change number of marked data items. |
| virtualScrollChange |
Type : number
|
|
EventEmitter to send change in Scroll Position. |
| checkIfDataItemMarked | ||||||||
checkIfDataItemMarked(inboxId: string)
|
||||||||
|
Auxiliary method to check if the data item is marked.
Parameters :
Returns :
boolean
|
| Public getFormGroupDataItemByID | ||||||||
getFormGroupDataItemByID(item: string)
|
||||||||
|
Method to get data item by name.
Parameters :
Returns :
FormGroup | null
|
| getLockedDataItem | ||||||||
getLockedDataItem(itemInboxId: string)
|
||||||||
|
Gets the locked data item info for the given item element.
Parameters :
Returns :
IDataItemId | undefined
The locked data item info if the item is locked, undefined otherwise. |
| Public handleMarkedDataItems | ||||||||
handleMarkedDataItems(item: any)
|
||||||||
|
Handler to mark data items, used by the emitter of a single data item.
Parameters :
Returns :
void
|
| onCheckboxInteraction | ||||||
onCheckboxInteraction(event: literal type)
|
||||||
|
Handles the interaction of one checkbox in the data items list.
Parameters :
Returns :
void
|
| onDataItemsInteractions | ||||||||
onDataItemsInteractions(event: IInteractedDataItems)
|
||||||||
|
Depending on the clicked data items button the corresponding event actions will be shown.
Parameters :
Returns :
void
|
| Public onScroll |
onScroll()
|
|
Method to handle scroll change.
Returns :
void
|
| Public onSelectClick | ||||||||
onSelectClick(item: any)
|
||||||||
|
Method to handle selected / clicked data items.
Parameters :
Returns :
void
|
| Public onShiftDataItemClick | ||||||||
onShiftDataItemClick(item: any)
|
||||||||
|
Method to handle selected / clicked data items.
Parameters :
Returns :
void
|
| setToolbarCheckboxState |
setToolbarCheckboxState()
|
|
Method to set the state of the toolbar checkbox.
Returns :
void
|
| Public dataItemsClass |
Type : DataItemsClass
|
Default value : new DataItemsClass()
|
|
Class to interact with data-items-list-data. |
| Public dataItemsService |
Type : unknown
|
Default value : inject(DataItemsService)
|
|
The data items service. |
| Public markedDataItems |
Type : string[]
|
Default value : []
|
|
List of all marked data items names |
| Public markedDataItemsFormGroupCheckboxes |
Type : IMarkedItemFormGroup[]
|
Default value : []
|
|
List of all data items names which have been marked through click on the checkbox |