I am using react-table v6.
I have a header as an eye-icon. After click on that icon I want to show the modal. How can I stick the modal to always appear below this icon even if I resize the window OR at least on different browsers and screens?
Of course there are some values like left and right - MAYBE I should use approx. values to display modal near this eye-icon?
After I resized - modal went up
My code for column and modal - I put modal after the icon
const eyeColumn = [{
Header: () =>
<div>
<div className="eye-icon" onClick={handleModalShow}>
<img src={eyeIcon}/>
</div>
<Modal onHide={() => {
setShowModal(false)
}} show={showModal}
/>
</div>,
fixed: "left",
sortable: false,
headerClassName: table-header-class",
className: "table-row-class",
width: 70
}];
reactjs-popup did the trick. Everything is ok
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.