@@ -170,6 +170,25 @@ const ComponentsPage = React.createClass({
170
170
< ReactPlayground codeText = { Samples . SplitButtonRight } />
171
171
</ div >
172
172
173
+ { /* Menu Item */ }
174
+ < div className = 'bs-docs-section' >
175
+ < h1 id = 'menu-item' className = 'page-header' > Menu Item < small > MenudItem</ small > </ h1 >
176
+ < p > This is a component used in other components (see < a href = "buttons" > Buttons</ a > , < a href = "#navbars" > Navbars</ a > ).</ p >
177
+ < p > It supports the basic anchor properties < code > href</ code > , < code > target</ code > , < code > title</ code > .</ p >
178
+ < p > It also supports different properties of the normal Bootstrap MenuItem.
179
+ < ul >
180
+ < li > < code > header</ code > : To add a header label to sections</ li >
181
+ < li > < code > divider</ code > : Adds an horizontal divider between sections</ li >
182
+ < li > < code > disabled</ code > : shows the item as disabled, and prevents the onclick</ li >
183
+ < li > < code > eventKey</ code > : passed to the callback</ li >
184
+ < li > < code > onSelect</ code > : a callback that is called when the user clicks the item.</ li >
185
+ </ ul >
186
+ < p > The callback is called with the following arguments: < code > eventKey</ code > , < code > href</ code > and < code > target</ code > </ p >
187
+ </ p >
188
+ < ReactPlayground codeText = { Samples . MenuItem } />
189
+ </ div >
190
+
191
+ { /* Panels */ }
173
192
< div className = 'bs-docs-section' >
174
193
< h1 id = 'panels' className = 'page-header' > Panels < small > Panel, PanelGroup, Accordion</ small > </ h1 >
175
194
@@ -607,6 +626,7 @@ const ComponentsPage = React.createClass({
607
626
< code > getValue()</ code > will not work when used this way.</ p >
608
627
< ReactPlayground codeText = { Samples . InputWrapper } />
609
628
</ div >
629
+
610
630
</ div >
611
631
612
632
< div className = 'col-md-3' >
@@ -623,6 +643,7 @@ const ComponentsPage = React.createClass({
623
643
< SubNav href = '#buttons' key = { 1 } text = 'Buttons' >
624
644
< NavItem href = '#btn-groups' key = { 2 } > Button groups</ NavItem >
625
645
< NavItem href = '#btn-dropdowns' key = { 3 } > Button dropdowns</ NavItem >
646
+ < NavItem href = '#menu-item' key = { 25 } > Menu Item</ NavItem >
626
647
</ SubNav >
627
648
< NavItem href = '#panels' key = { 4 } > Panels</ NavItem >
628
649
< NavItem href = '#modals' key = { 5 } > Modals</ NavItem >
0 commit comments