Skip to content

Possibility to wrap FluentTreeItems in a <div>? #2489

Answered by dvoituron
sahra-marie asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, I don't think there's anything we can do. This seems to be a limitation of the WebComponents currently in use.
The first example is well displayed (by div) but the second doesn't render correctly.

  <fluent-tree-view>
    <fluent-tree-item>One</fluent-tree-item>
    <fluent-tree-item>Two
      <fluent-tree-item>A</fluent-tree-item>
      <fluent-tree-item>B</fluent-tree-item>
    </fluent-tree-item>
  </fluent-tree-view>
  
  <hr />
  
  <fluent-tree-view>
    <fluent-tree-item>One</fluent-tree-item>
    <fluent-tree-item>Two
    <div>    
        <fluent-tree-item>A</fluent-tree-item>
        <fluent-tree-item>B</fluent-tree-item>
      </div>
    </fluent-tree-item>
  </f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sahra-marie
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