palantir/blueprint

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

オープン

#4,933 opened on 2021/09/25

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (2,167 件のフォーク)batch import
P2Package: coreType: enhancementhelp wanted

Repository metrics

Stars
 (20,263 個のスター)
PR merge metrics
 (平均マージ 43d 10h) (30d で 27 merged PRs)

説明

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?

コントリビューターガイド