MCPcopy Create free account
hub / github.com/Autodesk/react-base-table / cellProps

Function cellProps

website/src/examples/column-hovering.js:20–30  ·  view source on GitHub ↗
({ columnIndex })

Source from the content-addressed store, hash-verified

18`
19
20const cellProps = ({ columnIndex }) => ({
21 'data-col-idx': columnIndex,
22 onMouseEnter: () => {
23 const table = tableRef.current.getDOMNode()
24 table.classList.add(`active-col-${columnIndex}`)
25 },
26 onMouseLeave: () => {
27 const table = tableRef.current.getDOMNode()
28 table.classList.remove(`active-col-${columnIndex}`)
29 },
30})
31
32const headerCellProps = ({ columnIndex }) => ({
33 'data-col-idx': columnIndex,

Callers

nothing calls this directly

Calls 1

getDOMNodeMethod · 0.80

Tested by

no test coverage detected