Interface: ComposerProps
Composer.ComposerProps
Hierarchy
-
Omit
<DialogProps
,"defaultValue"
|"scroll"
>↳
ComposerProps
Properties
EditorProps
• Optional
EditorProps: Omit
<EditorProps
, "onFocus"
>
Editor props
Default
{}
Defined in
packages/react-ui/src/components/Composer/Composer.tsx:137
defaultValue
• Optional
defaultValue: Object
Initialization Data for the Composer, this is a hook to generate custom posts
Default
null
Type declaration
Name | Type |
---|---|
addressing? | SCTagType [] |
audience? | string |
categories? | SCCategoryType [] |
location? | string |
medias? | SCMediaType [] |
poll? | SCPollType |
text? | string |
title? | string |
Defined in
packages/react-ui/src/components/Composer/Composer.tsx:118
feedObject
• Optional
feedObject: SCFeedObjectType
| SCFeedDiscussionType
| SCFeedPostType
Feed object
Default
null
Defined in
packages/react-ui/src/components/Composer/Composer.tsx:113
feedObjectId
• Optional
feedObjectId: number
Id of feed object
Default
null
Defined in
packages/react-ui/src/components/Composer/Composer.tsx:103
feedObjectType
• Optional
feedObjectType: DISCUSSION
| POST
| STATUS
Type of feed object
Default
null
Defined in
packages/react-ui/src/components/Composer/Composer.tsx:108
mediaObjectTypes
• Optional
mediaObjectTypes: SCMediaObjectType
[]
Media objects available
Default
File, Document, Link
Defined in
packages/react-ui/src/components/Composer/Composer.tsx:132
onClose
• Optional
onClose: (event
: SyntheticEvent
<Element
, Event
>) => void
Type declaration
▸ (event
): void
Callback triggered on close click
Parameters
Name | Type |
---|---|
event | SyntheticEvent <Element , Event > |
Returns
void
Default
null
Overrides
Omit.onClose
Defined in
packages/react-ui/src/components/Composer/Composer.tsx:147
onSuccess
• Optional
onSuccess: (res
: any
) => void
Type declaration
▸ (res
): void
Callback triggered on success contribution creation
Parameters
Name | Type |
---|---|
res | any |
Returns
void
Default
null