Skip to main content

Group Tree

Enable the group tree in the layout

info

The overlap feature has to be enabled to use the group tree feature in the layout.

Docusaurus logo

Channel schema

You can add other properties that you wish to have according to your specific requirements or functionalities you want to implement.

PropertyTypeStatusDescription
logostringrequiredImage URL
uuidstringrequired
titlestringoptionalTitle of the channel
groupTreebooleanoptionalSet to true if the channel is the first main top channel in a group, used to display the channel group name in sidebar
parentChannelUuidstringoptionalSet for nested children. Required when main channel has groupTree set to true
isOpenbooleanoptionalUsed to open the channel group in the sidebar

Example

const { getEpgProps, getLayoutProps } = useEpg({
channels,
epg,
startDate,
endDate,
overlap: {
enabled: true, // The overlap has to be enabled to use the group tree
mode: "stack"
},
...
});