palantir/blueprint

Tree does not add id field to the node div in the HTML

Open

#4,933 建立於 2021年9月25日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (20,263 star) (2,167 fork)batch import
P2Package: coreType: enhancementhelp wanted

描述

Environment

  • Package version(s): v3.50.1
  • Browser and OS versions: Chrome and MacOS

Question

I am trying to build an app for which I am implementing the Tree View structure from the blueprintjs/core. I am able to implement the Tree View structure fine, but for my use case I need to access each node by the ID. On checking the HTML created i could see that the each div does not set each ID. As per the TreeNodeProps we are required to add the id field in the contents json object, but looks like the id is not being used while creating the HTML of the tree.

Can you please help me figure out how can we access each node by the ID?

貢獻者指南

Tree does not add id field to the node div in the HTML · palantir/blueprint#4933 | Good First Issue