Comment
Description and methods
Class for rendering elements that are comments.
BX.UI.Timeline.Comment
Descendant to element base class.
Contains an instance of comment editor.
Initially, element is rendered incompletely. Block with attached files is loaded via asynchronous event.
When comment text is long or contains text-inserted files, it loads when clicking on the button Expand.
Method | Description | Available from version |
---|---|---|
getCommendEditor(): CommentEditor | Returns comment editor object. | |
switchToEditMode() | Switches element in comment edit mode. | |
switchToViewMode() | Switches element into viewing mode. | |
loadFilesContent() | Uploads content of attached files. | |
loadContent() | Uplaods full comment content. |
Events
Event | Description |
---|---|
namespace: BX.UI.Timeline.Comment | |
onDelete | Asynchronous event. Thrown when deleting a comment.
|
error | Error.
|
onLoadFilesContent | Asynchronous event. Thrown when loading attached files content.
|
onLoadContent | Asynchronous event. Thrown when loading attached files full content.
|
© «Bitrix24», 2001-2024