Skip to main content

CnConversationWidget

The conversation widget: a CnConversationThread fed from a list on the bound record, in a bordered card. A reply the endpoint accepts shows at once, until the record is read again.

The widget registers itself as the conversation type, so a manifest places it by that key. It is also a named export, for an app component that renders it with its own props:

import { CnConversationWidget } from '@conduction/nextcloud-vue'

Props​

PropTypeDefaultDescription
contentobject{}{ field, endpoint?, authorField?, timeField?, textField?, sideField?, usValue?, title?, allowReply?, replyLabel?, placeholder?, sendLabel?, emptyText? }. field is the dot path to the messages on the record (default messages); the *Field keys name each message's author, time, text and side. A message whose side equals usValue (default us) is drawn as ours. @objectId in endpoint is replaced by the record's id.
objectDataobjectnullThe bound record.
objectIdstring | number''The bound record's id, used in endpoint.

Reference (auto-generated)​

Props​

NameTypeRequiredDefaultDescription
contentobject\{\}The widget's content. field is the dot-path to the messages on the record.
objectDataobjectnullThe bound record.
objectIdstring|number''The bound record's id.