drawer
drawer copied to clipboard
Initialize Drawer Within Element
Hi, It is possible to have a drawer initialising only inside an element for example, drawer inside a div tag.
Here is some sample:
https://codesandbox.io/s/r5x6qnml6p
getContainer={null}
This didn't work for me:
<div className='containerGrid'>
<Drawer getContainer={null} ><div>test</div></Drawer>
</div>
.containerGrid {
grid-row-start: 3;
grid-row-end: 3;
grid-column-start: 1;
grid-column-end: 3;
}
??????????
Sorry thats the sample of what I am trying to achieve.
I don't understand what you are saying.
You're going to be render in div
. Or just putting Drawer
on div
, render in body
?
render in div:
<div className='containerGrid'>
<Drawer getContainer = {null}><div>test</div></Drawer>
</div>
https://codesandbox.io/s/92l9541xrw
render in body
Your sample is in this way.
<div className='containerGrid'>
<Drawer ><div>test</div></Drawer>
</div>
https://codesandbox.io/s/1zoo8q0lj4
翻译真累。。。
Doing the following worked for me
<div style={{ transform: 'translate(0)' }}>
<Drawer ><div>test</div></Drawer>
</div>
This example https://codesandbox.io/s/92l9541xrw does not work correctly with version 4.4.3. How can I make it work correctly?
I want to do the same as this functionality (https://drawer-react-component.vercel.app/demo/no-mask), but inside a div.
This example https://codesandbox.io/s/92l9541xrw does not work correctly with version 4.4.3. How can I make it work correctly?
I want to do the same as this functionality (https://drawer-react-component.vercel.app/demo/no-mask), but inside a div.
I have built this example https://stackblitz.com/edit/react-krx3ez?file=src/App.js, which has been useful, but I would like the content of the body is not under the drawer.