Skip to content

render CheckTreePicker inline? #3688

Answered by simonguo
ForeshadowRU asked this question in Q&A
Discussion options

You must be logged in to vote

Just set up a container for CheckTreePicker and let it render inside Sidebar.

const contentRef = React.useRef();

<div ref={contentRef} style={{ position: "relative" }}>
    <CheckTreePicker
      defaultExpandAll
      data={data}
      container={() => contentRef.current}
    />
</div>

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@simonguo
Comment options

@ForeshadowRU
Comment options

@ForeshadowRU
Comment options

@simonguo
Comment options

Answer selected by ForeshadowRU
@ForeshadowRU
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants