Skip to content

Commit

Permalink
TreeNode: Add id property (#3617)
Browse files Browse the repository at this point in the history
  • Loading branch information
franmc01 authored Nov 11, 2022
1 parent 061df71 commit 1537453
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 17,710 deletions.
6 changes: 6 additions & 0 deletions components/doc/tree/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ import { Tree } from 'primereact/tree';
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>string</td>
<td>null</td>
<td>Unique identifier of the element.</td>
</tr>
<tr>
<td>key</td>
<td>any</td>
Expand Down
6 changes: 6 additions & 0 deletions components/doc/treetable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ import { TreeTable } from 'primereact/treetable';
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>string</td>
<td>null</td>
<td>Unique identifier of the element.</td>
</tr>
<tr>
<td>key</td>
<td>any</td>
Expand Down
1 change: 1 addition & 0 deletions components/lib/treenode/treenode.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IconType } from '../utils';

export default interface TreeNode {
id?: string;
key?: string | number;
label?: string;
data?: any;
Expand Down
Loading

0 comments on commit 1537453

Please sign in to comment.