Skip to content

Commit 3d5d0a3

Browse files
committed
fix(TreeNode): add missing arrowIcon to TreeNodeConfig
The TreeNode widget reads `arrowIcon` (defaulting to `drop-down`) and renders it as the expand/collapse glyph, but the prop was absent from `TreeNodeConfig`, so setting it from JSX raised a type error. Add it alongside the other icon props.
1 parent e738ae6 commit 3d5d0a3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/cx/src/widgets/grid/TreeNode.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export interface TreeNodeConfig extends StyledContainerConfig {
4141
/** Icon for folder. */
4242
folderIcon?: StringProp;
4343

44+
/** Icon used for the expand/collapse arrow. Defaults to `drop-down`. */
45+
arrowIcon?: StringProp;
46+
4447
/** Set to `true` to hide the icon. */
4548
hideIcon?: boolean;
4649

0 commit comments

Comments
 (0)