Newer Version Available
forceChatter:publisher
Lets users create posts on records or groups, and upload attachments from any device.
The forceChatter:publisher component is a standalone publisher component you can place on a record page. It works together with the forceChatter:exposedFeed component to provide a complete Chatter experience. The advantage of having separate components for publisher and feed is the flexibility it gives you in arranging page components. The connection between publisher and feed is automatic and requires no additional coding.
The forceChatter:publisher component includes the context attribute, which determines what type of feed is shown. Use Record for a record feed, and Global for all other feed types.
The forceChatter:publisher component has a dependency on two components: force:message and ui:outputText.
1<aura:component description="Sample Component">
2 <forceChatter:exposedFeed context="Global" />
3 </aura:component>Attributes
| Attribute Name | Attribute Type | Description | Required? |
|---|---|---|---|
| body | Component[] | The body of the component. In markup, this is everything in the body of the tag. | |
| context | String | The context in which the component is being displayed (RECORD or GLOBAL). RECORD is for a record feed, and GLOBAL is for all other feed types. | Yes |
| recordId | String | The record Id |