From ffbcf39efe070334dc4d9ce023e8c0f1418542c7 Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Fri, 3 Jul 2015 13:48:32 +0300 Subject: [PATCH] [fixed] html id and class attributes handling for Nav className - for the wrapper `nav` element ulClassName - for the inner `ul` element id - for the wrapper `nav` element ulId - for the inner `ul` element --- src/Nav.js | 19 ++++++++++++++- test/NavSpec.js | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 1 deletion(-) diff --git a/src/Nav.js b/src/Nav.js index d4873cc2b4..e1c6f6d293 100644 --- a/src/Nav.js +++ b/src/Nav.js @@ -18,6 +18,22 @@ const Nav = React.createClass({ justified: React.PropTypes.bool, onSelect: React.PropTypes.func, collapsible: React.PropTypes.bool, + /** + * CSS classes for the wrapper `nav` element + */ + className: React.PropTypes.string, + /** + * HTML id for the wrapper `nav` element + */ + id: React.PropTypes.string, + /** + * CSS classes for the inner `ul` element + */ + ulClassName: React.PropTypes.string, + /** + * HTML id for the inner `ul` element + */ + ulId: React.PropTypes.string, expanded: React.PropTypes.bool, navbar: React.PropTypes.bool, eventKey: React.PropTypes.any, @@ -69,7 +85,8 @@ const Nav = React.createClass({ return (