2

I need to add more information in react data table component name. i use this component : https://www.npmjs.com/package/react-data-table-component How can i do that . I try it this code but it doesn't work :

  {
            name: () => return (
                <OverlayTrigger
                placement="right"
                delay={{ show: 250, hide: 400 }}
                overlay={renderTooltip}
              >
                <span >Hover me to see</span>
              </OverlayTrigger>,
            )
            selector: "name",
            sortable: true,

        },
sokida
  • 433
  • 1
  • 8
  • 21
  • 1
    Hi! can you explain a little bit better what you want? a tooltip on the columns? – Artur Peniche Mar 10 '22 at 12:18
  • You can find the response here : https://stackoverflow.com/questions/71208566/how-to-show-tooltip-in-react-data-table-component/72746440#72746440 – sokida Jun 27 '22 at 11:52

1 Answers1

0

enter code here use it defrete no need to apply arrow function, use use this way.

   {
    name: <> <input type="checkbox" id="cbox1" checked{true} 
    onChange{onchangeMethod()} /> &nbsp; <label>Prueba</label> </>,
    selector: "name",
    sortable: true,
   },
tooti
  • 1
  • 1