Comment

interface Comment(source)

A comment is displayed within the editor or the Comments Panel, depending on how it is provided.

Online Documentation

Properties

Link copied to clipboard
abstract external var author: CommentAuthorInformation

The author information of the comment

Link copied to clipboard
abstract external var body: JsAny

The human-readable comment body

Link copied to clipboard
abstract external var contextValue: String?

Context value of the comment. This can be used to contribute comment specific actions. For example, a comment is given a context value as editable. When contributing actions to comments/comment/title using menus extension point, you can specify context value for key comment in when expression like comment == editable.

Link copied to clipboard
abstract external var label: String?

Optional label describing the Comment Label will be rendered next to authorName if exists.

Link copied to clipboard
abstract external var mode: CommentMode

Comment mode of the comment

Link copied to clipboard
abstract external var reactions: ReadonlyArray<CommentReaction>?

Optional reactions of the Comment

Link copied to clipboard
abstract external var timestamp: Date?

Optional timestamp that will be displayed in comments. The date will be formatted according to the user's locale and settings.