src/app/issue-detail/timeline/coalesced/timeline-item.component.ts
This component provides an easy method to switch between the different possible content types of a timeline item, such as single, coalesced or deleted. Additionally, the formatted time is shown.
selector | app-timeline-item |
styleUrls | ../timeline.component.scss |
templateUrl | ./timeline-item.component.html |
Properties |
Methods |
|
Inputs |
Accessors |
constructor(changeDetector: ChangeDetectorRef)
|
||||||
Parameters :
|
showDeleted | |
Type : boolean
|
|
Default value : false
|
|
If this option is set to true, the template with the |
timelineItem | |
Set the timeline item to show |
Private updateContents |
updateContents()
|
Returns :
void
|
activeItemContent |
Type : TemplateRef<>
|
Default value : null
|
item |
Type : CoalescedTimelineItem
|
timeFormatter |
Type : TimeFormatter
|
Default value : new TimeFormatter()
|
timelineItemContent |
Type : TimelineSingleItemDirective
|
Decorators :
@ContentChild(TimelineSingleItemDirective)
|
The content to be shown if the timeline item was not coalesced |
timelineItemDeletedContent |
Type : TimelineItemDeletedDirective
|
Decorators :
@ContentChild(TimelineItemDeletedDirective)
|
The content to be shown if the timeline item contains deleted data |
timelineItemsContent |
Type : TimelineCoalescedItemsDirective
|
Decorators :
@ContentChild(TimelineCoalescedItemsDirective)
|
The content to be shown if the timeline item was coalesced |
timelineItem | ||||||
settimelineItem(item: CoalescedTimelineItem | undefined)
|
||||||
Set the timeline item to show
Parameters :
Returns :
void
|
../timeline.component.scss