From 7d9fdf6df148bd05977a3daee771239807d28b40 Mon Sep 17 00:00:00 2001 From: John Haugeland Date: Tue, 10 Nov 2015 19:06:41 -0800 Subject: [PATCH] Adds onTitleTouchTap to AppBar --- src/app-bar.jsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app-bar.jsx b/src/app-bar.jsx index 1457eed4c9c677..8b5f523771ddda 100644 --- a/src/app-bar.jsx +++ b/src/app-bar.jsx @@ -30,6 +30,7 @@ const AppBar = React.createClass({ propTypes: { onLeftIconButtonTouchTap: React.PropTypes.func, onRightIconButtonTouchTap: React.PropTypes.func, + onTitleTouchTap: React.PropTypes.func, showMenuIconButton: React.PropTypes.bool, style: React.PropTypes.object, iconClassNameLeft: React.PropTypes.string, @@ -162,8 +163,8 @@ const AppBar = React.createClass({ // If the title is a string, wrap in an h1 tag. // If not, just use it as a node. titleElement = typeof title === 'string' || title instanceof String ? -

{title}

: -
{title}
; +

{title}

: +
{title}
; } if (showMenuIconButton) { @@ -254,6 +255,12 @@ const AppBar = React.createClass({ } }, + _onTitleTouchTap(event) { + if (this.props.onTitleTouchTap) { + this.props.onTitleTouchTap(event); + } + }, + }); module.exports = AppBar;