palantir/blueprint

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

开放

#4,933 创建于 2021年9月25日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
P2Package: coreType: enhancementhelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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?

贡献者指南