Feed component
Feed is a component that enables internal and external users to post and read comments that support rich text and user mention via "@." Learn more: Feed (user documentation).
View an example of a configuration object that sets up the Feed component below.
viewConfigDiff: /**SCHEMA_VIEW_CONFIG_DIFF*/[
{
"operation": "insert",
"name": "Feed_6m476f2",
"values": {
"layoutConfig": {
"column": 1,
"colSpan": 1,
"row": 1,
"rowSpan": 1
},
"type": "crt.Feed",
"feedType": "User",
"primaryColumnValue": "$Id",
"cardState": "$CardState",
"allowExternalPost": false,
"entitySchemaName": "UsrTest",
"dataSourceName": "PDS",
"visible": true,
"isReadOnly": false
},
"parentName": "GeneralInfoTabContainer",
"propertyName": "items",
"index": 0
}
]/**SCHEMA_VIEW_CONFIG_DIFF*/,
string type
Component type. "crt.Feed" for the Feed component.
string feedType
Define the feed content source.
Available values
Value | Description |
|---|---|
Record | Display feed messages related to a specific record. |
User | Display feed messages related to a specific user. |
string primaryColumnValue
Bind the feed to the primary key value of the record.
string cardState
Bind the feed behavior to the current card state.
boolean allowExternalPost
Whether to allow messages from external users. By default, "false."
Available values
Value | Description |
|---|---|
true | Enable to send messages from external users. |
false | Disable to send messages from external users. |
string entitySchemaName
Specify the schema of the object whose records are linked to the feed.
string dataSourceName
Define the data source used by the Feed component. "PDS" refers to the page data source.
boolean visible
Whether to display the Feed component. By default, "true."
Available values
Value | Description |
|---|---|
true | The feed is visible. |
false | The feed is hidden. |
LayoutConfig layoutConfig
Specify the component position and size.
Parameters
Name | Type | Description |
|---|---|---|
column | number | The column number where the component starts. |
colSpan | number | The number of columns the component spans. |
row | number | The row number where the component starts. |
rowSpan | number | The number of rows the component spans. |
boolean or string isReadOnly
Whether to display the Feed component in read-only mode. By default, "false." To ensure feed messages are displayed correctly, bind the appropriate attribute to the isReadOnly property. When the bound attribute value changes, the component automatically shows or hides its fields.
Available values
Value | Description |
|---|---|
true | Adding new feed messages or comments is locked. Only the Like button remains available. |
false | Adding new feed messages or comments is permitted. |
boolean loadCurrentUserPhoto
Whether to load the current user's photo in feed comments. By default, "true."
Available values
Value | Description |
|---|---|
true | Load the current user's photo in feed comments. |
false | Skip the current user's photo lookup in feed comments. |
boolean loadAttachments
Whether to load attachments in feed items. By default, "true."
Available values
Value | Description |
|---|---|
true | Load attachments in feed items. |
false | Skip loading attachments in feed items. |
See also
Overview of Freedom UI Designer and its elements (user documentation)