I know this sounds like a weird request, but I'd like the option to disable this with a prop. I have a Table component with the Scrollbars tag at the very top so the table correctly scrolls. I am using this Table component in several components. One of my components I am working on actually has the Scrollbars in a component above the table so I don't want the table to have the scroll, so I would just like to disable the scroll for that particular circumstance. My other option is to make an identical component to Table and call it NonScrollingTable or something. But I know that is not ideal to copy so much code. DRY concept etc.
If it is any help, here is how I am using it in Table:
<Scrollbars
autoHeight
autoHeightMin={100}
autoHeightMax={'calc(100vh - 160px)'}
>
I know this sounds like a weird request, but I'd like the option to disable this with a prop. I have a
Tablecomponent with theScrollbarstag at the very top so the table correctly scrolls. I am using thisTablecomponent in several components. One of my components I am working on actually has theScrollbarsin a component above the table so I don't want the table to have the scroll, so I would just like to disable the scroll for that particular circumstance. My other option is to make an identical component toTableand call itNonScrollingTableor something. But I know that is not ideal to copy so much code. DRY concept etc.If it is any help, here is how I am using it in
Table: