From d20ff82fe86ecc3a6ca56c0db1d95c8e827bea3e Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 12 Apr 2019 11:40:36 +0300 Subject: [PATCH] Fixed #842 - Added contentStyle and contentClassName to Tree --- src/components/tree/Tree.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/tree/Tree.js b/src/components/tree/Tree.js index d4b0b67562..4be9a55e31 100644 --- a/src/components/tree/Tree.js +++ b/src/components/tree/Tree.js @@ -17,6 +17,8 @@ export class Tree extends Component { expandedKeys: null, style: null, className: null, + contentStyle: null, + contentClassName: null, metaKeySelection: true, propagateSelectionUp: true, propagateSelectionDown: true, @@ -48,6 +50,8 @@ export class Tree extends Component { expandedKeys: PropTypes.object, style: PropTypes.object, className: PropTypes.string, + contentStyle: PropTypes.object, + contentClassName: PropTypes.string, metaKeySelection: PropTypes.bool, propagateSelectionUp: PropTypes.bool, propagateSelectionDown: PropTypes.bool, @@ -366,9 +370,10 @@ export class Tree extends Component { renderModel() { if (this.props.value) { const rootNodes = this.renderRootChildren(); + let contentClass = classNames('p-tree-container', this.props.contentClassName); return ( -