ComposerValue
Defined in: react/src/composer.ts:67
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
F extends AttachmentFile |
File |
Properties
Section titled “Properties”addFiles
Section titled “addFiles”addFiles: (files) => void;Defined in: react/src/composer.ts:69
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
files |
readonly F[] |
Returns
Section titled “Returns”void
attachments
Section titled “attachments”attachments: readonly AttachmentItem<F>[];Defined in: react/src/composer.ts:37
Inherited from
Section titled “Inherited from”canSubmit
Section titled “canSubmit”canSubmit: boolean;Defined in: react/src/composer.ts:40
Inherited from
Section titled “Inherited from”dismissMissingFiles
Section titled “dismissMissingFiles”dismissMissingFiles: () => void;Defined in: react/src/composer.ts:75
Returns
Section titled “Returns”void
draft: DraftState;Defined in: react/src/composer.ts:43
Inherited from
Section titled “Inherited from”error?
Section titled “error?”optional error?: DisplayError;Defined in: react/src/composer.ts:42
Inherited from
Section titled “Inherited from”flushDraft
Section titled “flushDraft”flushDraft: () => Promise<boolean>;Defined in: react/src/composer.ts:73
Save pending edits now and wait for ordered writes. False means the draft is not saved; keep it open and offer retryDraft. No pending edits or persistence off returns true.
Returns
Section titled “Returns”Promise<boolean>
removeAttachment
Section titled “removeAttachment”removeAttachment: (id) => void;Defined in: react/src/composer.ts:70
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
id |
string |
Returns
Section titled “Returns”void
result?
Section titled “result?”optional result?: SendResult;Defined in: react/src/composer.ts:41
Inherited from
Section titled “Inherited from”retryAttachment
Section titled “retryAttachment”retryAttachment: (id) => void;Defined in: react/src/composer.ts:71
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
id |
string |
Returns
Section titled “Returns”void
retryDraft
Section titled “retryDraft”retryDraft: () => void;Defined in: react/src/composer.ts:74
Returns
Section titled “Returns”void
revision
Section titled “revision”revision: number;Defined in: react/src/composer.ts:38
Inherited from
Section titled “Inherited from”setText
Section titled “setText”setText: (text) => void;Defined in: react/src/composer.ts:68
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
Returns
Section titled “Returns”void
submit
Section titled “submit”submit: () => Promise< | SendResult| undefined>;Defined in: react/src/composer.ts:72
No automatic retries. A duplicate call while sending returns undefined.
Returns
Section titled “Returns”Promise<
| SendResult
| undefined>
submitting
Section titled “submitting”submitting: boolean;Defined in: react/src/composer.ts:39
Inherited from
Section titled “Inherited from”text: string;Defined in: react/src/composer.ts:36