The optional channel option, allows you to limit the show selection in the Promo Widget to those that are assigned to a certain channel. The channel option accepts your desired channel's slug as a value.
If omitted, all public shows are considered to be promoted in the widget.
// Basic channel configuration.
const alertConfig: Partial<AlertConfig> = {
channel: 'demos',
};
// Prefer shows promoted in channels.
const alertConfig: Partial<AlertConfig> = {
channel: {
// Pick the first show highlight from the beauty channel.
mode: 'priority',
slug: 'beauty'
}
}
// Prefer shows promoted in channels
const alertConfig: Partial<AlertConfig> = {
channel: {
// Pick a random show highlight from the beauty channel.
mode: 'random',
slug: 'beauty'
}
}