From 304aae53c785093af3d43ee3ca66ace69f47783a Mon Sep 17 00:00:00 2001 From: Muhammed Thanish Date: Mon, 26 Sep 2016 17:32:26 +0530 Subject: [PATCH] Support custom panel title --- src/modules/ui/components/down_panel/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/ui/components/down_panel/index.js b/src/modules/ui/components/down_panel/index.js index 10303bd..577c3cc 100644 --- a/src/modules/ui/components/down_panel/index.js +++ b/src/modules/ui/components/down_panel/index.js @@ -15,6 +15,11 @@ class DownPanel extends Component { }; }; + let title = panel.title; + if (typeof title === 'function') { + title = title(); + } + return ( - {panel.title} + {title} ); }