diff --git a/docs/src/app/components/pages/components/app-bar.jsx b/docs/src/app/components/pages/components/app-bar.jsx index b9b0f3b14907ed..da4bdc7219fda5 100644 --- a/docs/src/app/components/pages/components/app-bar.jsx +++ b/docs/src/app/components/pages/components/app-bar.jsx @@ -103,6 +103,12 @@ export default class AppBarPage extends React.Component { desc: 'Callback function for when the right icon is selected via ' + 'a touch tap.', }, + { + name: 'onTitleTouchTap', + header: 'AppBar.onTitleTouchTap(e)', + desc: 'Callback function for when the title text is selected via ' + + 'a touch tap.', + }, ], }, ]; 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 ? -