packages/components/eui-comment-thread/comment-item/eui-comment-item.component.ts
AfterContentInit
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | eui-comment-item |
| imports |
TranslateModule
EUI_TEXTAREA
EUI_AVATAR
EUI_BUTTON
EUI_LABEL
EUI_ICON
EUI_DROPDOWN
EUI_ICON_BUTTON_EXPANDER
EuiCommentTextareaComponent
|
| styleUrls | ../styles/_index.scss |
| templateUrl | ./eui-comment-item.component.html |
Properties |
|
Methods |
|
Inputs |
Outputs |
HostBindings |
Accessors |
| authorAvatarUrl |
Type : string
|
Default value : null
|
| authorName |
Type : string
|
Default value : null
|
| commentCharLimit |
Type : number
|
Default value : 500
|
| createdAt |
Type : string
|
Default value : null
|
| currentAuthorAvatarUrl |
Type : string
|
Default value : null
|
| hasChildren |
Type : boolean
|
Default value : false
|
| isOpen |
Type : boolean
|
Default value : false
|
| commentCancel |
Type : EventEmitter
|
| commentSend |
Type : EventEmitter
|
| class |
Type : string
|
| Public onCommentCancel |
onCommentCancel()
|
|
Returns :
void
|
| Public onCommentSend | ||||||
onCommentSend(comment: string)
|
||||||
|
Parameters :
Returns :
void
|
| Public onToggleOpen |
onToggleOpen()
|
|
Returns :
void
|
| Public onToggleReplyInput | ||||||
onToggleReplyInput(e: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| toggleExpanded | ||||||
toggleExpanded(e: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| comment |
Type : ElementRef<HTMLElement>
|
Decorators :
@ViewChild('comment', {static: true})
|
| Public fullText |
Type : string
|
Default value : ''
|
| Public isExpanded |
Default value : false
|
| Public isTruncated |
Default value : false
|
| Public isVisibleReplyInput |
Default value : false
|
| subCommentItems |
Type : QueryList<EuiCommentItemComponent>
|
Decorators :
@ContentChildren(EuiCommentItemComponent)
|
| Public truncatedText |
Type : string
|
Default value : ''
|
| cssClasses |
getcssClasses()
|
| nbSubCommentItems |
getnbSubCommentItems()
|