useRow
A hook to declare a timeline row.
Use this hook to declare an HTML element as a row in the timeline.
Options
id
idid: stringA unique id for this row. This id will later be used to bind items to rows.
disabled?
disabled?disabled?: booleandata?
data?data?: objectCustom data that can be passed to the row.
🧠 This can be passed to rows to identify their type. This type can later be used in the event callbacks to apply different behaviors to different row types.
API
rowWrapperStyle
rowWrapperStyleBasic styles that must be applied to the row container element.
rowStyle
rowStyleBasic styles that must be applied to the row element.
rowSidebarStyle
rowSidebarStyleBasic styles that must be applied to the row sidebar element.
setSidebarRef
setSidebarRefA ref that must be passed to the sidebar element.
Last updated