This subcomponent is defined to show the related contents.
This component is located inside the content
component, where it is disabled. To show related content, set the option showRelated
to true
in the content
component. For details, see the example below.
By default, this component looks like this:
This component does not have optional parameters.
This subcomponent does not have any methods.
This component has some components inside which can be configured. This components are:
Name | Description |
---|---|
ratings | Component to render the ratings |
This subcomponent does not have any events.
This component calls the API endpoint /tracking/events
to register a click event when a user clicks on a content.
Labels of this component. The default labels of each component can be rewritten in the SDK creation configuration.
Name | Default | Description |
---|---|---|
RELATED_INTRODUCTION | Related contents |
HTML related introduction |
Create popular with related.
sdk.component('popular', '#popular', {
contents: {
showRelated: true,
}
});