Recommended way to have drawer resizable?

前端 未结 4 1504
故里飘歌
故里飘歌 2021-01-05 16:00

I would like to have the material ui drawer\'s width resizable through a draggable handle. My current approach is to have a mousevent listener on the whole app which checks

4条回答
  •  时光说笑
    2021-01-05 16:44

    Just use a synthetic event on your handle element. That way, you can avoid the messiness/performance costs of having a universal event listener. Something like the following:

    render() {
         return (
           
    ); }

提交回复
热议问题