Class SlotContent

Represents content for a slot.

Property Summary 

PropertyDescription
calloutMsg: MarkupText (read-only)Returns the callout message for the slot.
content: Collection (read-only)Returns a collection of content based on the content type for the slot.
custom: Map (read-only)Returns the custom attributes for the slot.
recommenderName: String (read-only)Returns the recommender name for slot configurations of type ‘Recommendation’
slotID: String (read-only)Returns the unique slot ID.

Constructor Summary 

This class does not have a constructor, so you cannot create it directly.

Method Summary 

MethodDescription
getCalloutMsg()Returns the callout message for the slot.
getContent()Returns a collection of content based on the content type for the slot.
getCustom()Returns the custom attributes for the slot.
getRecommenderName()Returns the recommender name for slot configurations of type ‘Recommendation’
getSlotID()Returns the unique slot ID.

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Property Details 

calloutMsg 

calloutMsg: MarkupText (read-only)

Returns the callout message for the slot.


content 

content: Collection (read-only)

Returns a collection of content based on the content type for the slot. The collection will include one of the following types: Product, Content, Category, or MarkupText.


custom 

custom: Map (read-only)

Returns the custom attributes for the slot.


recommenderName 

recommenderName: String (read-only)

Returns the recommender name for slot configurations of type 'Recommendation'


slotID 

slotID: String (read-only)

Returns the unique slot ID.


Method Details 

getCalloutMsg() 

getCalloutMsg(): MarkupText

Returns the callout message for the slot.

Returns:

  • Callout message of the slot.

getContent() 

getContent(): Collection

Returns a collection of content based on the content type for the slot. The collection will include one of the following types: Product, Content, Category, or MarkupText.

Returns:

  • All content of the slot.

getCustom() 

getCustom(): Map

Returns the custom attributes for the slot.

Returns:

  • Custom attributes of the slot.

getRecommenderName() 

getRecommenderName(): String

Returns the recommender name for slot configurations of type 'Recommendation'

Returns:

  • the recommender name for slot configurations of type 'Recommendation'

getSlotID() 

getSlotID(): String

Returns the unique slot ID.

Returns:

  • ID of the slot.