We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want something like this it is possible?
The text was updated successfully, but these errors were encountered:
can i try working on this?
Sorry, something went wrong.
You can use itemRenderer and use mouse events to detect mouse hover.
eg: `itemRenderer = ({ item, timelineContext, itemContext, getItemProps, getResizeProps }) => { const { left: leftResizeProps, right: rightResizeProps } = getResizeProps(); const backgroundColor = itemContext.selected ? (itemContext.dragging ? "red" : item.selectedBgColor) : item.bgColor; const borderColor = itemContext.resizing ? "red" : item.color; return ( <div {...getItemProps({ style: { backgroundColor: 'green', color: item.color, borderColor, borderStyle: "solid", borderWidth: 1, borderRadius: 4, borderLeftWidth: itemContext.selected ? 3 : 1, borderRightWidth: itemContext.selected ? 3 : 1 }, onMouseDown: () => { console.log("on item click", item); }, })} onMouseEnter ={ () => { console.log('Hovering on item ->', item); }} > {itemContext.useResizeHandle ? <div {...leftResizeProps} /> : null}
<div style={{ height: itemContext.dimensions.height, overflow: "hidden", paddingLeft: 3, textOverflow: "ellipsis", whiteSpace: "nowrap" }} > {itemContext.title} </div> {itemContext.useResizeHandle ? <div {...rightResizeProps} /> : null} </div> );
};`
No branches or pull requests
I want something like this it is possible?
The text was updated successfully, but these errors were encountered: