Skip to main content

Layout

The Layout component is used to display the channels and elements in a grid.

Base props

Available props in Layout.

PropertyTypeDescriptionStatus
renderProgramfunction({ program: { data: object, position: object})data object contains all properties related to the program, position object includes all position stylesoptional
renderChannelfunction({ channel: { ..., position: object})channel object contains all properties related to the channel, position object includes all position stylesoptional
renderTimelinefunction({sidebarWidth: number})sidebarWidth value of the channel's sidebar widthoptional
renderGridCellfunction(object)render custom Grid Cell element in Layout grid
renderLinefunction({styles: object})basic styles and position values for the custom live tracking Lineoptional
renderCurrentTimefunction({styles: object, isRTL: boolean, isBaseTimeFormat: boolean, time: string})basic styles values for the custom current timeoptional
renderMobileControllersfunction(object)render custom Mobile Controllers header element in Layoutoptional
renderMobileTimelinefunction(object)render custom Mobile Timeline time slot element in Layoutoptional
onLayoutBgClickfunction()Possibility to click on Layout background to trigger some custom eventsoptional